or
Hi,
we use Telerik V2012.1.326.35 with VS2008 and we have a strange problem :(
Actually in our solution, in one of our project we added a RadPdfViewer in a XAML file. In code behind, on a RadButton click event, we call the following method :
private void loadDoc()
{
PdfDocumentSource newDoc = new PdfDocumentSource(new Uri(@"c:\MyDir\pdf2.pdf"));
PdfDoc.DocumentSource = newDoc;
}
I don't know why but I always received the follwing error message (see attached file).
If I move our method in a brand new solution and project, it work!!! I checked all Telerik files and they are the same in both projects.
Any thought???
Thank's
<controls:RadNumericUpDown x:Name="XTextBox" Value="{Binding GraphicalItem.Rect.X}" UpdateValueEvent="PropertyChanged" Minimum="{Binding GraphicalItem.Rect.MinX}" Maximum="{Binding GraphicalItem.Rect.MaxX}" LargeChange="{Binding LargeCoordinateChange}" SmallChange="{Binding SmallCoordinateChange}" BorderBrush="#FFCBCBCB" Margin="3,2,0,2" HorizontalAlignment="Right" BorderThickness="1" Background="{x:Null}" Height="20" MinWidth="40" Padding="1,1,2,1"/>private RadDiagram CreateDiagram(Color backgroundColor, bool isEditingEnabled){ var diagram = new RadDiagram { IsBackgroundSurfaceVisible = false, Background = new SolidColorBrush(backgroundColor), IsPanEnabled = false, IsZoomEnabled = false, AllowCopy = false, AllowCut = false, AllowDelete = false, AllowDrop = false, ActiveTool = MouseTool.PointerTool, AllowPaste = false, IsDraggingEnabled = isEditingEnabled, IsResizingEnabled = isEditingEnabled, IsRotationEnabled = false, IsConnectorsManipulationEnabled = isEditingEnabled, IsManipulationAdornerVisible = isEditingEnabled, IsManipulationEnabled = isEditingEnabled, SelectionMode = isEditingEnabled ? SelectionMode.Single : SelectionMode.None, IsSnapToGridEnabled = false, IsSnapToItemsEnabled = false, }; diagram.Clear(); DiagramAnimations.SetIsZoomAnimationEnabled(diagram, false); ScrollViewer.SetHorizontalScrollBarVisibility(diagram, ScrollBarVisibility.Hidden); ScrollViewer.SetVerticalScrollBarVisibility(diagram, ScrollBarVisibility.Hidden); return diagram;}