/// <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 void SetColumnSpan(IDependencyObject element, int value) { element.SetValue (ColumnSpanProperty, value); }
public static void SetRow(IDependencyObject element, int value) { element.SetValue (RowProperty, value); }
public static void SetColumn(IDependencyObject element, object value) { element.SetValue(UIGrid.ColumnProperty , value); }
public static void SetRowSpan(IDependencyObject element, object value) { element.SetValue(UIGrid.RowSpanProperty , value); }
public static void SetColumnSpan(IDependencyObject element, object value) { element.SetValue(UIGrid.ColumnSpanProperty, value); }
public static void SetRow(IDependencyObject element, object value) { element.SetValue(UIGrid.RowProperty, value); }
public static void SetTop(IDependencyObject element, int value) { element.SetValue(Canvas.TopProperty, value); }
public static void SetTop (IDependencyObject element, int value) { element.SetValue (Canvas.TopProperty, value); }
public static void SetRowSpan(IDependencyObject element, int value) { element.SetValue(RowSpanProperty, value); }
public static void SetColumn(IDependencyObject element, int value) { element.SetValue(ColumnProperty, value); }