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);
        }
示例#2
0
 public static bool GetIsRenameEditorActivated(GridColumn element)
 {
     return((bool)element.GetValue(IsRenameEditorActivatedProperty));
 }
示例#3
0
 public static bool GetCommitOnValueChanged(GridColumn element)
 {
     return((bool)element.GetValue(CommitOnValueChangedProperty));
 }
示例#4
0
 public static ValidationRulesCollection GetValidationRules(GridColumn obj)
 {
     return((ValidationRulesCollection)obj.GetValue(ValidationRulesProperty));
 }
示例#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));
 }
示例#9
0
        public static T GetFocusedRowValue <T>(this GridColumn column)
        {
            int rowHandle = column.View.FocusedRowHandle;

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