Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I'm new to WPF.

I want to override a behaviour of a push button, and searches from the web tells me to write a template.

There are plenty of template snippets around but I'm stuck much before that.

Where exactly do I put the template?

Is it a new XAML file I add to the project?

Do I squeeze the lines of code in the XAML that puts the button in question on the window I'm working on?

Please can someone show me step by step, from the very very basic, where I put the template?

Thanks.
Posted

1 solution

There are lots of samples of WPF in the articles section here on CodeProject, including a number of step by step guides. Take a look through them for some help.
 
Share this answer
 
Comments
PaulowniaK 1-Dec-11 19:16pm    
As I've written in my original post, I have found a lot of help. Just that as far as I'm concerned, they don't start at the beginning enough. There seems to be one vital piece missing, from when a solution is created to when a template is written.
Richard MacCutchan 2-Dec-11 4:39am    
I'm still not sure what you mean by a "template" in your original question. Maybe you should reword your question and post it in the WPF forum where more of the experts will see it.
PaulowniaK 4-Dec-11 20:23pm    
OK, thanks for the suggestion. I shall migrate to the appropriate forum.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900