Example #1
0
        private static void MaximiseFloatingItemExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            if (!(e.Parameter is DragablzItem dragablzItem))
            {
                return;
            }

            SetLocationSnapShot(dragablzItem, LocationSnapShot.Take(dragablzItem));
            SetFloatingItemState(dragablzItem, WindowState.Maximized);
        }
Example #2
0
 internal static void SetLocationSnapShot(FrameworkElement element, LocationSnapShot value)
 {
     element.SetValue(LocationSnapShotProperty, value);
 }
Example #3
0
 internal static void SetLocationSnapShot(FrameworkElement element, LocationSnapShot value)
 {
     element.SetValue(LocationSnapShotProperty, value);
 }