public Column(DataGridPCtrls dataGridPCtrls, KeyDownDelegate keydowndel, ColumnType ct = ColumnType.TextBox, double width = 145.0)
 {
     InitializeComponent();
     this.keydowndel     = keydowndel;
     this.dataGridPCtrls = dataGridPCtrls;
     ColType             = ct;
     Width = width;
 }
Пример #2
0
        private static object CoerceCanUserResizeColumns(DependencyObject d, object value)
        {
            DataGridPCtrls DatagridPer = d as DataGridPCtrls;

            if (DatagridPer != null && value is bool)
            {
                DatagridPer.Headers.CanUserResizeColumns = (bool)value;
            }

            return(value);
        }
Пример #3
0
        private static object CoerceBorderThickness(DependencyObject d, object value)
        {
            DataGridPCtrls DatagridPer = d as DataGridPCtrls;

            if (DatagridPer != null && value is Thickness)
            {
                DatagridPer.GridBorder.BorderThickness = (Thickness)value;
            }

            return(new Thickness(0.0));
        }
Пример #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.border0 = ((System.Windows.Controls.Border)(target));
                return;

            case 2:
                this.TXTname = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.border = ((System.Windows.Controls.Border)(target));
                return;

            case 4:
                this.TablesDataGrid = ((leader_election_in_crash_recovery_system.DataGridPCtrls)(target));
                return;

            case 5:
                this.Confirm = ((System.Windows.Controls.Button)(target));

            #line 74 "..\..\..\Network.xaml"
                this.Confirm.Click += new System.Windows.RoutedEventHandler(this.Confirm_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.Cancel = ((System.Windows.Controls.Button)(target));

            #line 86 "..\..\..\Network.xaml"
                this.Cancel.Click += new System.Windows.RoutedEventHandler(this.Cancel_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.border4 = ((System.Windows.Controls.Border)(target));
                return;

            case 8:
                this.txtNetTime = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #5
0
        private static void GridColorFuncChanged(DependencyObject d, object value, FuncColorDelegate FuncColDel)
        {
            DataGridPCtrls DatagridPer = d as DataGridPCtrls;

            if (DatagridPer != null && value is Brush)
            {
                for (int IdxCol = 0; IdxCol < DatagridPer.CtrlStack.Children.Count; IdxCol++)
                {
                    Column col = DatagridPer.CtrlStack.Children[IdxCol] as Column;

                    if (col != null)
                    {
                        FuncColDel(col, (Brush)value);
                    }
                }
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Root = ((leader_election_in_crash_recovery_system.DataGridPCtrls)(target));

            #line 11 "..\..\..\..\DataGrid\DataGridPCtrls.xaml"
                this.Root.MouseMove += new System.Windows.Input.MouseEventHandler(this.UserControl_MouseMove);

            #line default
            #line hidden
                return;

            case 4:
                this.GridBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 5:
                this.TopRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 6:
                this.HeaderScroll = ((System.Windows.Controls.ScrollViewer)(target));

            #line 75 "..\..\..\..\DataGrid\DataGridPCtrls.xaml"
                this.HeaderScroll.AddHandler(System.Windows.Controls.Primitives.RangeBase.ValueChangedEvent, new System.Windows.RoutedPropertyChangedEventHandler <double>(this.HeaderScroll_ValueChanged));

            #line default
            #line hidden
                return;

            case 7:
                this.Headers = ((leader_election_in_crash_recovery_system.SplitterGrid)(target));
                return;

            case 8:
                this.CtrlScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 9:
                this.CtrlStack = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }