Re-using Buttons in WPF
Posted
by Alex Marshall
on Stack Overflow
See other posts from Stack Overflow
or by Alex Marshall
Published on 2010-03-30T14:51:15Z
Indexed on
2010/03/30
14:53 UTC
Read the original article
Hit count: 459
I have a bunch of different objects that are commonly edited in the same TabControl using different DataTemplates, but I want each DataTemplate to have a common look and feel with Ok and Cancel buttons at the bottom right of each tab that will close the tab or save the content and then close the currently selected tab. What's the best way to place buttons on each tab ? Is there a way to do it without copying and pasting the buttons and stack panel across all of my data templates ?
© Stack Overflow or respective owner