Ask Your Question

What is the method to make the XAML Designer execute the initialization code of my personalized user interface element?

asked 2023-02-12 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-05-30 20:00:00 +0000

pufferfish gravatar image

The XAML Designer executes the initialization code of a personalized user interface element when you add it to the design surface. However, if you want to force it to re-execute the initialization code after making changes to it, you can either rebuild your project or simply close and reopen the XAML file containing your element. This will force the XAML Designer to recompile and reload your element, executing its initialization code in the process.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer

Question Tools


Asked: 2023-02-12 11:00:00 +0000

Seen: 15 times

Last updated: May 30 '21