AppPromo.UWP.ActionDialog.OnDeclineTextChanged C# (CSharp) Method

OnDeclineTextChanged() private static method

private static OnDeclineTextChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d Windows.UI.Xaml.DependencyObject
e Windows.UI.Xaml.DependencyPropertyChangedEventArgs
return void
        private static void OnDeclineTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            // Get ActionDialog instance
            var dlg = (ActionDialog)d;

            // If "Don't remind me again" box is checked, update the button text.
            if (dlg.ChkDontRemind.IsChecked == true)
            {
                dlg.SecondaryButtonText = (string)e.NewValue;
            }
        }