This project is read-only.

can't create or show a propertygrid

Mar 4, 2010 at 6:59 PM

Hello

I try to use your propertygrid and i use the following code:

<Controls:DockingItem x:Class="View.DockingWindows.PropertyView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Controls="clr-namespace:DW.Controls;assembly=DW.Controls" xmlns:WPG="clr-namespace:WPG;assembly=WPG" Title="{Binding Title}">
    <WPG:PropertyGrid/>
</Controls:DockingItem>


Vs compile the code, but if i open the window i get an exception:

Der Typ "WPG.PropertyGrid" kann nicht gefunden werden. Die während der Kompilierung verwendete Assembly unterscheidet sich möglicherweise von der beim Laden verwendeten Assembly, und der Typ fehlt.  Fehler in Objekt "View.DockingWindows.PropertyView" in Markupdatei "View;component/dockingwindows/propertyview.xaml", Zeile 5, Position 6.

I don't now what i have to do with this.

Thanks and sorry for my poor english.

chrische

Coordinator
Mar 4, 2010 at 8:10 PM

Is it possible that you send me your Project???

What Visual Studio Version are you using?? I use VS2010 with Framework 4.0!

Mar 5, 2010 at 2:53 PM

Hello

 

I use VS 2010, too. But my targetframework is 3.5 and i don't want to chnage this. is it possible to use yuor propertygrid with 3.5?

 

chrische

Coordinator
Mar 5, 2010 at 3:08 PM

yes, you need to change the framework of both assemblys in my solution and you need to  replaced all the  ="{StaticResource {ComponentResourceKey...  with ="{DynamicResource {ComponentResourceKey...

then it should work!

Mar 6, 2010 at 12:21 PM

Hello

I changed the Tegratframework to 3.5 replaced all StaticRescource... and compiled the DemoProject. i add a refernce to the generated dll to my project, but i get same exception in the same code as i show below.

 

chrische

Mar 6, 2010 at 2:01 PM

Hi  chrische:

I did the same thing and it worked.

http://wpg.codeplex.com/Thread/View.aspx?ThreadId=203888

Coordinator
Mar 6, 2010 at 5:17 PM

The error you write above is not an error in the wpg xaml files or is it???

Maybe something other is wrong??

Maybe you can send a bit of code via mail!