How do you force
authors or template stylists to force add a control
Solution- Provides
template authors the information that these parts are required for styling this
control -more like a contract
[TemplatePart [Name=TextBlockPart, Type =typeof(TextBlock))) public class MyControl : Control
{
private const string TextBlockPart as PART_TextBlock;
TextBlock textblock;
protected TextBlock Textßlock
get { return textblock;}
set
{
if (textßlock is null)
(
textblock.Textlnput-= new TextCompositionEventHendler(textblockTextlnput)
J
No comments:
Post a Comment