This project is read-only.

dynamic titles

Oct 22, 2009 at 3:49 PM


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"/>

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.