static void OnRadio(object obj, ChangedArgs args) { RadioAction action = (RadioAction)obj; Console.WriteLine("Action {0} (type={1}) activated (active={2}) (value {3})", action.Name, action.GetType().FullName, action.Active, action.CurrentValue); }
private void RadioActionActivated(object sender, ChangedArgs args) { RadioAction action = args.Current; MessageDialog md; if (action.Active) { md = new MessageDialog(this, DialogFlags.DestroyWithParent, MessageType.Info, ButtonsType.Close, "You activated radio action: \"{0}\" of type \"{1}\".\nCurrent value: {2}", action.Name, action.GetType(), args.Current.Value); md.Run(); md.Destroy(); } }