Files
ShrlAlgoToolkit/ShrlAlgoToolkit.RevitAddins/RvMEP/StandMepCurveView.xaml

97 lines
4.6 KiB
Plaintext
Raw Normal View History

2025-08-20 12:10:35 +08:00
<ui:NeoWindow
2025-04-24 20:56:44 +08:00
x:Class="ShrlAlgoToolkit.RevitAddins.RvMEP.StandMepCurveView"
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:rvMep="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvMEP"
2025-08-20 12:10:35 +08:00
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
2025-10-10 11:19:58 +08:00
Title="创建立管"
Width="300"
Height="200"
MinWidth="300"
MinHeight="200"
d:DataContext="{d:DesignInstance Type=rvMep:StandMepCurveViewModel}"
Icon="{DynamicResource RevitIcon}"
SizeToContent="Height"
WindowStartupLocation="CenterOwner"
mc:Ignorable="d">
2024-09-22 11:05:41 +08:00
<b:Interaction.Triggers>
<!--<b:EventTrigger EventName="Deactivated">
<b:InvokeCommandAction Command="{Binding CreateMepCurveCommand}" />
</b:EventTrigger>-->
<b:EventTrigger EventName="Closing">
<b:InvokeCommandAction Command="{Binding CancelCommand}" />
</b:EventTrigger>
</b:Interaction.Triggers>
<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>
2025-04-24 20:56:10 +08:00
<ui:StackPanel Margin="5" Spacing="5">
<ui:StackPanel Spacing="5">
2024-09-22 11:05:41 +08:00
<UniformGrid Rows="1">
<RadioButton
2025-10-10 11:19:58 +08:00
x:Name="RbPipe"
2024-09-22 11:05:41 +08:00
Content="水管"
2025-10-10 11:19:58 +08:00
IsChecked="{Binding IsPipe}" />
2024-09-22 11:05:41 +08:00
<RadioButton
2025-10-10 11:19:58 +08:00
x:Name="RbDuct"
2024-09-22 11:05:41 +08:00
Content="风管"
2025-10-10 11:19:58 +08:00
IsChecked="{Binding IsDuct}" />
2024-09-22 11:05:41 +08:00
<RadioButton
2025-10-10 11:19:58 +08:00
x:Name="RbCableTray"
2024-09-22 11:05:41 +08:00
Content="桥架"
2025-10-10 11:19:58 +08:00
IsChecked="{Binding IsCableTray}" />
2024-09-22 11:05:41 +08:00
<RadioButton
2025-10-10 11:19:58 +08:00
x:Name="RbConduit"
2024-09-22 11:05:41 +08:00
Content="线管"
2025-10-10 11:19:58 +08:00
IsChecked="{Binding IsConduit}" />
2024-09-22 11:05:41 +08:00
</UniformGrid>
2025-08-20 12:10:35 +08:00
<ui:StackPanel Spacing="5" Visibility="{Binding IsPipe, Converter={x:Static ui:BooleanToVisibilityConverter.CollapsedInstance}}">
<ComboBox
2025-12-23 21:35:54 +08:00
ui:InputAssist.PlaceholderText="&lt;管道类型&gt;"
2024-09-22 11:05:41 +08:00
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
ItemsSource="{Binding PipeTypes}"
SelectedItem="{Binding SelectedPipeType}" />
2025-08-20 12:10:35 +08:00
<ComboBox
2025-12-23 21:35:54 +08:00
ui:InputAssist.PlaceholderText="&lt;系统类型&gt;"
2024-09-22 11:05:41 +08:00
DisplayMemberPath="Name"
ItemsSource="{Binding PipeSystemTypes}"
SelectedItem="{Binding SelectedPipeSystemType}" />
2025-04-24 20:56:10 +08:00
</ui:StackPanel>
2024-09-22 11:05:41 +08:00
2025-08-20 12:10:35 +08:00
<ui:StackPanel Spacing="5" Visibility="{Binding IsDuct, Converter={x:Static ui:BooleanToVisibilityConverter.CollapsedInstance}}">
<ComboBox
2025-12-23 21:35:54 +08:00
ui:InputAssist.PlaceholderText="&lt;风管类型&gt;"
2024-09-22 11:05:41 +08:00
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
ItemsSource="{Binding DuctTypes}"
SelectedItem="{Binding SelectedDuctType}" />
2025-08-20 12:10:35 +08:00
<ComboBox
2025-12-23 21:35:54 +08:00
ui:InputAssist.PlaceholderText="&lt;系统类型&gt;"
2024-09-22 11:05:41 +08:00
DisplayMemberPath="Name"
ItemsSource="{Binding DuctSystemTypes}"
SelectedItem="{Binding SelectedDuctSystemType}" />
2025-04-24 20:56:10 +08:00
</ui:StackPanel>
2024-09-22 11:05:41 +08:00
2025-08-20 12:10:35 +08:00
<ComboBox
2025-12-23 21:35:54 +08:00
ui:InputAssist.PlaceholderText="&lt;线管类型&gt;"
2024-09-22 11:05:41 +08:00
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
ItemsSource="{Binding ConduitTypes}"
SelectedItem="{Binding SelectedConduitType}"
2025-08-20 12:10:35 +08:00
Visibility="{Binding IsConduit, Converter={x:Static ui:BooleanToVisibilityConverter.CollapsedInstance}}" />
<ComboBox
2025-12-23 21:35:54 +08:00
ui:InputAssist.PlaceholderText="&lt;桥架类型&gt;"
2024-09-22 11:05:41 +08:00
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
ItemsSource="{Binding CableTrayTypes}"
SelectedItem="{Binding SelectedCableTrayType}"
2025-08-20 12:10:35 +08:00
Visibility="{Binding IsCableTray, Converter={x:Static ui:BooleanToVisibilityConverter.CollapsedInstance}}" />
2025-04-24 20:56:10 +08:00
</ui:StackPanel>
2024-09-22 11:05:41 +08:00
<Button
Grid.Row="1"
HorizontalAlignment="Stretch"
2025-10-10 11:19:58 +08:00
VerticalAlignment="Bottom"
Command="{Binding CreateMepCurveCommand}"
Content="创建立管" />
2025-04-24 20:56:10 +08:00
</ui:StackPanel>
2025-08-20 12:10:35 +08:00
</ui:NeoWindow>