Exemple #1
0
 public static bool GetFoo(System.Windows.DependencyObject element) => (bool)element.GetValue(FooProperty);
Exemple #2
0
 public static System.Windows.Media.Color GetStrokeColor(System.Windows.DependencyObject obj)
 {
     return((System.Windows.Media.Color)obj.GetValue(StrokeColorProperty));
 }
 public static object GetReportSource(System.Windows.DependencyObject target)
 {
     return(target.GetValue(ReportSourceProperty));
 }
Exemple #4
0
 public static System.Windows.Media.Brush GetStroke(System.Windows.DependencyObject obj)
 {
     return((System.Windows.Media.Brush)obj.GetValue(StrokeProperty));
 }
Exemple #5
0
 public static System.Windows.Media.Geometry GetData(System.Windows.DependencyObject obj)
 {
     return((System.Windows.Media.Geometry)obj.GetValue(DataProperty));
 }
Exemple #6
0
 public static bool GetIsEnabledWithScroll(System.Windows.DependencyObject element)
 {
     return((bool)element.GetValue(IsEnabledWithScrollProperty));
 }
Exemple #7
0
 public static System.Windows.Input.ICommand GetDoubleClickCommand(System.Windows.DependencyObject obj)
 {
     return((System.Windows.Input.ICommand)obj.GetValue(DoubleClickCommandProperty));
 }
Exemple #8
0
            private static double GetValue(System.Windows.DependencyObject obj, System.Windows.DependencyProperty property, double defaultValue = 0)
            {
                double value = (double)obj.GetValue(property);

                return(!double.IsNaN(value) ? value : defaultValue);
            }