Skip to content

Commit

Permalink
Merge pull request #1059 from IbraheemOsama/GridSplitterFocusTrap
Browse files Browse the repository at this point in the history
Grid splitter focus trap
  • Loading branch information
deltakosh committed Mar 31, 2017
2 parents e635245 + 075844a commit fcd3474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private void Gripper_KeyDown(object sender, KeyRoutedEventArgs e)
return;
}

if (gripper.ResizeDirection == GridSplitter.GridResizeDirection.Rows)
if (gripper.ResizeDirection == GridResizeDirection.Rows)
{
if (e.Key == VirtualKey.Up)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
// ******************************************************************

using System;
using Windows.System;
using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
Expand All @@ -31,10 +28,6 @@ internal class GridSplitterGripper : ContentControl

public GridSplitter.GridResizeDirection ResizeDirection { get; private set; }

internal Action<double> OnKeyboardHorizontalMoveAction { get; set; }

internal Action<double> OnKeyboardVerticalMoveAction { get; set; }

internal Brush GripperForeground
{
set
Expand All @@ -55,6 +48,7 @@ internal GridSplitterGripper(GridSplitter.GridResizeDirection gridSplitterDirect
VerticalContentAlignment = VerticalAlignment.Stretch;
IsTabStop = true;
UseSystemFocusVisuals = true;
IsFocusEngagementEnabled = true;
}

internal GridSplitterGripper(
Expand Down

0 comments on commit fcd3474

Please sign in to comment.