R
Rick
First of all, is there a group more specific to WPF?
I have a WPF form and I want to bind to a local member variable from the
xaml.
the code behind is like this:
Partial Public Class MyClass
Public Property MyProp as system.xml.XmlDocument
get...
set...
end property
Then in the xaml I want to bind to a grid like this:
<Grid.DataContext>
<XmlDataProvider Source="{MyProp}" XPath="profiles" />
</Grid.DataContext>
but I get a Intellisence notice that "type MyProp cannot be found..."
I have also tried {x:Static MyProp} which also does not work.
How do I refer to a public property in my own class?
Rick
I have a WPF form and I want to bind to a local member variable from the
xaml.
the code behind is like this:
Partial Public Class MyClass
Public Property MyProp as system.xml.XmlDocument
get...
set...
end property
Then in the xaml I want to bind to a grid like this:
<Grid.DataContext>
<XmlDataProvider Source="{MyProp}" XPath="profiles" />
</Grid.DataContext>
but I get a Intellisence notice that "type MyProp cannot be found..."
I have also tried {x:Static MyProp} which also does not work.
How do I refer to a public property in my own class?
Rick