Hello,
I cannot put anything in a FixedDocument using the XAML editor. It refuses to compile and such thing:
<Window x:Class="WpfApplication4.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<DocumentViewer>
<DocumentViewer.Document>
<FixedDocument x:Name="monDocFIxed">
<PageContent>
<FixedPage>
<TextBlock Text="Test"></TextBlock>
</FixedPage>
</PageContent>
</FixedDocument>
</DocumentViewer.Document>
</DocumentViewer>
</Grid>
</Window>
VS says:
- Erreur 1 Le type "Pages" ne contient pas de méthode setter accessible. (type "Pages" has no accessible method or setter"
- Erreur 2 La valeur spécifiée ne peut pas être attribuée. Le type suivant était attendu : "PageContentCollection". (expected type: "PageContentCollection")
- Erreur 3 La propriété 'Pages' ne prend pas en charge les valeurs de type 'PageContent'. (Pages property dos not accept PageContent type)
This problem that has been highlighted since 2010 par other developpers. At this time the answer was something like: "you have warning, but you can go thru". Now it is completely impossible. Whatever I try (nest out fixed document for example) I still have the same problem.
Thanks a lot.
Best,