This question is locked. New answers and comments are not allowed.
Im using a custom version of the Metro style. Ive just overridden a few colors and done very minor tweaks. Ive done this following the steps in this article http://www.telerik.com/help/silverlight/common-styling-apperance-modifying-built-in-theme.html. This has been working for months and works perfect.
Im now attempting to add the RadPdfViewer into my application. However, the software crashes when loading a valid PDF with the following error: "Set property 'Telerik.Windows.Controls.Theme.ApplicationThemeSetter' threw an exception. [Line:12 Position: 88]"
Now to test, I did not set my MetroTheme at startup (using the default theme) and it worked just fine.
Some releavant code:
Ive noticed when i created my custom theme following the instructions in the article, there is no XAML provided for the RadPdfViewer when i downloaded the Telerik themes. Im assuming this is ok. I looked in the other themes and there was nothing related to the pdf view ther either.
Simple xaml to display the pdf (yes its a valid pdf and yes the uri is correct).
Any thoughts? It seems the exception is coming from Telerik.
Im now attempting to add the RadPdfViewer into my application. However, the software crashes when loading a valid PDF with the following error: "Set property 'Telerik.Windows.Controls.Theme.ApplicationThemeSetter' threw an exception. [Line:12 Position: 88]"
Now to test, I did not set my MetroTheme at startup (using the default theme) and it worked just fine.
Some releavant code:
public
App()
{
Startup += Application_Startup;
Exit += Application_Exit;
UnhandledException += Application_UnhandledException;
StyleManager.ApplicationTheme =
new
MetroTheme();
}
Ive noticed when i created my custom theme following the instructions in the article, there is no XAML provided for the RadPdfViewer when i downloaded the Telerik themes. Im assuming this is ok. I looked in the other themes and there was nothing related to the pdf view ther either.
Simple xaml to display the pdf (yes its a valid pdf and yes the uri is correct).
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
StackPanel
>
<
TextBlock
Text
=
"Check Sheet"
Style
=
"{StaticResource H2}"
/>
<
telerik:RadPdfViewer
DocumentSource
=
"{Binding AttachmentUri}"
/>
</
StackPanel
>
</
Grid
>
Any thoughts? It seems the exception is coming from Telerik.