wpf - Custom xaml markup template for user control -


Is it possible to customize default user control markup in xaml?

Assume that I have User Control named MyUserControl.

What I would like to know - is it possible, when I

    

  & lt; Control: MyUserControl & gt; & Lt; / Control: MyUserControl & gt; Rather than ending with.  

  & lt; Control: MyUserControl DependencyProperty = "1" DependencyProperty = "Person" ... & gt; & Lt; / Control: MyUserControl & gt; ' 

Actually I want to create a custom template that will be used during the automatic completion of User Control in XML Editor.

For the purpose, the user has to show available properties immediately (the user who wants to use some control that he had not used before, can see that without user browsing all the possible properties How to change important properties)

As far as I know, there is no easy to do this Not the way, but I can say that anyway To try Mr. it was impossible. You have said that you want to display the available properties immediately , but Microsoft's Intelligence is for these Visual Studio once you have declared your Dependency Property , Then it will automatically appear in a popup when a user is using your class.

As you suggest that the .net control no , you should not really do it either that you are more likely to confuse developers with this unusual behavior And they can leave these additions and possibly potentially unwanted properties because they do not know any better, your best bet for helping your code users is to make it as standard as possible. Goo can be, so to everything As required work.

You know, the most troublesome bugs


Comments