![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 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 Specs![]() |
| | #2 (permalink) |
| Guest | RE: Presenting rich content in a control template The code you have posted should work. Can you post the entire button template? -- Valentin Iliescu [MVP C#] "Griff" wrote: > 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 Specs![]() |
| | #3 (permalink) |
| Guest | 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 Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TFS 2008 Process Template: Default value tag for work item fieldsdoes not allow more than 255 characters to be entered into an HTML control | Steve | .NET General | 0 | 07-23-2008 11:13 AM |
| Parental Control - Block By content | Vipin [MVP] | Vista security | 0 | 07-20-2006 06:19 AM |
| Supplying named content as a parameter to control template. | Griff | Avalon | 1 | 01-31-2006 06:59 AM |
| Control Template question | Griff | Avalon | 3 | 01-10-2006 03:54 PM |
| VS/WPF crash on trying to add a WinFX Custom Control template to | Jason Dolinger | Avalon | 5 | 01-10-2006 03:52 PM |