protected void RadioChanged(object sender, RadioMenuEventArgs e) { var mn = sender as RadioMenuHeader; if (mn != null && StoreProvider != null) { var uid = mn.GetValue(UISettings.ControlUIDProperty) as string; var settings = new Dictionary <string, object>(); settings.Add(RadioMenuHeader.CurrentKeyProperty.Name, e.CurrentKey); StoreProvider.PutSettings(uid, settings); } }