整理代码
This commit is contained in:
@@ -10,16 +10,14 @@
|
||||
xmlns:n="https://github.com/ShrlAlgo/NeoUI"
|
||||
Title="模型检查"
|
||||
Width="600"
|
||||
MinHeight="500"
|
||||
Height="500"
|
||||
d:DataContext="{d:DesignInstance modelManager:ModelCheckViewModel}"
|
||||
Icon="{DynamicResource RevitIcon}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
||||
<!--<ResourceDictionary Source="pack://application:,,,/NeoUI;component/Themes/Light.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/NeoUI;component/Themes/ColorPalette/LightBlue.xaml"/>
|
||||
<ResourceDictionary Source="pack://application:,,,/NeoUI;component/Themes/Styles.xaml" />-->
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<Style x:Key="GroupHeaderStyle" TargetType="{x:Type GroupItem}">
|
||||
<Setter Property="Template">
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
<ui:NeoWindow
|
||||
Height="200"
|
||||
SizeToContent="Height"
|
||||
Title="拆分模型"
|
||||
Topmost="True"
|
||||
Width="300"
|
||||
d:DataContext="{d:DesignInstance Type=local:SeparateModelViewModel}"
|
||||
mc:Ignorable="d"
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.ModelManager.SeparateModelWin"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:ShrlAlgoToolkit.RevitAddins.ModelManager"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
Title="拆分模型"
|
||||
Width="300"
|
||||
Height="200"
|
||||
d:DataContext="{d:DesignInstance Type=local:SeparateModelViewModel}"
|
||||
Icon="{DynamicResource RevitIcon}"
|
||||
SizeToContent="Height"
|
||||
Topmost="True"
|
||||
mc:Ignorable="d">
|
||||
<ui:NeoWindow.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
||||
</ui:NeoWindow.Resources>
|
||||
@@ -27,10 +28,10 @@
|
||||
ui:InputAssist.Placeholder="保存路径"
|
||||
Text="{Binding FolderPath, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Button
|
||||
Command="{Binding SeparateCommand}"
|
||||
Content="拆分"
|
||||
Margin="5"
|
||||
HorizontalAlignment="Stretch"
|
||||
Margin="5" />
|
||||
Command="{Binding SeparateCommand}"
|
||||
Content="拆分" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</ui:NeoWindow>
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
<ui:NeoWindow
|
||||
Height="450"
|
||||
Width="800"
|
||||
d:DataContext="{d:DesignInstance Type=local:TemplateManagerViewModel}"
|
||||
mc:Ignorable="d"
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.ModelManager.TemplateManagerView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:ShrlAlgoToolkit.RevitAddins.ModelManager"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:ui="https://github.com/ShrlAlgo/NeoUI"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
Width="800"
|
||||
Height="450"
|
||||
d:DataContext="{d:DesignInstance Type=local:TemplateManagerViewModel}"
|
||||
Icon="{DynamicResource RevitIcon}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
||||
</Window.Resources>
|
||||
@@ -24,12 +25,16 @@
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel>
|
||||
<ComboBox
|
||||
DisplayMemberPath="Name"
|
||||
ItemsSource="{Binding FontFamilies}"
|
||||
SelectedItem="{Binding SelectFontFamily}" />
|
||||
DisplayMemberPath="Name"
|
||||
ItemsSource="{Binding FontFamilies}"
|
||||
SelectedItem="{Binding SelectFontFamily}" />
|
||||
<TextBox Text="{Binding FontSize}" />
|
||||
<TextBox Text="{Binding WidthScale}" />
|
||||
<Button Command="{Binding ModifyFontCommand}" Content="修改字体" />
|
||||
<Button
|
||||
Command="{Binding CleanFontTypeCommand}"
|
||||
Content="整理字体"
|
||||
ToolTip="清理重复的字体,重命名字体" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</ui:NeoWindow>
|
||||
|
||||
Reference in New Issue
Block a user