Enforce a min/max on the Profile page's FontSize input (#8772)

Closes #8759
This commit is contained in:
Mike Griese 2021-01-12 18:13:28 -06:00 committed by GitHub
parent cb2cd7e219
commit 9b636edad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ the MIT License. See LICENSE in the project root for license information. -->
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock x:Uid="Profile_BaseLayerDisclaimer"
Grid.Row="0"
Margin="{StaticResource StandardIndentMargin}"
@ -206,6 +206,9 @@ the MIT License. See LICENSE in the project root for license information. -->
<muxc:NumberBox x:Uid="Profile_FontSize"
Value="{x:Bind State.Profile.FontSize, Mode=TwoWay}"
Style="{StaticResource NumberBoxSettingStyle}"
AcceptsExpression="False"
Minimum="1"
Maximum="128"
SmallChange="1"
LargeChange="10"/>
</ContentPresenter>