J
Jules Winfield
I'm designing a WPF user control. Within the C# portion of the class is a
private conversion class:
private class MyConverter:IValueConverter{
....
}
Within the XAML portion of the class I'd like to create an instance of this
class:
<UserControl.Resources>
<ResourceDictionary>
....
<aia:MyConverter x:Key="Cvt"/>
</ResourceDictionary>
</UserControl.Resources>
(The namespace "aia", referenced above, is properly defined in myXAML class
definition)
The problem is that somehow my declaration syntax is wrong. I can't seem to
declare an instance of my private MyConverter class in XAML. If I move
MyConverter out of the user control and make it it's own top-level class in
the "aia" namespace, everything compiles properly. So how do I declare an
instance of a private class within XAML?
Jules
private conversion class:
private class MyConverter:IValueConverter{
....
}
Within the XAML portion of the class I'd like to create an instance of this
class:
<UserControl.Resources>
<ResourceDictionary>
....
<aia:MyConverter x:Key="Cvt"/>
</ResourceDictionary>
</UserControl.Resources>
(The namespace "aia", referenced above, is properly defined in myXAML class
definition)
The problem is that somehow my declaration syntax is wrong. I can't seem to
declare an instance of my private MyConverter class in XAML. If I move
MyConverter out of the user control and make it it's own top-level class in
the "aia" namespace, everything compiles properly. So how do I declare an
instance of a private class within XAML?
Jules