Skip to content

Commit 2666b15

Browse files
Refactor: Add Small and Large Change to Sliders
Co-authored-by: toniolo.luca <toniolo.luca@outlook.com>
1 parent 2d1d954 commit 2666b15

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/Captura/Pages/WebcamPlacementPreviewPage.xaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
Minimum="1"
7575
Maximum="100"
7676
Value="{Binding Opacity, Mode=TwoWay}"
77-
IsSnapToTickEnabled="False"/>
77+
SmallChange="1"
78+
LargeChange="10"/>
7879
</Grid>
7980
</StackPanel>
8081
<GridSplitter Grid.Column="1"
@@ -88,7 +89,8 @@
8889
<Slider Value="{Binding Scale, Mode=TwoWay}"
8990
TickPlacement="BottomRight"
9091
TickFrequency="0.1"
91-
IsSnapToTickEnabled="False"
92+
SmallChange="0.01"
93+
LargeChange="0.1"
9294
Minimum="0"
9395
Maximum="1"/>
9496
</DockPanel>
@@ -101,7 +103,8 @@
101103
<Label Content="X"
102104
Margin="0,0,5,0"/>
103105
<Slider Value="{Binding XLoc, Mode=TwoWay}"
104-
IsSnapToTickEnabled="False"
106+
SmallChange="0.01"
107+
LargeChange="0.1"
105108
Minimum="0"
106109
Maximum="1"/>
107110
</DockPanel>
@@ -114,7 +117,8 @@
114117
<Slider Value="{Binding YLoc, Mode=TwoWay}"
115118
Orientation="Vertical"
116119
IsDirectionReversed="True"
117-
IsSnapToTickEnabled="False"
120+
SmallChange="0.01"
121+
LargeChange="0.1"
118122
Minimum="0"
119123
Maximum="1"/>
120124
</DockPanel>

0 commit comments

Comments
 (0)