2
Answers

[WPF]Accessing a public method

Hi

I am working on a WPF application.

In the object Application I create a new object windows :

Code :

toolkit = new Toolkit(this);

Toolkit is defined as public partial class Toolkit : Window
And if i try :


Code :

toolkit.AnyMethod();

The compilator say to me the method is undefined. I can't understand.

I hope you will help me


Answers (2)
0
Guillaume Leclerc

Guillaume Leclerc

NA 3 1.5k 13y
In Fact There was anything else than static method.
I casted my windows as a normal windows not as a Toolkit. I was stupid sorry.

The problem is solved
0
Vulpes

Vulpes

NA 163.6k 1.5m 13y
When you type toolkit followed by a dot, does anything show up in intellisense?