ThoughtWorks.VisualStudio.ViewModel.ValueNotSetButton C# (CSharp) Метод

ValueNotSetButton() приватный статический Метод

private static ValueNotSetButton ( CardProperty cardProperty, FrameworkElement control ) : System.Windows.Controls.Button
cardProperty CardProperty
control System.Windows.FrameworkElement
Результат System.Windows.Controls.Button
        private static Button ValueNotSetButton(CardProperty cardProperty, FrameworkElement control)
        {
            var b = new Button
            {
                Content = "X",
                ToolTip = "Click to leave the value not set",
                Tag = cardProperty,
                Width = 30,
                FontWeight = FontWeights.Normal,
                Background = Brushes.Gainsboro,
                Style = Application.Current.Resources["PlainButtonStyle"] as Style
            };

            b.Tag = control.Tag;
            return b;
        }