diff --git a/UnicodeCharacterInspector/CharacterInfoViewModel.cs b/UnicodeCharacterInspector/CharacterInfoViewModel.cs index 27d23d7..1dd67b3 100644 --- a/UnicodeCharacterInspector/CharacterInfoViewModel.cs +++ b/UnicodeCharacterInspector/CharacterInfoViewModel.cs @@ -12,7 +12,7 @@ namespace UnicodeCharacterInspector { private string character; private int codePoint; - private UnicodeCharInfo characterInfo = UnicodeInfo.Default.Get(0); + private UnicodeCharInfo characterInfo = UnicodeInfo.Default.GetCharInfo(0); public CharacterInfoViewModel() { @@ -40,12 +40,12 @@ namespace UnicodeCharacterInspector if ((character = value) != null) { codePoint = char.ConvertToUtf32(character, 0); - characterInfo = UnicodeInfo.Default.Get(codePoint); + characterInfo = UnicodeInfo.Default.GetCharInfo(codePoint); } else { codePoint = 0; - characterInfo = UnicodeInfo.Default.Get(0); + characterInfo = UnicodeInfo.Default.GetCharInfo(0); } NotifyPropertyChanged(); @@ -53,6 +53,7 @@ namespace UnicodeCharacterInspector NotifyPropertyChanged("Name"); NotifyPropertyChanged("OldName"); NotifyPropertyChanged("Category"); + NotifyPropertyChanged("Block"); NotifyPropertyChanged("CanonicalCombiningClass"); NotifyPropertyChanged("BidirectionalClass"); NotifyPropertyChanged("DecompositionType"); @@ -84,6 +85,11 @@ namespace UnicodeCharacterInspector get { return character != null ? characterInfo.Category : null as UnicodeCategory?; } } + public string Block + { + get { return character != null ? characterInfo.Block : null; } + } + public CanonicalCombiningClass? CanonicalCombiningClass { get { return character != null ? characterInfo.CanonicalCombiningClass : null as CanonicalCombiningClass?; } diff --git a/UnicodeCharacterInspector/MainWindow.xaml b/UnicodeCharacterInspector/MainWindow.xaml index 2c7c828..05ab2eb 100644 --- a/UnicodeCharacterInspector/MainWindow.xaml +++ b/UnicodeCharacterInspector/MainWindow.xaml @@ -69,6 +69,7 @@ +