2025-02-10 20:53:40 +08:00
|
|
|
<ui:FluentWindowEx
|
2025-04-24 20:56:44 +08:00
|
|
|
Height="340"
|
|
|
|
|
MinHeight="300"
|
|
|
|
|
Title="族实例布置"
|
|
|
|
|
Width="220"
|
|
|
|
|
d:DataContext="{d:DesignInstance local:InstanceCreatorViewModel}"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
x:Class="ShrlAlgoToolkit.RevitAddins.RvCommon.InstanceCreatorView"
|
2024-09-22 11:05:41 +08:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
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-02-10 20:53:40 +08:00
|
|
|
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
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
|
|
|
<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-02-10 20:53:40 +08:00
|
|
|
<ui:ComboBoxEx
|
2024-09-22 11:05:41 +08:00
|
|
|
DisplayMemberPath="Name"
|
|
|
|
|
ItemsSource="{Binding Families}"
|
|
|
|
|
PlaceholderText="选择族"
|
|
|
|
|
SelectedItem="{Binding SelectedFamily, UpdateSourceTrigger=PropertyChanged}" />
|
2025-02-10 20:53:40 +08:00
|
|
|
<ui:ComboBoxEx
|
2024-09-22 11:05:41 +08:00
|
|
|
DisplayMemberPath="Name"
|
|
|
|
|
IsSynchronizedWithCurrentItem="True"
|
|
|
|
|
ItemsSource="{Binding FamilySymbols, Mode=OneWay}"
|
|
|
|
|
PlaceholderText="选择族类型"
|
|
|
|
|
SelectedItem="{Binding SelectedFamilySymbol, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
ShowFilterBox="False" />
|
|
|
|
|
<Image
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Height="128"
|
2025-04-24 20:56:44 +08:00
|
|
|
Source="{Binding Image}"
|
|
|
|
|
Width="128" />
|
2025-02-10 20:53:40 +08:00
|
|
|
<ui:TextBoxEx
|
2024-09-22 11:05:41 +08:00
|
|
|
Grid.Row="3"
|
|
|
|
|
Prefix="偏移量:"
|
|
|
|
|
Suffix="mm"
|
|
|
|
|
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-02-10 20:53:40 +08:00
|
|
|
</ui:TextBoxEx>
|
2024-09-22 11:05:41 +08:00
|
|
|
<Button
|
|
|
|
|
Command="{Binding PlaceInstancesCommand}"
|
|
|
|
|
Content="布置"
|
2025-04-24 20:56:44 +08:00
|
|
|
Grid.Row="4"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
2024-09-22 11:05:41 +08:00
|
|
|
ToolTip="选择dwg块并布置族实例" />
|
2025-04-24 20:56:10 +08:00
|
|
|
</ui:StackPanel>
|
2025-02-10 20:53:40 +08:00
|
|
|
</ui:FluentWindowEx>
|