예제 #1
0
        private static void MaximizeFloatingItemExecuted(object _)
        {
            var dockItem = _ as DockItem;

            if (dockItem == null)
            {
                return;
            }

            SetLocationSnapShot(dockItem, LocationSnapShot.Take(dockItem));
            SetFloatingItemState(dockItem, WindowState.Maximized);
        }
예제 #2
0
 internal static void SetLocationSnapShot(Control element, LocationSnapShot value)
 {
     element.SetValue(LocationSnapShotProperty, value);
 }