Hi, all.
I'm trying to declare a resource in a WPF UserControl, and I'd like the resource to be an instance of a private inner class. How do I do this?
XAML:
<UserControl ...>
<UserControl.Resources>
<local:MyConverter x:Key="MyConverter" />
</UserControl.Resources>
</UserControl>
Code Behind:
public partial class MyUserControl : UserControl
{
private class MyConverter : IValueConverter
{
// convertion code...
}
}