mirror of
https://gitee.com/wang-yin1/wpf-visual-process-framework
synced 2026-03-02 15:50:51 +08:00
30 lines
1.4 KiB
Plaintext
30 lines
1.4 KiB
Plaintext
|
|
<b:NodeBase x:Class="VisionFrame.Nodes.StartNode"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
|
xmlns:local="clr-namespace:VisionFrame.Nodes"
|
||
|
|
xmlns:b="clr-namespace:VisionFrame.Base;assembly=VisionFrame.Base"
|
||
|
|
mc:Ignorable="d"
|
||
|
|
d:DesignHeight="32" d:DesignWidth="100">
|
||
|
|
<UserControl.Resources>
|
||
|
|
<BooleanToVisibilityConverter x:Key="b2v"/>
|
||
|
|
</UserControl.Resources>
|
||
|
|
<Grid Name="grid">
|
||
|
|
<Border CornerRadius="14" Background="#1f71e5" Margin="3">
|
||
|
|
<TextBlock Text="开始" VerticalAlignment="Center" HorizontalAlignment="Center"
|
||
|
|
FontSize="11" Foreground="White"/>
|
||
|
|
</Border>
|
||
|
|
<Grid Visibility="{Binding ElementName=grid,Path=IsMouseOver,Converter={StaticResource b2v}}">
|
||
|
|
<Ellipse Width="12" Height="12" Fill="#9FFF"
|
||
|
|
VerticalAlignment="Bottom"
|
||
|
|
Stroke="#CCC" StrokeThickness="1"
|
||
|
|
Margin="0,0,0,-5"
|
||
|
|
Visibility="{Binding ShowAnchorB,Converter={StaticResource b2v}}"
|
||
|
|
MouseLeftButtonDown="Ellipse_MouseLeftButtonDown">
|
||
|
|
|
||
|
|
</Ellipse>
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|
||
|
|
</b:NodeBase>
|