File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
Microsoft.Toolkit.Uwp.SampleApp
SamplePages/SurfaceDialTextbox
Microsoft.Toolkit.Uwp.UI/Extensions/TextBox Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,8 @@ protected override void OnNavigatedFrom(NavigationEventArgs e)
337
337
{
338
338
method . Invoke ( SamplePage , new object [ ] { e } ) ;
339
339
}
340
+
341
+ SamplePage = null ;
340
342
}
341
343
342
344
XamlCodeEditor = null ;
Original file line number Diff line number Diff line change 16
16
Width="250">
17
17
<ui:TextBoxExtensions.SurfaceDialOptions>
18
18
<ui:SurfaceDialOptions
19
- StepValue="@[StepValue:DoubleSlider:1:0.1-10] "
20
- ForceMenuItem="@[ForceMenuItem:Bool:true] "
21
- EnableHapticFeedback="@[EnableHapticFeedback:Bool:true] "
22
- EnableMinMaxValue="@[EnableMinMaxValue:Bool:true] "
23
- MinValue="@[MinValue:DoubleSlider:0:0-100] "
24
- MaxValue="@[MaxValue:DoubleSlider: 100:0-100] "
25
- Icon="@[Icon:Enum:RadialControllerMenuKnownIcon. Ruler] "
26
- EnableTapToNextControl="@[EnableTapToNextControl:Bool:true] "/>
19
+ StepValue="1 "
20
+ ForceMenuItem="True "
21
+ EnableHapticFeedback="True "
22
+ EnableMinMaxValue="True "
23
+ MinValue="0 "
24
+ MaxValue="100"
25
+ Icon="Ruler"
26
+ EnableTapToNextControl="True "/>
27
27
</ui:TextBoxExtensions.SurfaceDialOptions>
28
28
</TextBox>
29
29
</StackPanel>
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public sealed class SurfaceDialOptions : DependencyObject
26
26
27
27
/// <summary>
28
28
/// Gets or sets the default icon of the menu item that gets added.
29
- /// A user will most likely not see this .
29
+ /// This will be visible if a user opens their Surface Dial menu by long-pressing the device .
30
30
/// Defaults to <see cref="RadialControllerMenuKnownIcon.Ruler"/>.
31
31
/// </summary>
32
32
public RadialControllerMenuKnownIcon Icon { get ; set ; } = RadialControllerMenuKnownIcon . Ruler ;
You can’t perform that action at this time.
0 commit comments