1 changed files with 38 additions and 38 deletions
@ -1,45 +1,45 @@ |
|||||
<Styles xmlns="https://github.com/avaloniaui" |
<Styles xmlns="https://github.com/avaloniaui" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||
<Style Selector="WindowNotificationManager"> |
<Style Selector="WindowNotificationManager"> |
||||
<Setter Property="Margin" Value="0 0"/> |
<Setter Property="Margin" Value="0 0"/> |
||||
<Setter Property="Template"> |
<Setter Property="Template"> |
||||
<ControlTemplate> |
<ControlTemplate> |
||||
<ReversibleStackPanel Name="PART_Items"> |
<ReversibleStackPanel Name="PART_Items"> |
||||
<ReversibleStackPanel.DataTemplates> |
<ReversibleStackPanel.DataTemplates> |
||||
<DataTemplate DataType="INotification"> |
<DataTemplate DataType="INotification"> |
||||
<StackPanel Spacing="8" Margin="12"> |
<StackPanel Spacing="8" Margin="12" TextBlock.Foreground="{DynamicResource SystemControlForegroundBaseHighBrush}"> |
||||
<TextBlock Text="{Binding Title}" FontWeight="Medium" /> |
<TextBlock Text="{Binding Title}" FontWeight="Medium" /> |
||||
<TextBlock MaxHeight="80" Text="{Binding Message}" TextWrapping="Wrap" Margin="0,0,12,0"/> |
<TextBlock MaxHeight="80" Text="{Binding Message}" TextWrapping="Wrap" Margin="0,0,12,0"/> |
||||
</StackPanel> |
</StackPanel> |
||||
</DataTemplate> |
</DataTemplate> |
||||
<DataTemplate DataType="x:String"> |
<DataTemplate DataType="x:String"> |
||||
<TextBlock Text="{Binding }" Margin="12" /> |
<TextBlock Text="{Binding }" Margin="12" Foreground="{DynamicResource SystemControlForegroundBaseHighBrush}" /> |
||||
</DataTemplate> |
</DataTemplate> |
||||
</ReversibleStackPanel.DataTemplates> |
</ReversibleStackPanel.DataTemplates> |
||||
</ReversibleStackPanel> |
</ReversibleStackPanel> |
||||
</ControlTemplate> |
</ControlTemplate> |
||||
</Setter> |
</Setter> |
||||
</Style> |
</Style> |
||||
|
|
||||
<Style Selector="WindowNotificationManager:topleft /template/ ReversibleStackPanel#PART_Items"> |
<Style Selector="WindowNotificationManager:topleft /template/ ReversibleStackPanel#PART_Items"> |
||||
<Setter Property="VerticalAlignment" Value="Top"/> |
<Setter Property="VerticalAlignment" Value="Top"/> |
||||
<Setter Property="HorizontalAlignment" Value="Left"/> |
<Setter Property="HorizontalAlignment" Value="Left"/> |
||||
</Style> |
</Style> |
||||
|
|
||||
<Style Selector="WindowNotificationManager:topright /template/ ReversibleStackPanel#PART_Items"> |
<Style Selector="WindowNotificationManager:topright /template/ ReversibleStackPanel#PART_Items"> |
||||
<Setter Property="VerticalAlignment" Value="Top"/> |
<Setter Property="VerticalAlignment" Value="Top"/> |
||||
<Setter Property="HorizontalAlignment" Value="Right"/> |
<Setter Property="HorizontalAlignment" Value="Right"/> |
||||
</Style> |
</Style> |
||||
|
|
||||
<Style Selector="WindowNotificationManager:bottomleft /template/ ReversibleStackPanel#PART_Items"> |
<Style Selector="WindowNotificationManager:bottomleft /template/ ReversibleStackPanel#PART_Items"> |
||||
<Setter Property="ReverseOrder" Value="True"/> |
<Setter Property="ReverseOrder" Value="True"/> |
||||
<Setter Property="VerticalAlignment" Value="Bottom"/> |
<Setter Property="VerticalAlignment" Value="Bottom"/> |
||||
<Setter Property="HorizontalAlignment" Value="Left"/> |
<Setter Property="HorizontalAlignment" Value="Left"/> |
||||
</Style> |
</Style> |
||||
|
|
||||
<Style Selector="WindowNotificationManager:bottomright /template/ ReversibleStackPanel#PART_Items"> |
<Style Selector="WindowNotificationManager:bottomright /template/ ReversibleStackPanel#PART_Items"> |
||||
<Setter Property="ReverseOrder" Value="True"/> |
<Setter Property="ReverseOrder" Value="True"/> |
||||
<Setter Property="VerticalAlignment" Value="Bottom"/> |
<Setter Property="VerticalAlignment" Value="Bottom"/> |
||||
<Setter Property="HorizontalAlignment" Value="Right"/> |
<Setter Property="HorizontalAlignment" Value="Right"/> |
||||
</Style> |
</Style> |
||||
</Styles> |
</Styles> |
||||
|
|||||
Loading…
Reference in new issue