Windows Vista Forums

Presenting rich content in a control template
  1. #1


    Griff 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 SpecsSystem Spec

  2. #2


    Griff 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 SpecsSystem Spec

Presenting rich content in a control template problems?

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 23 Jul 2008
Parental Control - Block By content Vipin [MVP] Vista security 0 20 Jul 2006
Supplying named content as a parameter to control template. Griff Avalon 1 31 Jan 2006
Control Template question Griff Avalon 2 10 Jan 2006
VS/WPF crash on trying to add a WinFX Custom Control template to Jason Dolinger Avalon 3 10 Jan 2006