Esempio n. 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;
 }
Esempio n. 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);
        }
Esempio n. 3
0
 public static int GetRowSpan(IDependencyObject element)
 {
     return (int) element.GetValue (RowSpanProperty);
 }
Esempio n. 4
0
 public static int GetColumn(IDependencyObject element)
 {
     return (int) element.GetValue (ColumnProperty);
 }
Esempio n. 5
0
		// A .NET property wrapper (not must)
		public static int GetRow (IDependencyObject element){return (int)element.GetValue(UIGrid.RowProperty );	}
Esempio n. 6
0
 public static int GetColumnSpan(IDependencyObject element)
 {
     return((int)element.GetValue(UIGrid.ColumnSpanProperty));
 }
Esempio n. 7
0
 // A .NET property wrapper (not must)
 public static int GetRow(IDependencyObject element)
 {
     return((int)element.GetValue(UIGrid.RowProperty));
 }
Esempio n. 8
0
 public static int GetTop(IDependencyObject element)
 {
     return((int)element.GetValue(Canvas.TopProperty));
 }
Esempio n. 9
0
		public static int GetTop (IDependencyObject element)
		{
			return (int)element.GetValue (Canvas.TopProperty);
		}
Esempio n. 10
0
 public static int GetRowSpan(IDependencyObject element)
 {
     return((int)element.GetValue(RowSpanProperty));
 }