Files
SzmediTools/Szmedi.RvKits/Drawing/CopyAnnotationWin.xaml
2025-09-16 16:06:41 +08:00

38 lines
1.7 KiB
XML

<controls:MaterialWindow
x:Class="Szmedi.RvKits.DrawingTools.CopyAnnotationWin"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:controls="clr-namespace:Szmedi.RvKits.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Szmedi.RvKits.DrawingTools"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="复制标注"
Width="300"
Height="300"
d:DataContext="{d:DesignInstance Type=local:CopyAnnotationViewModel}"
mc:Ignorable="d">
<controls:MaterialWindow.Resources>
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
</controls:MaterialWindow.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ListBox DisplayMemberPath="Name" ItemsSource="{Binding View3Ds}" SelectionMode="Multiple">
<b:Interaction.Triggers>
<b:EventTrigger EventName="SelectionChanged">
<b:InvokeCommandAction Command="{Binding SelectionChangedCommand}" CommandParameter="{Binding SelectedItems, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBox}}" />
</b:EventTrigger>
</b:Interaction.Triggers>
</ListBox>
<Button
Grid.Row="1"
Command="{Binding ConfirmCommand}"
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}"
Content="完成" />
</Grid>
</controls:MaterialWindow>