Пример #1
0
        protected override void OnSourceInitialized(EventArgs e)
        {
            // removes the application icon from the window top left corner
            // this is different than just hiding it
            WindowHelper.RemoveIcon(this);

            // disable close button if needed and remove resize menu items from the window system menu
            var systemMenuHelper = new SystemMenuHelper(this);

            systemMenuHelper.DisableCloseButton = false;
            systemMenuHelper.RemoveResizeMenu   = true;
        }
        protected override void OnSourceInitialized(EventArgs e)
        {
            // removes the application icon from the window top left corner
            // this is different than just hiding it
            WindowHelper.RemoveIcon(this);            

            // disable close button if needed and remove resize menu items from the window system menu
            var systemMenuHelper = new SystemMenuHelper(this);
            systemMenuHelper.DisableCloseButton = false;            
            systemMenuHelper.RemoveResizeMenu = true;
        }