Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.Net Control Event Not Firing When Run In WPF Control

Status
Not open for further replies.

IjumpOverU

Technical User
Jul 31, 2003
43
US
I have a .Net control that I wrote and have refrenced it and placed it on a WPF window (in a WindowsFormHost control obviously). My control has a load event, that does some basic data retrieval to load a couple combo boxes. However when it loads in the WPF window the event does not fire and nothing happens except that I can see the layout of my .Net control.

I am very new to the WPF world so what am I missing?

Thanks!!
 
I don't have any experience with WPF, but I can say that you won't get anywhere without posting the code related to you're problem?

What little I know about WPF is that you bind your code to the UI elements using XAML. Similar to WebForms markup.

That would lead me to believe the problem is one of 2 issues.
1. your control is not wired to the WPF form, so the form is never calling YourObject.Load();
2. your control is silently failing.

Have you confirmed your control executes successfully outside of WPF?

Maybe someone with more WPF experience will be able to assist once more information is provided.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top