FindMyFiles

FindMyFiles

MainPage Class

Wiring only: builds the ViewModel graph and connects view events to it. Imperative ListView work (viewport/selection restore, row actions) lives in ResultsViewportManager; the F12 panel chrome in PerfPanel; converters in UiConverters.

public sealed class MainPage : Microsoft.UI.Xaml.Controls.Page, Microsoft.UI.Xaml.Markup.IComponentConnector

Inheritance System.ObjectMicrosoft.UI.Xaml.DependencyObjectMicrosoft.UI.Xaml.UIElementMicrosoft.UI.Xaml.FrameworkElementMicrosoft.UI.Xaml.Controls.ControlMicrosoft.UI.Xaml.Controls.UserControlMicrosoft.UI.Xaml.Controls.Page → MainPage

Implements Microsoft.UI.Xaml.Markup.IComponentConnector

Constructors

MainPage() Constructor

Builds the ViewModel graph and wires view events (IME composition, drag & drop, keyboard, sort headers) to the ViewModel and ResultsViewportManager. Localized tooltips/automation names are set in code here, and the language radio reflects persisted settings. Finally initializes the empty/results visual state and starts `StartAsync`.

public MainPage();

Properties

MainPage.ViewModel Property

Root of the page's ViewModel graph. The sole `x:Bind` source; it ties together the search, results, notification and diagnostics-panel sub-ViewModels.

public FindMyFiles.ViewModels.MainViewModel ViewModel { get; }

Property Value

MainViewModel

Methods

MainPage.Connect(int, object) Method

Connect()

public void Connect(int connectionId, object target);

Parameters

connectionId System.Int32

target System.Object

Implements Connect(int, object)

MainPage.GetBindingConnector(int, object) Method

GetBindingConnector(int connectionId, object target)

public Microsoft.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target);

Parameters

connectionId System.Int32

target System.Object

Implements GetBindingConnector(int, object)

Returns

Microsoft.UI.Xaml.Markup.IComponentConnector

MainPage.InitializeComponent() Method

InitializeComponent()

public void InitializeComponent();