mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
18 lines
1.2 KiB
XML
18 lines
1.2 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:viewmodel="clr-namespace:AIStudio.Wpf.CSharpScript.ViewModels"
|
|
xmlns:dd="https://gitee.com/akwkevin/aistudio.-wpf.-diagram"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors">
|
|
|
|
<dd:BoolVisibilityConverter x:Key="BoolVisibilityConverter"/>
|
|
<dd:DoubleToThickness x:Key="DoubleToThickness"/>
|
|
<dd:ColorBrushConverter x:Key="ColorBrushConverter"/>
|
|
|
|
<DataTemplate DataType="{x:Type viewmodel:CSharpScriptViewModel}">
|
|
<Grid IsHitTestVisible="False">
|
|
<Rectangle StrokeThickness="1" Fill="{Binding ColorViewModel.FillColor,Converter={StaticResource ColorBrushConverter}}" Stroke="{Binding ColorViewModel.LineColor,Converter={StaticResource ColorBrushConverter}}" />
|
|
<TextBlock Text="C#" Foreground="{Binding FontViewModel.FontColor,Converter={StaticResource ColorBrushConverter}}" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5"/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
|
|
</ResourceDictionary> |