Пример #1
0
        public async Task RegisterWindowAsync(PortableAppWindow window, INativeAppWindow nativeWindow)
        {
            // Wait till InitializeAsync finishes
            await InitializeTask;

            window.Register(nativeWindow);

            // Add the window
            Windows.Add(window);
        }
 internal void Register(INativeAppWindow nativeWindow)
 {
     NativeAppWindow = nativeWindow;
     NativeAppWindow.Register(this);
     NativeAppWindow.BackPressed += NativeAppWindow_BackPressed;
 }