예제 #1
0
        private void DetermineResizeCursor()
        {
            var effectiveResizeDirection =
                this.DetermineEffectiveResizeDirection();

            if (effectiveResizeDirection == GridResizeDirection.Columns)
            {
                FrameworkElementExtensions.SetCursor(this, new CoreCursor(CoreCursorType.SizeWestEast, 1));
            }
            else
            {
                FrameworkElementExtensions.SetCursor(this, new CoreCursor(CoreCursorType.SizeNorthSouth, 1));
            }
        }
예제 #2
0
 private static void OnCursorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     FrameworkElementExtensions.SetCursor(d, new CoreCursor((CoreCursorType)e.NewValue, 1));
 }