Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Presenting rich content in a control template

 
 
Old 01-10-2006   #1 (permalink)
Griff


 
 

Presenting rich content in a control template

I have a ControlTemplate for buttons.
In this I can completely specify the appearance of a button.
I can use some of the button's original parameters using (for example)
{TemplateBinding property=xxxx}

I would like to display the original content of the button too (whatever it
might be).

I tried
<ContentPresenter Content="{TemplateBinding
Property=ContentControl.Content}"/>
but that seems not to work.

How should I be doing this ?

Thanks in advance

--
Griff
(trying to make an industrial UI with XAML/WPF/c#)

My System SpecsSystem Spec
Old 01-31-2006   #2 (permalink)
Griff


 
 

RE: Presenting rich content in a control template

Sorry for delay in responding.
In fact this subsequently did work, I'm not sure what I changed.
Thanks.


"viliescu" wrote:

> The code you have posted should work. Can you post the entire button template?


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
TFS 2008 Process Template: Default value tag for work item fieldsdoes not allow more than 255 characters to be entered into an HTML control .NET General
Printint the content of a webbrowser control .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46