/// <summary> /// Gets the TriggerCollection containing the triggers associated with the specified object. /// </summary> /// <param name="obj">The object from which to retrieve the triggers.</param> /// <returns> /// A TriggerCollection containing the triggers associated with the specified object. /// </returns> public static TriggerCollection GetTriggers(IDependencyObject obj) { var triggerCollection = (TriggerCollection) obj.GetValue(TriggersProperty); if (triggerCollection == null) { triggerCollection = new TriggerCollection(); obj.SetValue(TriggersProperty, triggerCollection); } return triggerCollection; }
/// <summary> /// Gets the TriggerCollection containing the triggers associated with the specified object. /// </summary> /// <param name="obj">The object from which to retrieve the triggers.</param> /// <returns> /// A TriggerCollection containing the triggers associated with the specified object. /// </returns> public static TriggerCollection GetTriggers(IDependencyObject obj) { var triggerCollection = (TriggerCollection)obj.GetValue(TriggersProperty); if (triggerCollection == null) { triggerCollection = new TriggerCollection(); obj.SetValue(TriggersProperty, triggerCollection); } return(triggerCollection); }
public static int GetRowSpan(IDependencyObject element) { return (int) element.GetValue (RowSpanProperty); }
public static int GetColumn(IDependencyObject element) { return (int) element.GetValue (ColumnProperty); }
// A .NET property wrapper (not must) public static int GetRow (IDependencyObject element){return (int)element.GetValue(UIGrid.RowProperty ); }
public static int GetColumnSpan(IDependencyObject element) { return((int)element.GetValue(UIGrid.ColumnSpanProperty)); }
// A .NET property wrapper (not must) public static int GetRow(IDependencyObject element) { return((int)element.GetValue(UIGrid.RowProperty)); }
public static int GetTop(IDependencyObject element) { return((int)element.GetValue(Canvas.TopProperty)); }
public static int GetTop (IDependencyObject element) { return (int)element.GetValue (Canvas.TopProperty); }
public static int GetRowSpan(IDependencyObject element) { return((int)element.GetValue(RowSpanProperty)); }