示例#1
0
 /// <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;
 }
示例#2
0
        /// <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);
        }
示例#3
0
 public static void SetColumnSpan(IDependencyObject element, int value)
 {
     element.SetValue (ColumnSpanProperty, value);
 }
示例#4
0
 public static void SetRow(IDependencyObject element, int value)
 {
     element.SetValue (RowProperty, value);
 }
示例#5
0
		public static void SetColumn(IDependencyObject element, object value) { element.SetValue(UIGrid.ColumnProperty , value); }
示例#6
0
		public static void SetRowSpan(IDependencyObject element, object value) { element.SetValue(UIGrid.RowSpanProperty , value); }
示例#7
0
 public static void  SetColumnSpan(IDependencyObject element, object value)
 {
     element.SetValue(UIGrid.ColumnSpanProperty, value);
 }
示例#8
0
 public static void SetRow(IDependencyObject element, object value)
 {
     element.SetValue(UIGrid.RowProperty, value);
 }
示例#9
0
 public static void SetTop(IDependencyObject element, int value)
 {
     element.SetValue(Canvas.TopProperty, value);
 }
示例#10
0
		public static void SetTop (IDependencyObject element, int value)
		{
			element.SetValue (Canvas.TopProperty, value);
		}
示例#11
0
 public static void SetRowSpan(IDependencyObject element, int value)
 {
     element.SetValue(RowSpanProperty, value);
 }
示例#12
0
 public static void SetColumn(IDependencyObject element, int value)
 {
     element.SetValue(ColumnProperty, value);
 }