Skip to content

Commit 6cc8dbb

Browse files
authored
add templatebiding for borderthickness,brush (#4993)
1 parent 1c07867 commit 6cc8dbb

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dev/InfoBar/InfoBar.xaml

100644100755
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<Setter Property="IsTabStop" Value="False"/>
1111
<Setter Property="CloseButtonStyle" Value="{StaticResource InfoBarCloseButtonStyle}" />
1212
<Setter Property="Background" Value="Transparent" />
13+
<Setter Property="BorderBrush" Value="{ThemeResource InfoBarBorderBrush}" />
14+
<Setter Property="BorderThickness" Value="{ThemeResource InfoBarBorderThickness}" />
1315
<contract7Present:Setter Property="AutomationProperties.IsDialog" Value="True"/>
1416
<contract7Present:Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" />
1517
<Setter Property="Template">
@@ -18,8 +20,8 @@
1820
<Border x:Name="ContentRoot"
1921
VerticalAlignment="Top"
2022
Background="{ThemeResource InfoBarInformationalSeverityBackgroundBrush}"
21-
BorderBrush="{ThemeResource InfoBarBorderBrush}"
22-
BorderThickness="{ThemeResource InfoBarBorderThickness}"
23+
BorderBrush="{TemplateBinding BorderBrush}"
24+
BorderThickness="{TemplateBinding BorderThickness}"
2325
contract7Present:CornerRadius="{TemplateBinding CornerRadius}">
2426

2527
<VisualStateManager.VisualStateGroups>

0 commit comments

Comments
 (0)