mirror of
https://gitee.com/wang-yin1/wpf-visual-process-framework
synced 2026-03-03 00:00:56 +08:00
添加项目文件。
This commit is contained in:
26
VisionFrame/Nodes/LineNode.xaml
Normal file
26
VisionFrame/Nodes/LineNode.xaml
Normal file
@@ -0,0 +1,26 @@
|
||||
<UserControl x:Class="VisionFrame.Nodes.LineNode"
|
||||
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"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<BooleanToVisibilityConverter x:Key="b2v"/>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Button Width="14" Height="14"
|
||||
Margin="{Binding CancelLocation,RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
Foreground="White"
|
||||
Content=""
|
||||
FontFamily="{DynamicResource Iconfont}"
|
||||
Style="{DynamicResource DeleteElementButtonStyle}"
|
||||
Visibility="{Binding RelativeSource={RelativeSource AncestorType=UserControl},
|
||||
Path=IsMouseOver,
|
||||
Converter={StaticResource b2v}}"
|
||||
Command="{Binding DataContext.DeleteElementCommand,RelativeSource={RelativeSource AncestorType=ItemsControl,Mode=FindAncestor}}"
|
||||
CommandParameter="{Binding}"/>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user