示例#1
0
        protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem)
        {
            IconCellControl tb = null;

            tb = new IconCellControl(cell, true);
            if (this.Binding != null)
            {
                //tb.RightTextBlock.SetBinding(TextBlock.TextProperty, this.Binding);
                //tb.RightTextBlock.TextWrapping = TextWrapping.Wrap;

                tb.SetBinding(IconCellControl.HiddenProperty, this.Binding);
            }

            return(tb);
        }
示例#2
0
        private static void OnHiddenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            IconCellControl cell = d as IconCellControl;

            cell.OnHiddenChanged();
        }
示例#3
0
文件: AutoDataGrid.cs 项目: JuRogn/OA
        protected override FrameworkElement GenerateElement(DataGridCell cell, object dataItem)
        {
            
            IconCellControl tb = null;
            tb = new IconCellControl(cell, true);
            if (this.Binding != null)
            {   
                //tb.RightTextBlock.SetBinding(TextBlock.TextProperty, this.Binding);
                //tb.RightTextBlock.TextWrapping = TextWrapping.Wrap;

                tb.SetBinding(IconCellControl.HiddenProperty, this.Binding);
            }
            
            return tb;
        }