Skip to content

Commit

Permalink
Add missing templatebindings to NumberBox (microsoft/microsoft-ui-xam…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Jul 3, 2020
1 parent a81b20b commit 22c07f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ModernWpf.Controls/NumberBox/NumberBox.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@
FontWeight="Normal"
Foreground="{DynamicResource TextControlHeaderForeground}"
Margin="{DynamicResource TextBoxTopHeaderMargin}"
FontSize="{TemplateBinding FontSize}"
FontFamily="{TemplateBinding FontFamily}"
TextWrapping="Wrap"
VerticalAlignment="Top"
Visibility="Collapsed"
Expand All @@ -355,6 +357,9 @@
InputScope="Number"
ui:ControlHelper.PlaceholderText="{TemplateBinding PlaceholderText}"
SelectionBrush="{TemplateBinding SelectionBrush}"
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"
FontFamily="{TemplateBinding FontFamily}"
ui:ControlHelper.CornerRadius="{TemplateBinding CornerRadius}" />

<Popup
Expand Down
3 changes: 3 additions & 0 deletions test/ModernWpfTestApp/NumberBoxPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@
</controls:NumberBox>
<controls:NumberBox x:Name="HeaderTemplateTestingNumberBox"/>
</StackPanel>

<!-- FontSize propagation -->
<controls:NumberBox Header="Header text" FontSize="50"/>
</StackPanelEx>
</Grid>

Expand Down

0 comments on commit 22c07f8

Please sign in to comment.