Hello,I want to bind some property from my ViewModel to a RadWindow.HeaderTemplate. My approach seems not to work. Can you help me with this?
<telerik:RadWindow.HeaderTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <Image Width="18" Source="Resources/ICO/CANsymEdit.ico" Stretch="Uniform" /> <!--<ContentPresenter Content="{Binding}" Margin="5,0" />--> <TextBlock Text="{Binding DataContext.ActiveDocument, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" VerticalAlignment="Center" Margin="5,0" /> </StackPanel> </DataTemplate></telerik:RadWindow.HeaderTemplate>
regards,
Tobias
