Commit d0b99272 authored by Colin Kiama's avatar Colin Kiama

Rename "Select" interaction mode to "Nothing"

parent 526e8882
......@@ -29,13 +29,13 @@
Padding="12"
Name="InteractionModeTextBlock"
RelativePanel.AlignLeftWithPanel="True"/>
<RadioButton Content="Select" GroupName="InteractionMode"
<RadioButton Content="Nothing" GroupName="InteractionMode"
MinWidth="0"
VerticalAlignment="Center"
Name="SelectRadioButton"
Name="NothingRadioButton"
RelativePanel.RightOf="InteractionModeTextBlock"
RelativePanel.AlignVerticalCenterWith="InteractionModeTextBlock"
Tag="select"
Tag="nothing"
Checked="InteractionModeRadioButton_Checked"/>
<RadioButton Content="Rectangle" GroupName="InteractionMode"
MinWidth="0"
......
......@@ -42,7 +42,7 @@ namespace UWPVectorGraphicsToolExample
{
this.InitializeComponent();
SubscribeToPointerEvents();
SelectRadioButton.IsChecked = true;
NothingRadioButton.IsChecked = true;
MouseEventService.Instance.PointerReleasedWithValidPoints += Instance_PointerReleasedWithValidPoints;
MouseEventService.Instance.PointerMovedWithValidPoints += Instance_PointerMovedWithValidPoints;
MouseEventService.Instance.PointerDraggingEnded += Instance_PointerDraggingEnded;
......@@ -215,7 +215,7 @@ namespace UWPVectorGraphicsToolExample
string tagName = radioButton.Tag.ToString();
switch (tagName)
{
case "select":
case "nothing":
// Stop listening for mouse events
// Clear all previous data you had on points
UnsubsribeToPointerEvents();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment