整理代码

This commit is contained in:
ShrlAlgo
2025-10-10 11:19:58 +08:00
parent 4722a4c881
commit 9d40762f03
111 changed files with 3238 additions and 3112 deletions

View File

@@ -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>