mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-16 14:16:35 +08:00
feat: add "NEW" label for AI Icons in IconDemo.
This commit is contained in:
@@ -24,10 +24,16 @@
|
|||||||
ItemsSource="{Binding IconTabs}">
|
ItemsSource="{Binding IconTabs}">
|
||||||
<TabControl.ItemTemplate>
|
<TabControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock
|
<WrapPanel ItemSpacing="5">
|
||||||
Margin="8,0"
|
<TextBlock Text="{Binding Header}" />
|
||||||
VerticalAlignment="Center"
|
<Label
|
||||||
Text="{Binding Header}" />
|
Theme="{StaticResource TagLabel}"
|
||||||
|
Classes="Purple"
|
||||||
|
IsVisible="{Binding Header,
|
||||||
|
Converter={x:Static ObjectConverters.Equal},
|
||||||
|
ConverterParameter='AI Icons'}"
|
||||||
|
Content="NEW" />
|
||||||
|
</WrapPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</TabControl.ItemTemplate>
|
</TabControl.ItemTemplate>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user