28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
|
|
<ex:FluentWindowEx
|
||
|
|
x:Class="Sai.RvKits.Windows.NavigateViewWin"
|
||
|
|
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:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
|
xmlns:ex="https://github.com/sherlockforrest/Wpf.Ui.Extend"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
xmlns:sControls3="clr-namespace:Sai.RvKits.Windows"
|
||
|
|
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
||
|
|
Title="选择视图"
|
||
|
|
Width="300"
|
||
|
|
Height="200"
|
||
|
|
d:DataContext="{d:DesignInstance Type=sControls3:NavigateViewViewModel}"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
<Window.Resources>
|
||
|
|
<ResourceDictionary Source="pack://application:,,,/Sai.RvKits;component/WPFUI.xaml" />
|
||
|
|
</Window.Resources>
|
||
|
|
<Grid>
|
||
|
|
<ListBox DisplayMemberPath="Name" ItemsSource="{Binding Views}">
|
||
|
|
<b:Interaction.Triggers>
|
||
|
|
<b:EventTrigger EventName="MouseDoubleClick">
|
||
|
|
<b:InvokeCommandAction Command="{Binding NavigateViewCommand}" CommandParameter="{Binding SelectedItem, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBox}}" />
|
||
|
|
</b:EventTrigger>
|
||
|
|
</b:Interaction.Triggers>
|
||
|
|
</ListBox>
|
||
|
|
</Grid>
|
||
|
|
</ex:FluentWindowEx>
|