public static bool GetFoo(System.Windows.DependencyObject element) => (bool)element.GetValue(FooProperty);
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)); }
public static System.Windows.Media.Brush GetStroke(System.Windows.DependencyObject obj) { return((System.Windows.Media.Brush)obj.GetValue(StrokeProperty)); }
public static System.Windows.Media.Geometry GetData(System.Windows.DependencyObject obj) { return((System.Windows.Media.Geometry)obj.GetValue(DataProperty)); }
public static bool GetIsEnabledWithScroll(System.Windows.DependencyObject element) { return((bool)element.GetValue(IsEnabledWithScrollProperty)); }
public static System.Windows.Input.ICommand GetDoubleClickCommand(System.Windows.DependencyObject obj) { return((System.Windows.Input.ICommand)obj.GetValue(DoubleClickCommandProperty)); }
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); }