Sanguosha.UI.Controls.CardSetView._IsGetCardButtonShown_Changed C# (CSharp) Méthode

_IsGetCardButtonShown_Changed() public static méthode

public static _IsGetCardButtonShown_Changed ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs args ) : void
o System.Windows.DependencyObject
args System.Windows.DependencyPropertyChangedEventArgs
Résultat void
        public static void _IsGetCardButtonShown_Changed(DependencyObject o, DependencyPropertyChangedEventArgs args)
        {
            CardSetView view = o as CardSetView;
            if (view != null)
            {
                view.btnGetCard.Visibility = (bool)args.NewValue ? Visibility.Visible : Visibility.Collapsed;
            }
        }