mirror of
https://gitee.com/wang-yin1/wpf-visual-process-framework
synced 2026-03-02 15:50:51 +08:00
27 lines
1.4 KiB
Plaintext
27 lines
1.4 KiB
Plaintext
|
|
<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>
|