예제 #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
파일: Grid.cs 프로젝트: Clancey/ClanceyLib
 public static void SetColumnSpan(IDependencyObject element, int value)
 {
     element.SetValue (ColumnSpanProperty, value);
 }
예제 #4
0
파일: Grid.cs 프로젝트: Clancey/ClanceyLib
 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);
 }