Пример #1
0
 public static String GetGroupName(ToggleButton element)
 {
     return element.GetValue(GroupNameProperty).ToString();
 }
Пример #2
0
 public static TreeViewItem GetIsExpanderButtonOf(ToggleButton element)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     return element.GetValue(IsExpanderButtonOfProperty) as TreeViewItem;
 }
 public static ImageSource GetIcon(ToggleButton button)
 {
     return button.GetValue(IconProperty) as ImageSource;
 }