0

The question is quite simple:

There is a namespace xmlns:local= "clr-namespace:Notify".

There is a Class "Notify". The class is located right in the solution

There is a XAML-code:

<ObjectDataProvider.MethodParameters>
    <x:Type Type="local:Notify"/>
</ObjectDataProvider.MethodParameters>

In this form everything works as it should be. I want to move the Notify Сlass to another class, such as the MainClass, so make Notify a subclass of MainClass. What do I need to change in the code to do this?

Thanks.

1 Answers1

0

xmlns:local= "clr-namespace:Notify" to xmlns:local= "clr-namespace:MainClass+Notify"

and

<ObjectDataProvider.MethodParameters>
    <x:Type Type="local:MainClass+Notify"/>
</ObjectDataProvider.MethodParameters>
Rans
  • 569
  • 7
  • 14