mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-03 15:46:36 +08:00
23 lines
1.0 KiB
XML
23 lines
1.0 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.Mind.ViewModels">
|
|
|
|
<dd:ColorBrushConverter x:Key="ColorBrushConverter"/>
|
|
<dd:DoubleToCornerRadius x:Key="DoubleToCornerRadius"/>
|
|
|
|
<DataTemplate DataType="{x:Type viewmodel:MindLevel1Node}">
|
|
<Grid IsHitTestVisible="False">
|
|
<Grid>
|
|
<Border BorderThickness="1"
|
|
BorderBrush="{Binding ColorViewModel.LineColor,Converter={StaticResource ColorBrushConverter}}"
|
|
Background="{Binding ColorViewModel.FillColor,Converter={StaticResource ColorBrushConverter}}"
|
|
CornerRadius="{Binding CornerRadius,Converter={StaticResource DoubleToCornerRadius}}">
|
|
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</DataTemplate>
|
|
|
|
|
|
</ResourceDictionary> |