46 lines
2.2 KiB
XML
46 lines
2.2 KiB
XML
<Styles xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<Style Selector="WindowNotificationManager">
|
|
<Setter Property="Margin" Value="0 0 8 8" />
|
|
<Setter Property="Template">
|
|
<ControlTemplate>
|
|
<ReversibleStackPanel Name="PART_Items">
|
|
<ReversibleStackPanel.DataTemplates>
|
|
<DataTemplate DataType="INotification">
|
|
<StackPanel Spacing="8" Margin="12">
|
|
<TextBlock Text="{Binding Title}" FontWeight="Medium" />
|
|
<TextBlock MaxHeight="80" Text="{Binding Message}" TextWrapping="Wrap"
|
|
Margin="0,0,12,0" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="x:String">
|
|
<TextBlock Text="{Binding }" Margin="12" />
|
|
</DataTemplate>
|
|
</ReversibleStackPanel.DataTemplates>
|
|
</ReversibleStackPanel>
|
|
</ControlTemplate>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style Selector="WindowNotificationManager:topleft /template/ ReversibleStackPanel#PART_Items">
|
|
<Setter Property="VerticalAlignment" Value="Top" />
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
</Style>
|
|
|
|
<Style Selector="WindowNotificationManager:topright /template/ ReversibleStackPanel#PART_Items">
|
|
<Setter Property="VerticalAlignment" Value="Top" />
|
|
<Setter Property="HorizontalAlignment" Value="Right" />
|
|
</Style>
|
|
|
|
<Style Selector="WindowNotificationManager:bottomleft /template/ ReversibleStackPanel#PART_Items">
|
|
<Setter Property="ReverseOrder" Value="True" />
|
|
<Setter Property="VerticalAlignment" Value="Bottom" />
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
</Style>
|
|
|
|
<Style Selector="WindowNotificationManager:bottomright /template/ ReversibleStackPanel#PART_Items">
|
|
<Setter Property="ReverseOrder" Value="True" />
|
|
<Setter Property="VerticalAlignment" Value="Bottom" />
|
|
<Setter Property="HorizontalAlignment" Value="Right" />
|
|
</Style>
|
|
</Styles> |