private void setPosition(uint x, uint y)
        {
            int sWidth;
            int sHeight;

            // adjust size for dpi
            AppBarHelper.TransformFromPixels(x, y, out sWidth, out sHeight);

            this.Top  = sHeight - this.Height - 150;
            this.Left = (sWidth / 2) - (this.Width / 2);
        }
Beispiel #2
0
        private void setPosition(uint x, uint y)
        {
            displayChanged = true;
            int sWidth;
            int sHeight;

            // adjust size for dpi
            AppBarHelper.TransformFromPixels(x, y, out sWidth, out sHeight);

            this.Top  = sHeight - this.Height;
            this.Left = 0;
            this.TaskbarBorder.MaxWidth = sWidth - 36;
            this.Width = sWidth;
        }
Beispiel #3
0
        private void setPosition(uint x, uint y)
        {
            int sWidth;
            int sHeight;

            // adjust size for dpi
            AppBarHelper.TransformFromPixels(x, y, out sWidth, out sHeight);
            this.Top   = 0;
            this.Left  = 0;
            this.Width = sWidth;
            if (Startup.MenuBarShadowWindow != null)
            {
                Startup.MenuBarShadowWindow.SetPosition();
            }
        }