Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Style x:Key="DocViewerToolBarStyle" TargetType="{x:Type ContentControl}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ContentControl}">
- <ToolBarTray... />
- <ToolBar.../>
- <Button../>
- <Button..>
- <Label x:Name="myStatusLabel" .. />
- <Label x:Name="myStatusLabel" Content={TemplateBinding MyStatusLabelProperty} ../>
- <Label x:Name="myStatusLabel" Content="{TemplateBinding Content}"/>
- <DataTemplate DataType={x:Type viewmodel:MyToolBarViewModel}>
- <Label Content={Binding CurrentPage} />
- <Label Content={Binding TotalPages} ContentStringFormat="{}of {0}" />
- </DataTemplate>
- <ToolBar>
- <ContentPresenter Content={Binding <PathtoViewModel>} />
- </ToolBar>
Add Comment
Please, Sign In to add comment