mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
24 lines
1.3 KiB
XML
24 lines
1.3 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:dd="https://gitee.com/akwkevin/aistudio.-wpf.-diagram"
|
|
xmlns:viewmodel="clr-namespace:AIStudio.Wpf.DiagramDesigner.Demo.ViewModels">
|
|
|
|
<dd:ColorBrushConverter x:Key="ColorBrushConverter" />
|
|
|
|
<DataTemplate DataType="{x:Type viewmodel:CustomDefinedGroupDesignerItemViewModel}">
|
|
<Grid IsHitTestVisible="False">
|
|
<TextBlock Text="{Binding Describe}"
|
|
Foreground="{Binding FontViewModel.FontColor,Converter={StaticResource ColorBrushConverter}}"
|
|
FontSize="{Binding FontViewModel.FontSize}"
|
|
FontFamily="{Binding FontViewModel.FontFamily}"
|
|
FontWeight="{Binding FontViewModel.FontWeight}"
|
|
FontStyle="{Binding FontViewModel.FontStyle}"
|
|
FontStretch="{Binding FontViewModel.FontStretch}"
|
|
TextDecorations="{Binding FontViewModel.TextDecorations}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Bottom"></TextBlock>
|
|
</Grid>
|
|
</DataTemplate>
|
|
|
|
|
|
</ResourceDictionary> |