Loading files
using System.Windows;
using System.Windows.Controls;
namespace IDE.Controls.WPF.PropertyGrid.Editors;
public class TextBlockEditor : TypeEditor<TextBlock>
{
protected override TextBlock CreateEditor()
{
return new PropertyGridEditorTextBlock();
}
protected override void SetValueDependencyProperty()
{
ValueProperty = TextBlock.TextProperty;
}
protected override void SetControlProperties(PropertyItem propertyItem)
{
Editor.Margin = new System.Windows.Thickness(5, 0, 0, 0);
Editor.TextTrimming = TextTrimming.CharacterEllipsis;
}
}
366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.