public override void Drop(UIElement source, Point pt)
        {
            TableView  view   = GetDataView(source) as TableView;
            GridColumn column = (source as GridColumnHeader).DataContext as GridColumn;
            bool       flag   = Convert.ToBoolean(column.GetValue(AbsoluteVisible.IsEnableProperty));

            if (flag)
            {
                DragDropScroller.StopScrolling(GetDataView(source));
                return;
            }
            base.Drop(source, pt);
        }
Exemple #2
0
 public static bool GetIsRenameEditorActivated(GridColumn element)
 {
     return((bool)element.GetValue(IsRenameEditorActivatedProperty));
 }
Exemple #3
0
 public static bool GetCommitOnValueChanged(GridColumn element)
 {
     return((bool)element.GetValue(CommitOnValueChangedProperty));
 }
Exemple #4
0
 public static ValidationRulesCollection GetValidationRules(GridColumn obj)
 {
     return((ValidationRulesCollection)obj.GetValue(ValidationRulesProperty));
 }
Exemple #5
0
 public static string GetName(GridColumn target)
 {
     return (string)target.GetValue(NameProperty);
 }
 public static string GetPath(GridColumn obj)
 {
     return((string)obj.GetValue(PathProperty));
 }
 public static string GetComplexFieldName(GridColumn obj)
 {
     return((string)obj.GetValue(ComplexFieldNameProperty));
 }
 static ComplextPath GetComplexPath(GridColumn obj)
 {
     return((ComplextPath)obj.GetValue(ComplexPathProperty));
 }
        public static T GetFocusedRowValue <T>(this GridColumn column)
        {
            int rowHandle = column.View.FocusedRowHandle;

            return(column.GetValue <T>(rowHandle));
        }
Exemple #10
0
 public static int GetSortIndex(GridColumn obj)
 {
     return((int)obj.GetValue(SortIndexProperty));
 }