Rebuilt the data file, and fixed the handling of name aliases.

This commit is contained in:
GoldenCrystal
2014-11-21 17:04:55 +01:00
parent b148e69ca0
commit 2324d2c272
5 changed files with 10 additions and 13 deletions
@@ -104,7 +104,7 @@ namespace UnicodeCharacterInspector
public UnicodeNameAliasCollection NameAliases
{
get { return characterInfo.NameAliases; }
get { return character != null ? characterInfo.NameAliases : new UnicodeNameAliasCollection(); }
}
public string OldName
+6 -1
View File
@@ -53,6 +53,9 @@
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="Margin" Value="6" />
</Style>
<Style TargetType="{x:Type ItemsControl}" BasedOn="{StaticResource ResourceKey={x:Type ItemsControl}}">
<Setter Property="Margin" Value="6" />
</Style>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition Width ="Auto" />
@@ -95,7 +98,9 @@
<ItemsControl Grid.Row="3" Grid.Column="1" Visibility="{Binding SelectedCharacterInfo.NameAliases.Count, Converter={StaticResource ZeroToVisibilityConverter}}" ItemsSource="{Binding SelectedCharacterInfo.NameAliases}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock TextWrapping="WrapWithOverflow" Text="{Binding}" />
<TextBlock TextWrapping="WrapWithOverflow">
<Run Text="{Binding Name, Mode=OneTime}" /> (<Run Text="{Binding Kind, Mode=OneTime}" />)
</TextBlock>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>