SetButtonState() private static method

private static SetButtonState ( MessageDialog md ) : void
md MessageDialog
return void
示例#1
0
 protected override void OnLoaded()
 {
     MessageDialog.SetButtonState(this);
 }
示例#2
0
 static MessageDialog()
 {
     Class6.yDnXvgqzyB5jw();
     MessageDialog.MessageProperty = DependencyProperty.Register("Message", typeof(string), typeof(MessageDialog), new PropertyMetadata(null));
     MessageDialog.AffirmativeButtonTextProperty     = DependencyProperty.Register("AffirmativeButtonText", typeof(string), typeof(MessageDialog), new PropertyMetadata("OK"));
     MessageDialog.NegativeButtonTextProperty        = DependencyProperty.Register("NegativeButtonText", typeof(string), typeof(MessageDialog), new PropertyMetadata("Cancel"));
     MessageDialog.FirstAuxiliaryButtonTextProperty  = DependencyProperty.Register("FirstAuxiliaryButtonText", typeof(string), typeof(MessageDialog), new PropertyMetadata("Cancel"));
     MessageDialog.SecondAuxiliaryButtonTextProperty = DependencyProperty.Register("SecondAuxiliaryButtonText", typeof(string), typeof(MessageDialog), new PropertyMetadata("Cancel"));
     MessageDialog.ButtonStyleProperty = DependencyProperty.Register("ButtonStyle", typeof(MessageDialogStyle), typeof(MessageDialog), new PropertyMetadata((object)MessageDialogStyle.Affirmative, (DependencyObject s, DependencyPropertyChangedEventArgs e) => MessageDialog.SetButtonState((MessageDialog)s)));
 }