plcsharp/PLCSharpWpf/VVMs/Vision/VisionFlowHandler/Access/ImageFromLocal.xaml
2026-07-23 01:19:41 +08:00

20 lines
1.1 KiB
XML

<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Access.ImageFromLocal"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:PLCSharp.VVMs.Vision.VisionFlowHandler"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vision="clr-namespace:PLCSharp.VVMs.Vision"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance Type=vision:VisionConfigViewModel}"
d:DesignHeight="100" d:DesignWidth="300">
<StackPanel>
<Label Content="局部图像名称" />
<ComboBox IsEditable="False" ItemsSource="{Binding SelectedVisionFunction.LocalImageDatas}" SelectedValue="{Binding SelectVisionFlow.StringParams[Image], Mode=TwoWay}" SelectedValuePath="Name" DisplayMemberPath="Name" />
<TextBlock Text="{Binding Path=SelectVisionFlow.StringParams[Image]}" />
</StackPanel>
</UserControl>