命名优化,达芬奇字体修改工具
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<n:NeoWindow
|
||||
Height="450"
|
||||
Title="图标预览"
|
||||
Width="820"
|
||||
d:DataContext="{d:DesignInstance Type=local:IconsWindow}"
|
||||
mc:Ignorable="d"
|
||||
x:Class="NeoUITest.IconsWindow"
|
||||
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:NeoUITest"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:n="https://github.com/ShrlAlgo/NeoUI"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
Title="图标预览"
|
||||
Width="820"
|
||||
Height="450"
|
||||
d:DataContext="{d:DesignInstance Type=local:IconsWindow}"
|
||||
mc:Ignorable="d">
|
||||
<Grid Margin="10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
<!-- 第一行: 搜索框 -->
|
||||
<Border
|
||||
BorderBrush="LightGray"
|
||||
BorderThickness="0,0,0,1"
|
||||
Grid.Row="0"
|
||||
Padding="10">
|
||||
Padding="10"
|
||||
BorderBrush="LightGray"
|
||||
BorderThickness="0,0,0,1">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
@@ -31,18 +31,18 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBox
|
||||
FontSize="14"
|
||||
Grid.Column="1"
|
||||
Padding="5"
|
||||
Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}"
|
||||
VerticalContentAlignment="Center">
|
||||
VerticalContentAlignment="Center"
|
||||
FontSize="14"
|
||||
Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}">
|
||||
<n:InputAssist.Suffix>
|
||||
<n:IconElement
|
||||
Margin="0,0,10,0"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="18"
|
||||
Foreground="Gray"
|
||||
Margin="0,0,10,0"
|
||||
Symbol="Search"
|
||||
VerticalAlignment="Center" />
|
||||
Symbol="Search" />
|
||||
</n:InputAssist.Suffix>
|
||||
</TextBox>
|
||||
</Grid>
|
||||
@@ -50,44 +50,47 @@
|
||||
|
||||
<!-- 第二行: 选中图标信息和复制代码 -->
|
||||
<Border
|
||||
BorderBrush="LightGray"
|
||||
BorderThickness="0,0,0,1"
|
||||
Grid.Row="1"
|
||||
Padding="10">
|
||||
Padding="10"
|
||||
BorderBrush="LightGray"
|
||||
BorderThickness="0,0,0,1">
|
||||
<n:FlexibleRowPanel LayoutMode="Auto">
|
||||
<TextBlock Foreground="{DynamicResource TextPrimaryBrush}"
|
||||
<TextBlock
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Bold"
|
||||
Text="选中图标:"
|
||||
VerticalAlignment="Center" />
|
||||
Foreground="{DynamicResource TextPrimaryBrush}"
|
||||
Text="选中图标:" />
|
||||
<!-- 确保绑定是 OneWay,因为我们只从后台更新UI -->
|
||||
<TextBox
|
||||
Margin="10,0"
|
||||
Padding="5"
|
||||
VerticalAlignment="Center"
|
||||
n:FlexibleRowPanel.IsFill="True"
|
||||
FontWeight="Bold"
|
||||
Foreground="{DynamicResource PrimaryNormalBrush}"
|
||||
IsReadOnly="True"
|
||||
Margin="10,0"
|
||||
Padding="5"
|
||||
Text="{Binding SelectedSymbolName, Mode=OneWay, FallbackValue='请选择一个图标...'}"
|
||||
VerticalAlignment="Center"
|
||||
n:FlexibleRowPanel.IsFill="True" />
|
||||
Text="{Binding SelectedSymbolName, Mode=OneWay, FallbackValue='请选择一个图标...'}" />
|
||||
<Button
|
||||
Click="CopyCode_Click"
|
||||
Content="复制代码"
|
||||
Padding="10,5"
|
||||
VerticalAlignment="Center" />
|
||||
<n:ColorPicker
|
||||
Margin="10,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
x:Name="ColorPicker" />
|
||||
Click="CopyCode_Click"
|
||||
Content="复制代码" />
|
||||
<n:ColorPicker
|
||||
x:Name="ColorPicker"
|
||||
Margin="10,0,0,0"
|
||||
VerticalAlignment="Center" />
|
||||
</n:FlexibleRowPanel>
|
||||
</Border>
|
||||
|
||||
<!-- 第三行: 图标浏览器 -->
|
||||
<ListBox
|
||||
Name="IconItemsControl"
|
||||
Grid.Row="2"
|
||||
ItemsSource="{Binding SymbolCollectionView}"
|
||||
Name="IconItemsControl"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
||||
SelectionChanged="IconItemsControl_SelectionChanged">
|
||||
SelectionChanged="IconItemsControl_SelectionChanged"
|
||||
VirtualizingStackPanel.IsVirtualizing="True"
|
||||
VirtualizingStackPanel.VirtualizationMode="Recycling">
|
||||
<ListBox.Foreground>
|
||||
<SolidColorBrush Color="{Binding ElementName=ColorPicker, Path=SelectedColor}" />
|
||||
</ListBox.Foreground>
|
||||
@@ -105,13 +108,13 @@
|
||||
Symbol="{Binding}"
|
||||
ToolTip="{Binding}" />
|
||||
<TextBlock
|
||||
FontSize="12"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,5,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="12"
|
||||
Text="{Binding}"
|
||||
TextWrapping="Wrap"
|
||||
ToolTip="{Binding}"
|
||||
VerticalAlignment="Center" />
|
||||
ToolTip="{Binding}" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
|
||||
Reference in New Issue
Block a user