Esempio n. 1
0
 public static bool GetCanUseSort(GridViewColumn element)
 {
     if (element == null)
     {
         return false;
     }
     return (bool)element.GetValue(CanUseSortProperty);
 }
Esempio n. 2
0
        private static GridViewColumnResizeBehavior GetOrCreateBehavior(GridViewColumn element)
        {
            var behavior = element.GetValue(GridViewColumnResizeBehaviorProperty) as GridViewColumnResizeBehavior;
              if (behavior == null) {
            behavior = new GridViewColumnResizeBehavior(element);
            element.SetValue(GridViewColumnResizeBehaviorProperty, behavior);
              }

              return behavior;
        }
		public static String GetSortProperty( GridViewColumn owner )
		{
			return ( String )owner.GetValue( SortPropertyProperty );
		}
		public static Boolean GetFill( GridViewColumn owner )
		{
			return ( Boolean )owner.GetValue( FillProperty );
		}
Esempio n. 5
0
 public static ListSortDirection? GetSortDirection(GridViewColumn element)
 {
     return (ListSortDirection?)element.GetValue(SortDirectionProperty);
 }
Esempio n. 6
0
 public static bool GetCanUseSort(GridViewColumn element)
 {
     return (bool)element.GetValue(CanUseSortProperty);
 }
Esempio n. 7
0
 public static string GetSortExpression(GridViewColumn element)
 {
     return (string)element.GetValue(SortExpressionProperty);
 }
 public static string GetSortPropertyName(GridViewColumn obj)
 {
     return (string)obj.GetValue(SortPropertyNameProperty);
 }
Esempio n. 9
0
 /// <summary>
 /// Ruft den Wert der angefügten IsSortAtClickEnabled Abhängigkeitseigenschaft für eine bestimmte <see cref="System.Windows.Controls.GridViewColumn"/> ab.
 /// </summary>
 /// <param name="gvc">Die <see cref="System.Windows.Controls.GridViewColumn"/> deren IsSortAtClickEnabled Wert abgerufen werden soll.</param>
 public static bool GetIsSortAtClickEnabled(GridViewColumn gvc)
 {
     return (bool)gvc.GetValue(IsSortAtClickEnabledProperty);
 }
Esempio n. 10
0
		public static IItemComparer GetSortComparer(GridViewColumn element)
		{
			return (IItemComparer)element.GetValue(SortComparerProperty);
		}
Esempio n. 11
0
 /// <summary>
 /// Ruft den Wert der angefügten IsSortAtClickEnabled Abhängigkeitseigenschaft für eine bestimmte <see cref="System.Windows.Controls.GridViewColumn"/> ab.
 /// </summary>
 /// <param name="gvc">Die <see cref="System.Windows.Controls.GridViewColumn"/> deren IsSortAtClickEnabled Wert abgerufen werden soll.</param>
 public static bool GetIsSortAtClickEnabled(GridViewColumn gvc)
 {
     if (gvc == null) return false;
     return (bool)gvc.GetValue(IsSortAtClickEnabledProperty);
 }