FindMyFiles
FindMyFiles
App Class
Application entry point and process-wide composition root. `OnLaunched` resolves the engine boundary (EngineClient) and stands up the single MainWindow. On fatal init failure it falls back to `FakeEngineClient` to avoid crashing silently.
public class App : Microsoft.UI.Xaml.Application, Microsoft.UI.Xaml.Markup.IXamlMetadataProvider
Inheritance System.Object → Microsoft.UI.Xaml.Application → App
Implements Microsoft.UI.Xaml.Markup.IXamlMetadataProvider
Constructors
App() Constructor
Initialize in order: apply language override → `InitializeComponent`
→ ExceptionPolicy.Install. The language override must run before
`InitializeComponent` so `x:Uid`/`ResourceLoader` resolve to the correct
language on the first XAML load.
public App();
Properties
App.DispatcherQueue Property
The UI thread's DispatcherQueue (cached in `OnLaunched`).
Marshal UI work from background threads via TryEnqueue on this
(UI rule: cache it on the UI thread before use).
public static Microsoft.UI.Dispatching.DispatcherQueue DispatcherQueue { get; }
Property Value
Microsoft.UI.Dispatching.DispatcherQueue
App.EngineClient Property
The engine boundary. `--fake-engine` swaps in deterministic data so UI tests and unelevated development never touch real volumes.
public static FindMyFiles.Engine.IEngineClient EngineClient { get; }
Property Value
App.Window Property
The single top-level window. Created in `OnLaunched`; the origin for the HWND lookup via `WinRT.Interop` (WindowHandle).
public static Microsoft.UI.Xaml.Window Window { get; }
Property Value
App.WindowHandle Property
The main window's Win32 HWND. Passed to init of WinRT APIs that take a parent window (file pickers, etc.) — the unpackaged WinUI 3 way.
public static nint WindowHandle { get; }
Property Value
Methods
App.GetXamlType(string) Method
GetXamlType(String)
public Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(string fullName);
Parameters
fullName System.String
Implements GetXamlType(string)
Returns
Microsoft.UI.Xaml.Markup.IXamlType
App.GetXamlType(Type) Method
GetXamlType(Type)
public Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(System.Type type);
Parameters
type System.Type
Implements GetXamlType(Type)
Returns
Microsoft.UI.Xaml.Markup.IXamlType
App.GetXmlnsDefinitions() Method
GetXmlnsDefinitions()
public Microsoft.UI.Xaml.Markup.XmlnsDefinition[] GetXmlnsDefinitions();
Implements GetXmlnsDefinitions()
Returns
Microsoft.UI.Xaml.Markup.XmlnsDefinition[]
App.InitializeComponent() Method
InitializeComponent()
public void InitializeComponent();