コード例 #1
0
        public static void OnActionTextChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            GameActionButton control = (GameActionButton)sender;

            control.actionLabel.Content = e.NewValue.ToString();
        }
コード例 #2
0
        public static void OnImageChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            GameActionButton control = (GameActionButton)sender;

            control.image.Source = (ImageSource)e.NewValue;
        }