10 changed files with 52 additions and 65 deletions
@ -1,18 +1,18 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Windows.Controls; |
|||
|
|||
namespace Microsoft.Windows.Controls.PropertyGrid.Editors |
|||
{ |
|||
public class TextBlockEditor : TypeEditor |
|||
public class TextBlockEditor : TypeEditor<TextBlock> |
|||
{ |
|||
protected override void Initialize() |
|||
protected override void SetValueDependencyProperty() |
|||
{ |
|||
Editor = new TextBlock(); |
|||
(Editor as TextBlock).Margin = new System.Windows.Thickness(5, 0, 0, 0); |
|||
ValueProperty = TextBlock.TextProperty; |
|||
} |
|||
|
|||
protected override void SetControlProperties() |
|||
{ |
|||
Editor.Margin = new System.Windows.Thickness(5, 0, 0, 0); |
|||
} |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue