Can I bind to use content from the controls nested in the templated parent?

Here's what I got when I used Blend to extract and edit the template for the DocumentViewer. I commented out the two buttons you mentions As far as the Zoom commands, it might have complained about invalid commands because you were missing a namespace import for System.Windows. Documents Xaml: Page xmlns="schemas.microsoft.com/winfx/2006/xaml/pr... xmlns:x="schemas.microsoft.com/winfx/2006/xaml" xmlns:System_Windows_Documents="clr-namespace:System.Windows.

Documents;assembly=PresentationUI" x:Class="WpfApplication6. Page2" x:Name="Page" WindowTitle="Page" FlowDirection="LeftToRight" Width="640" Height="480" WindowWidth="640" WindowHeight="480".

Here's what I got when I used Blend to extract and edit the template for the DocumentViewer. I commented out the two buttons you mentions. As far as the Zoom commands, it might have complained about invalid commands because you were missing a namespace import for System.Windows.Documents.Xaml.

Excellent, I can confirm this works. I had to add a refernce to PresentationUI by navigating to it in the file system, down in the WPF subfolder of my framework directory. I guess the main thing I've learned from this is, use Blend if you want to do anything sophisticated with WPF.It seems Control Templates are only "simple" if you want the new control to look simple.

– Jodrell Aug 1 at 9:13 The Zoom command only seems to be a problem at design time!?! – Jodrell Aug 1 at 9:15 Glad it worked! I would agree that Blend makes it much simpler to do complex changes to a template!

I mostly use the XAML view in VS, but kick over to blend for this kind of stuff. As far as the zoom command, I'm not sure whether it would work at runtime without the reference. – NathanAW Aug 1 at 14:39.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions