Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

Similar windows (WPF) sharing the same methods

$
0
0
In winforms I could just use a base class (form) that has all the methods I would like the derived classes to use but since WPF prohibits 'visual' inheritance how can I do the same 'method' inheritance?

For instance Window1 and Window2 could call a method "Clear" which will clear all the controls in the Window.

EDIT:
Found this and will try it out later but suggestions are still very much welcome!

Viewing all articles
Browse latest Browse all 27333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>