Ejemplo n.º 1
0
        private async Task Initialize()
        {
            Ready = false;

            Devices.AddHook(this);

            if (OS.SupportVirtualDesktop)
            {
                try
                {
                    VirtualDesktop.CurrentChanged += VirtualDesktop_CurrentChanged;
                }
                catch (TypeInitializationException) { }
            }

            BindSettings(true);

            await BindModel();

            if (Opacity == 0)
            {
                AppBarHide();
                Opacity = 1;
            }
        }
Ejemplo n.º 2
0
        private async Task Initialize()
        {
            Ready = false;

            Devices.AddHook(this);

            DisableAeroPeek();

            BindSettings(true);

            await BindModel();
        }
Ejemplo n.º 3
0
        private async Task Initialize()
        {
            Ready = false;

            Devices.AddHook(this);

            if (OS.SupportVirtualDesktop)
            {
                try
                {
                    VirtualDesktop.CurrentChanged += VirtualDesktop_CurrentChanged;
                }
                catch (COMException) { }
            }

            BindSettings(true);

            await BindModel();
        }