Skip to content

Commit

Permalink
feat: Update InfoBar to latest MUX
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Jul 14, 2022
1 parent 358922b commit e9c6f29
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 232 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. -->
<!-- MUX Reference InfoBar_themeresources.xaml, commit 6cc8dbb-->
<!-- MUX Reference InfoBar_themeresources.xaml, commit ba45dbd -->
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:contract7Present="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract,7)"
Expand All @@ -13,20 +13,21 @@
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="{ThemeResource InfoBarBorderBrush}" />
<Setter Property="BorderThickness" Value="{ThemeResource InfoBarBorderThickness}" />
<Setter Property="AutomationProperties.LandmarkType" Value="Custom" />
<contract7Present:Setter Property="AutomationProperties.IsDialog" Value="True"/>
<contract7Present:Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:InfoBar">
<Border x:Name="ContentRoot"
<Border x:Name="ContentRoot"
VerticalAlignment="Top"
Background="{ThemeResource InfoBarInformationalSeverityBackgroundBrush}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
contract7Present:CornerRadius="{TemplateBinding CornerRadius}">

<VisualStateManager.VisualStateGroups>

<VisualStateGroup x:Name="SeverityLevels">
<VisualState x:Name="Informational"/>

Expand Down Expand Up @@ -72,7 +73,7 @@
<Setter Target="StandardIconArea.Visibility" Value="Collapsed"/>
</VisualState.Setters>
</VisualState>

<VisualState x:Name="NoIconVisible"/>
</VisualStateGroup>

Expand Down Expand Up @@ -127,7 +128,7 @@

<Grid x:Name="StandardIconArea"
Visibility="Collapsed">

<TextBlock x:Name="IconBackground"
Grid.Column="0"
VerticalAlignment="Top"
Expand Down Expand Up @@ -169,7 +170,6 @@
primitives:InfoBarPanel.HorizontalOrientationMargin="{StaticResource InfoBarTitleHorizontalOrientationMargin}"
primitives:InfoBarPanel.VerticalOrientationMargin="{StaticResource InfoBarTitleVerticalOrientationMargin}"
TextWrapping="WrapWholeWords"
AutomationProperties.LandmarkType="Navigation"
FontWeight="{StaticResource InfoBarTitleFontWeight}"
FontSize="{StaticResource InfoBarTitleFontSize}"/>

Expand Down
Loading

0 comments on commit e9c6f29

Please sign in to comment.