This is a migrated thread and some comments may be shown as answers.

XamlParse Exception >> themes/office/black/GridViewToggleButton.xaml

18 Answers 336 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Markus Giera
Top achievements
Rank 1
Markus Giera asked on 27 Jul 2010, 04:52 PM
Dear Telerik Users

Improving our Plugin we "trying" to make use of the wpf Treegridview Object.
Problem is, that VS 2008 during  InitializeComponent();   always comes up with the following "XamlParse Exception"
****
'/Telerik.Windows.Controls.GridView;component/themes/office/black/GridViewToggleButton.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Object reference not set to an instance of an object.  Error at object 'System.Windows.ResourceDictionary' in markup file 'Telerik.Windows.Controls.GridView;component/Themes/GenericOfficeBlack.xaml'.
****
The Gridview (Treegridview) is placed inside a normal grid in xaml:

<telerik:RadTreeListView Margin="20,12,12,46" Name="radTreeListView1" telerikControls:Theming.Theme="Windows7" />
The containing WPF - Window is launched like this:

 

 

Window1 gridViewWPFWindow = new Window1();
var WPF = new System.Windows.Interop.WindowInteropHelper(gridViewWPFWindow);
WPF.Owner = Application.DocumentManager.MdiActiveDocument.Window.Handle;
gridViewWPFWindow.Show();

It's a pity as the WPF RadTreegridview would be the perfect fit for an application we've been developing until recently in Windows Forms.
Thank you for your help.

Markus



18 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 30 Jul 2010, 09:46 AM
Hello Markus,

I have tried to replicate your issue locally but everything is working fine for me. Can you please send us your sample application that illustrates your issue exactly? This way we will able to step thought your code and provide you with a solution to your problem.

Greetings,
Stefan Dobrev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Markus Giera
Top achievements
Rank 1
answered on 30 Jul 2010, 09:22 PM
Hello Stefan
Thank you for your reply.
I've almost expected your answer, as we have no problems using the Telerik tools in this case in a standalone scenario. As we try to start the window (the same wpf window) from within the application the plugin is designed for, the exception is thrown. The plugin is made for a CAD Software program and the posted code is excecuted from within the CAD Software.
Is this a problem of the api implementation or of the Interop handler? As far as I see, there is nothing special in my code except for the WPF Window being owned by the CAD.MDI.

Greets

Markus
0
Vlad
Telerik team
answered on 05 Aug 2010, 06:42 AM
Hello Markus,

 Unfortunately we are not sure what can cause such issues. Do you have problems with other components (standard WPF or Telerik) or just with RadTreeListView?

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Moritz
Top achievements
Rank 1
answered on 08 Oct 2010, 11:27 AM
Dear Telerik Team/Users,

I'm developing a plugin with windows-forms-dialogs and now i'm looking forward to use more functional listviews, so that i'm able to display hierarchy structures (p.e. RadTreeListView). But i have got exactly the same problem described by Markus Giera.

  • System: Windows XP, VS 2008, 3.5 .NET
  • I have no problems using the Telerik tools in a prototype.
  • The plugin is made for SolidWorks (CAD Software program).
  • XamlParse Exception during InitializeComponent(); with the same message

I don't have problems with all Telerik components, p.e. on the one hand the RadButton- and the RadTreeView-component are working fine but on the other hand the RadGridView- and RadTreeListView-component always comes up with the XamlParse Exception.

Best regards
Moritz
0
Vlad
Telerik team
answered on 08 Oct 2010, 11:49 AM
Hello,

 Can you post more info about the grid/treelist version?

Sincerely yours,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Moritz
Top achievements
Rank 1
answered on 08 Oct 2010, 12:32 PM
Hello Vlad,

first i tested the "RadControls_for_WPF35_2010_2_0812" package and today i installed the newest version "RadControls_for_WPF35_2010_2_0924".

Greetings
Moritz
0
Vlad
Telerik team
answered on 08 Oct 2010, 12:39 PM
Hi,

 Can you send us this project (via support ticket) to test it locally?

Best wishes,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Moritz
Top achievements
Rank 1
answered on 08 Oct 2010, 01:39 PM
Hello Vlad,

i am not allowed to send you the project, but I would appreciate a NetViewer 1on1 Session.
Is such a session possible with you?

Greetings
Moritz
0
Vlad
Telerik team
answered on 08 Oct 2010, 01:52 PM
Hello,

 Unfortunately we will unable do much if we don't have a project where we can check (and debug it) locally. We do not need your original project - just a small application demonstrating the exception in your scenario. 

Greetings,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Moritz
Top achievements
Rank 1
answered on 08 Oct 2010, 02:16 PM
Hello Vlad,

a small application demonstrating the exception would be nice, but it is not that easy, because I don't have a project with an executable file. I just need some windows-forms-dialogs (with wpf user controls) in a CAD software program. To run our project it would be necessary to isntall SolidWorks (CAD program). Our program runs as an addIn inside SolidWorks-process. Costs of a SolidWorks licence about 10000 dollar.

I would really appreciate a NetViewer session.

Regards

Moritz


0
Vlad
Telerik team
answered on 08 Oct 2010, 02:49 PM
Hello,

 Can you send us at least your Winforms/XAML declaration?

Greetings,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vlad
Telerik team
answered on 08 Oct 2010, 02:51 PM
Hello,

 Just another quick question. Can you check if you have all needed references. For the grid you will need Controls, GridView, Data and Input assemblies. 

Greetings,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Moritz
Top achievements
Rank 1
answered on 08 Oct 2010, 03:22 PM
Hello Vlan,

all needed references are included.

Here is a part of the Winforms/XAML declaration:
WPFRadGridView.xaml
<UserControl x:Class="XYZ.Dialogs.WPFUserControls.WPFRadGridView"
    Height="300" Width="300" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Grid>
        <telerik:RadGridView Margin="0,0,0,0" Name="radGridView" />
    </Grid>
</UserControl>


FormXYZ.cs
public FormXYZ()
 {
     InitializeComponent();
 
     ...  /* e.a. Windows-Forms declarations */
 
     CMI.Dialogs.WPFUserControls.WPFRadGridView
        wpfRadTreeListViewTest = new CMI.Dialogs.WPFUserControls.WPFRadGridView();
 }


Greetings
Moritz
0
Vlad
Telerik team
answered on 08 Oct 2010, 03:55 PM
Hello,

 I've just tried this (RadGridView in UserControl hosted in Winforms application) however everything worked fine on my end. You can find the application attached. 

Greetings,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Moritz
Top achievements
Rank 1
answered on 11 Oct 2010, 07:31 AM
Hello Vlad,

I have no problems using the Telerik tools in a windows-forms-application, but I don't need one. I just need a windows-forms-dialog, so i don't have an executable data. Probably you can't simulate the problem, because of the Solid Works license, but I am able to show you the problem with NetViewer.

Greetings
Moritz
0
Moritz
Top achievements
Rank 1
answered on 11 Oct 2010, 02:05 PM
Hey Vlad,

furthermore i installed Microsoft Visual Studio c# 2010 Express and tested again.
I still got the same exception but it comes up a bit more detailed (unfortunately without filename).

  • Line number '9' and line position '76'. Threw new Exception during initialization of 'Telerik.Windows.Controls.RadGridView' (XamlObjectWriterException).

Greetings
Moritz
0
Moritz
Top achievements
Rank 1
answered on 12 Oct 2010, 11:32 AM
Hey everybody,

i solved the problem by moving all needed telerik dll-files into the solidworks progam folder (p.e. C:\Programme\SolidWorks2008).
That's it.

Best Regards
Moritz
0
Iftakhar
Top achievements
Rank 1
answered on 20 Feb 2011, 11:50 AM
Hi,

I am using RadControls_for_WPF35_2010_3_1314_Trial
Writing sample app with RadGrid for vb interopforms.
1. Created sample wpf user control with RadGrid
2. Created sample winforms lib for Interopforms and hosted wpf control in it
3. Created vb 6 sample and trying to invoke the .net interop form on button click from vb6
getting the error in wpf usercontrol InitializeComponent()
(the sample runs fine with .net winform test application)

Based on this sample we will decide whether to buy telerik for wpf or not

Any help will be greatly appreciated.
Tags
GridView
Asked by
Markus Giera
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Markus Giera
Top achievements
Rank 1
Vlad
Telerik team
Moritz
Top achievements
Rank 1
Iftakhar
Top achievements
Rank 1
Share this question
or