Finished wino expander implementation.
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
x:Class="Wino.Controls.MailItemDisplayInformationControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
|
||||
xmlns:controls="using:Wino.Controls"
|
||||
xmlns:domain="using:Wino.Core.Domain"
|
||||
xmlns:enums="using:Wino.Core.Domain.Enums"
|
||||
xmlns:helpers="using:Wino.Helpers"
|
||||
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
@@ -154,13 +156,29 @@
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<FontIcon
|
||||
x:Name="ExpanderChevron"
|
||||
Margin="0,0,2,0"
|
||||
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
||||
FontSize="12"
|
||||
Glyph=""
|
||||
Visibility="{x:Bind IsThreadExpanderVisible, Mode=OneWay}" />
|
||||
<local:AnimatedIcon
|
||||
xmlns:local="using:Microsoft.UI.Xaml.Controls"
|
||||
x:Name="ExpandCollapseChevron"
|
||||
Width="14"
|
||||
Height="14"
|
||||
Margin="-4,0,2,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
local:AnimatedIcon.State="NormalOff"
|
||||
AutomationProperties.AccessibilityView="Raw"
|
||||
Foreground="{ThemeResource ApplicationForegroundThemeBrush}"
|
||||
RenderTransformOrigin="0.5, 0.5"
|
||||
Visibility="{x:Bind IsThreadExpanderVisible, Mode=OneWay}">
|
||||
<animatedvisuals:AnimatedChevronRightDownSmallVisualSource />
|
||||
<local:AnimatedIcon.FallbackIconSource>
|
||||
<local:FontIconSource
|
||||
FontFamily="{StaticResource SymbolThemeFontFamily}"
|
||||
FontSize="12"
|
||||
Glyph=""
|
||||
IsTextScaleFactorEnabled="False" />
|
||||
</local:AnimatedIcon.FallbackIconSource>
|
||||
<local:AnimatedIcon.RenderTransform />
|
||||
</local:AnimatedIcon>
|
||||
|
||||
<TextBlock
|
||||
x:Name="TitleText"
|
||||
@@ -296,7 +314,7 @@
|
||||
<VisualState x:Name="NotExpanded" />
|
||||
<VisualState x:Name="ExpandedState">
|
||||
<VisualState.Setters>
|
||||
<Setter Target="ExpanderChevron.Glyph" Value="" />
|
||||
<Setter Target="ExpandCollapseChevron.(controls:AnimatedIcon.State)" Value="NormalOn" />
|
||||
</VisualState.Setters>
|
||||
<VisualState.StateTriggers>
|
||||
<StateTrigger IsActive="{x:Bind IsThreadExpanded, Mode=OneWay}" />
|
||||
|
||||
Reference in New Issue
Block a user