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

96 lines
4.5 KiB
Plaintext
Raw Normal View History

2025-08-20 12:10:35 +08:00
<ui:NeoWindow
2025-04-24 20:56:44 +08:00
Height="320"
MinHeight="320"
MinWidth="300"
SizeToContent="Height"
Title="创建立管"
Width="300"
WindowStartupLocation="CenterOwner"
d:DataContext="{d:DesignInstance Type=rvMep:StandMepCurveViewModel}"
mc:Ignorable="d"
x:Class="ShrlAlgoToolkit.RevitAddins.RvMEP.StandMepCurveView"
2024-09-22 11:05:41 +08:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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-04-24 20:56:44 +08:00
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
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
Content="水管"
2025-04-24 20:56:44 +08:00
IsChecked="{Binding IsPipe}"
x:Name="RbPipe" />
2024-09-22 11:05:41 +08:00
<RadioButton
Content="风管"
2025-04-24 20:56:44 +08:00
IsChecked="{Binding IsDuct}"
x:Name="RbDuct" />
2024-09-22 11:05:41 +08:00
<RadioButton
Content="桥架"
2025-04-24 20:56:44 +08:00
IsChecked="{Binding IsCableTray}"
x:Name="RbCableTray" />
2024-09-22 11:05:41 +08:00
<RadioButton
Content="线管"
2025-04-24 20:56:44 +08:00
IsChecked="{Binding IsConduit}"
x:Name="RbConduit" />
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
2024-09-22 11:05:41 +08:00
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
ItemsSource="{Binding PipeTypes}"
2025-08-20 12:10:35 +08:00
ui:InputAssist.Placeholder="&lt;管道类型&gt;"
2024-09-22 11:05:41 +08:00
SelectedItem="{Binding SelectedPipeType}" />
2025-08-20 12:10:35 +08:00
<ComboBox
2024-09-22 11:05:41 +08:00
DisplayMemberPath="Name"
ItemsSource="{Binding PipeSystemTypes}"
2025-08-20 12:10:35 +08:00
ui:InputAssist.Placeholder="&lt;系统类型&gt;"
2024-09-22 11:05:41 +08:00
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
2024-09-22 11:05:41 +08:00
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
ItemsSource="{Binding DuctTypes}"
2025-08-20 12:10:35 +08:00
ui:InputAssist.Placeholder="&lt;风管类型&gt;"
2024-09-22 11:05:41 +08:00
SelectedItem="{Binding SelectedDuctType}" />
2025-08-20 12:10:35 +08:00
<ComboBox
2024-09-22 11:05:41 +08:00
DisplayMemberPath="Name"
ItemsSource="{Binding DuctSystemTypes}"
2025-08-20 12:10:35 +08:00
ui:InputAssist.Placeholder="&lt;系统类型&gt;"
2024-09-22 11:05:41 +08:00
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
2024-09-22 11:05:41 +08:00
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
ItemsSource="{Binding ConduitTypes}"
2025-08-20 12:10:35 +08:00
ui:InputAssist.Placeholder="&lt;线管类型&gt;"
2024-09-22 11:05:41 +08:00
SelectedItem="{Binding SelectedConduitType}"
2025-08-20 12:10:35 +08:00
Visibility="{Binding IsConduit, Converter={x:Static ui:BooleanToVisibilityConverter.CollapsedInstance}}" />
<ComboBox
2024-09-22 11:05:41 +08:00
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
ItemsSource="{Binding CableTrayTypes}"
2025-08-20 12:10:35 +08:00
ui:InputAssist.Placeholder="&lt;桥架类型&gt;"
2024-09-22 11:05:41 +08:00
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
2025-04-24 20:56:44 +08:00
Command="{Binding CreateMepCurveCommand}"
Content="创建立管"
2024-09-22 11:05:41 +08:00
Grid.Row="1"
HorizontalAlignment="Stretch"
2025-04-24 20:56:44 +08:00
VerticalAlignment="Bottom" />
2025-04-24 20:56:10 +08:00
</ui:StackPanel>
2025-08-20 12:10:35 +08:00
</ui:NeoWindow>