dynamic titles

Oct 22, 2009 at 2:49 PM

Hello,

I am trying to set the title of the DocumentContent through a style, since I want to update it dynamically (through bindings). Unfortantly, this doesn't seem to work. Here's a simple demo style that I put in Window.xaml.

<Style TargetType="{x:Type ad:DocumentContent}">
         <Setter Property="Title" Value="test"/>
      </Style>

Any suggestions?

Also, it would be useful to have the DocumentInfo and DocumentType also as dependency porperties, to have it dynamically through xaml, depending on the content.