SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
NavBarButton.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Windows;
6 using System.Windows.Controls;
7 
8 namespace SeciControls
9 {
10  public class NavBarButton : Button
11  {
12  public static DependencyProperty IsSelectedProperty;
13  public static DependencyProperty ShowErrorProperty;
14  public static DependencyProperty ShowWarningProperty;
15  public static DependencyProperty DefaultNameProperty;
16 
17  static NavBarButton()
18  {
19  IsSelectedProperty = DependencyProperty.Register("IsSelected", typeof(bool),
20  typeof(NavBarButton));
21  ShowErrorProperty = DependencyProperty.Register("ShowError", typeof(bool),
22  typeof(NavBarButton));
23  ShowWarningProperty = DependencyProperty.Register("ShowWarning", typeof(bool),
24  typeof(NavBarButton));
25  DefaultNameProperty = DependencyProperty.Register("DefaultName", typeof(String),
26  typeof(NavBarButton));
27  }
28 
29  public bool IsSelected
30  {
31  get { return (bool)GetValue(IsSelectedProperty); }
32  set { SetValue(IsSelectedProperty, value); }
33  }
34 
35  public bool ShowError
36  {
37  get { return (bool)GetValue(ShowErrorProperty); }
38  set { SetValue(ShowErrorProperty, value); }
39  }
40 
41  public bool ShowWarning
42  {
43  get { return (bool)GetValue(ShowWarningProperty); }
44  set { SetValue(ShowWarningProperty, value); }
45  }
46 
47  public String DefaultName
48  {
49  get { return GetValue(DefaultNameProperty).ToString(); }
50  set { SetValue(DefaultNameProperty, value); }
51  }
52  }
53 }
static DependencyProperty DefaultNameProperty
Definition: NavBarButton.cs:15
static DependencyProperty ShowErrorProperty
Definition: NavBarButton.cs:13
static DependencyProperty ShowWarningProperty
Definition: NavBarButton.cs:14
static DependencyProperty IsSelectedProperty
Definition: NavBarButton.cs:12