Exemplo n.º 1
0
        protected override void OnPaintSubItem(SubItemPaintEventArgs paintEventArgs)
        {
            switch ((ColumnId)paintEventArgs.SubItemId)
            {
            case ColumnId.Name:
                paintEventArgs.PaintImageAndText(ImgConfig, DataContext.Name);
                break;

            case ColumnId.Value:
                ConfigParameterValueColumn.OnPaintSubItem(paintEventArgs, DataContext.Value);
                break;
            }
        }
Exemplo n.º 2
0
        protected override Size OnMeasureSubItem(SubItemMeasureEventArgs measureEventArgs)
        {
            switch ((ColumnId)measureEventArgs.SubItemId)
            {
            case ColumnId.Name:
                return(measureEventArgs.MeasureImageAndText(ImgConfig, DataContext.Name));

            case ColumnId.Value:
                return(ConfigParameterValueColumn.OnMeasureSubItem(measureEventArgs, DataContext.Value));

            default:
                return(Size.Empty);
            }
        }