public void OnToSelectionChanged(object sender, SelectionChangedEventArgs e) { if (e != null) { if (e.AddedItems.Count <= 0) { return; } ApplicationState.CategoryPageInformation.TargetUnitName = (e.AddedItems[0] as UnitInformation).NameLocalized; } }