Unfortunately, what you want to do is not possible in XAML (from MSDN):
Your custom class must not be a nested class. Nested classes and the “dot” in their general CLR usage syntax interfere with other WPF and/or XAML features such as attached properties.