Files
ShrlAlgoToolkit/ShrlAlgoToolkit.RevitAddins/RvMEP/CableLayoutView.xaml

50 lines
2.4 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.CableLayoutView"
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"
2025-04-24 20:56:44 +08:00
xmlns:electricDesign="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvMEP"
2024-09-22 11:05:41 +08:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
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="220"
Height="200"
MinWidth="220"
d:DataContext="{d:DesignInstance Type=electricDesign:CableLayoutViewModel}"
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>
2025-04-24 20:56:10 +08:00
<ui:StackPanel Margin="5" Spacing="5">
2025-08-20 12:10:35 +08:00
<ComboBox
2025-12-23 21:35:54 +08:00
ui:InputAssist.PlaceholderText="线缆型号"
2024-09-22 11:05:41 +08:00
ItemTemplate="{StaticResource MultiDisplayMemberPath}"
ItemsSource="{Binding Specifications}"
SelectedItem="{Binding SelectedConduitType, UpdateSourceTrigger=PropertyChanged}">
<b:Interaction.Triggers>
<b:EventTrigger EventName="SelectionChanged">
<b:InvokeCommandAction Command="{Binding SelectionTypeCommand}" />
</b:EventTrigger>
</b:Interaction.Triggers>
2025-08-20 12:10:35 +08:00
</ComboBox>
<ComboBox
2025-12-23 21:35:54 +08:00
ui:InputAssist.PlaceholderText="线缆线径"
2024-09-22 11:05:41 +08:00
DisplayMemberPath="Key"
ItemsSource="{Binding Sizes}"
SelectedValue="{Binding Size, UpdateSourceTrigger=PropertyChanged}"
SelectedValuePath="Value" />
2025-08-20 12:10:35 +08:00
<TextBox
2025-12-23 21:35:54 +08:00
ui:InputAssist.PlaceholderText="线缆数量"
2025-10-10 11:19:58 +08:00
InputMethod.IsInputMethodEnabled="False"
2024-09-22 11:05:41 +08:00
Text="{Binding Count, UpdateSourceTrigger=PropertyChanged}" />
2025-10-10 11:19:58 +08:00
<Button HorizontalAlignment="Stretch" Content="布置">
2024-09-22 11:05:41 +08:00
<b:Interaction.Triggers>
<b:EventTrigger EventName="Click">
<b:InvokeCommandAction Command="{Binding CloseWinCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}" />
</b:EventTrigger>
</b:Interaction.Triggers>
</Button>
2025-04-24 20:56:10 +08:00
</ui:StackPanel>
2025-08-20 12:10:35 +08:00
</ui:NeoWindow>