aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Visuals
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-20 10:04:20 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-20 10:04:20 +0300
commit93ab96c948f3259e8b8138367af713c7a9f27086 (patch)
tree5eb42e64db5ce19c5c56f9c5a497cc171d0415c1 /Software/Visual_Studio/Tango.Visuals
parentde5d4906184cff4f16f92864d03af9d7c41231d7 (diff)
downloadTango-93ab96c948f3259e8b8138367af713c7a9f27086.tar.gz
Tango-93ab96c948f3259e8b8138367af713c7a9f27086.zip
Machine Studio v2.9
Diffstat (limited to 'Software/Visual_Studio/Tango.Visuals')
-rw-r--r--Software/Visual_Studio/Tango.Visuals/Knob/Knob.xaml.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Visuals/Knob/Knob.xaml.cs b/Software/Visual_Studio/Tango.Visuals/Knob/Knob.xaml.cs
index 44b9a7fa4..357582a17 100644
--- a/Software/Visual_Studio/Tango.Visuals/Knob/Knob.xaml.cs
+++ b/Software/Visual_Studio/Tango.Visuals/Knob/Knob.xaml.cs
@@ -298,7 +298,7 @@ namespace Tango.Visuals
set { SetValue(ChangeProperty, value); }
}
public static readonly DependencyProperty ChangeProperty =
- DependencyProperty.Register("Change", typeof(double), typeof(Knob), new PropertyMetadata(0.01));
+ DependencyProperty.Register("Change", typeof(double), typeof(Knob), new PropertyMetadata(1.0));
/// <summary>
/// Gets or sets the width of the ticks.
@@ -387,7 +387,7 @@ namespace Tango.Visuals
this.Loaded += Knob_Loaded;
moveThumb.AddHandler(Thumb.MouseEnterEvent, new MouseEventHandler(ellipseGrid_MouseEnter), true);
moveThumb.AddHandler(Thumb.MouseLeaveEvent, new MouseEventHandler(ellipseGrid_MouseLeave), true);
- this.PreviewKeyDown += Knob_PreviewKeyDown;
+ this.AddHandler(UserControl.PreviewKeyDownEvent, new KeyEventHandler(Knob_PreviewKeyDown), true);
this.PreviewMouseDown += Knob_PreviewMouseDown;
this.Focusable = true;