Skip to content

Commit

Permalink
Bind Slider.Maximum first to evade Value coercing
Browse files Browse the repository at this point in the history
  • Loading branch information
Neakita committed Sep 25, 2024
1 parent 1f902ed commit 90dea45
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions SightKeeper.Avalonia/Annotation/ScreenshottingSettings.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
ItemsSource="{Binding DataSets}"
DisplayMemberBinding="{Binding Name}"/>
<ToggleSwitch IsChecked="{Binding IsEnabled}"/>
<Slider Value="{Binding ResolutionWidth}"
<Slider Maximum="{Binding MaximumWidth}"
Value="{Binding ResolutionWidth}"
TickFrequency="32"
IsSnapToTickEnabled="True"
Minimum="32"
Maximum="{Binding MaximumWidth}"/>
<Slider Value="{Binding ResolutionHeight}"
Minimum="32"/>
<Slider Maximum="{Binding MaximumHeight}"
Value="{Binding ResolutionHeight}"
TickFrequency="32"
IsSnapToTickEnabled="True"
Minimum="32"
Maximum="{Binding MaximumHeight}"/>
Minimum="32"/>
</StackPanel>
</UserControl>

0 comments on commit 90dea45

Please sign in to comment.