2025-08-20 12:10:35 +08:00
|
|
|
<ui:NeoWindow
|
2025-04-24 20:56:44 +08:00
|
|
|
x:Class="ShrlAlgoToolkit.RevitAddins.RvCommon.InstanceCreatorView"
|
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:d="http://schemas.microsoft.com/expression/blend/2008"
|
2025-04-24 20:56:44 +08:00
|
|
|
xmlns:local="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvCommon"
|
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="340"
|
|
|
|
|
MinHeight="300"
|
|
|
|
|
d:DataContext="{d:DesignInstance local:InstanceCreatorViewModel}"
|
|
|
|
|
Icon="{DynamicResource RevitIcon}"
|
|
|
|
|
mc:Ignorable="d">
|
2024-09-22 11:05:41 +08:00
|
|
|
<Window.Resources>
|
|
|
|
|
<ResourceDictionary>
|
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
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
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
</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-10-10 11:19:58 +08:00
|
|
|
ui:SelectorAssist.Placeholder="选择族"
|
2024-09-22 11:05:41 +08:00
|
|
|
DisplayMemberPath="Name"
|
|
|
|
|
ItemsSource="{Binding Families}"
|
|
|
|
|
SelectedItem="{Binding SelectedFamily, UpdateSourceTrigger=PropertyChanged}" />
|
2025-10-10 11:19:58 +08:00
|
|
|
<ComboBox
|
|
|
|
|
ui:SelectorAssist.Placeholder="选择族类型"
|
2024-09-22 11:05:41 +08:00
|
|
|
DisplayMemberPath="Name"
|
|
|
|
|
ItemsSource="{Binding FamilySymbols, Mode=OneWay}"
|
2025-10-10 11:19:58 +08:00
|
|
|
SelectedItem="{Binding SelectedFamilySymbol, UpdateSourceTrigger=PropertyChanged}" />
|
2024-09-22 11:05:41 +08:00
|
|
|
<Image
|
|
|
|
|
Grid.Row="2"
|
2025-10-10 11:19:58 +08:00
|
|
|
Width="128"
|
2024-09-22 11:05:41 +08:00
|
|
|
Height="128"
|
2025-10-10 11:19:58 +08:00
|
|
|
Source="{Binding Image}" />
|
2025-08-20 12:10:35 +08:00
|
|
|
<TextBox
|
2024-09-22 11:05:41 +08:00
|
|
|
Grid.Row="3"
|
2025-08-20 12:10:35 +08:00
|
|
|
ui:InputAssist.Prefix="偏移量:"
|
|
|
|
|
ui:InputAssist.Suffix="mm"
|
2024-09-22 11:05:41 +08:00
|
|
|
Text="{Binding Offset}">
|
|
|
|
|
<!--<TextBox.Text>
|
|
|
|
|
<Binding Path="Offset" UpdateSourceTrigger="PropertyChanged">
|
|
|
|
|
<Binding.ValidationRules>
|
2025-02-10 20:53:40 +08:00
|
|
|
<rules:DoubleValidationRule xmlns:rules="clr-namespace:ShrlAlgo.RvKits.ValidationRules" ValidatesOnTargetUpdated="True" />
|
2024-09-22 11:05:41 +08:00
|
|
|
</Binding.ValidationRules>
|
|
|
|
|
</Binding>
|
|
|
|
|
</TextBox.Text>-->
|
2025-08-20 12:10:35 +08:00
|
|
|
</TextBox>
|
2024-09-22 11:05:41 +08:00
|
|
|
<Button
|
2025-04-24 20:56:44 +08:00
|
|
|
Grid.Row="4"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
2025-10-10 11:19:58 +08:00
|
|
|
Command="{Binding PlaceInstancesCommand}"
|
|
|
|
|
Content="布置"
|
2024-09-22 11:05:41 +08:00
|
|
|
ToolTip="选择dwg块并布置族实例" />
|
2025-04-24 20:56:10 +08:00
|
|
|
</ui:StackPanel>
|
2025-08-20 12:10:35 +08:00
|
|
|
</ui:NeoWindow>
|