2026-01-02 17:30:41 +08:00
|
|
|
<ui:MelWindow
|
2025-04-24 20:56:44 +08:00
|
|
|
x:Class="ShrlAlgoToolkit.RevitAddins.Windows.NavigateViewWin"
|
2024-09-22 11:05:41 +08:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2025-10-10 11:19:58 +08:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-09-22 11:05:41 +08:00
|
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2025-04-24 20:56:44 +08:00
|
|
|
xmlns:sControls3="clr-namespace:ShrlAlgoToolkit.RevitAddins.Windows"
|
2026-01-02 17:30:41 +08:00
|
|
|
xmlns:ui="https://github.com/ShrlAlgo/Melskin"
|
2025-10-10 11:19:58 +08:00
|
|
|
Title="选择视图"
|
|
|
|
|
Width="300"
|
|
|
|
|
Height="200"
|
|
|
|
|
d:DataContext="{d:DesignInstance Type=sControls3:NavigateViewViewModel}"
|
|
|
|
|
Icon="{DynamicResource RevitIcon}"
|
|
|
|
|
mc:Ignorable="d">
|
2024-09-22 11:05:41 +08:00
|
|
|
<Window.Resources>
|
2025-04-24 20:56:10 +08:00
|
|
|
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
2024-09-22 11:05:41 +08:00
|
|
|
</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>
|
2026-01-02 17:30:41 +08:00
|
|
|
</ui:MelWindow>
|