B
Btb4198
Guest
I am making a wpf custom control in Winforms. I am using an element host to embedded the wpf control in to my Winforms.
I have a few different ellipses in my wpf custom control and they all have a mouse down event handler, and in run time went i click on a ellipses, I can change their color , but my question is how do I seen that information to my winform application from my wpf?
I tried this :
private void elementHost1_ChildChanged(object sender, System.Windows.Forms.Integration.ChildChangedEventArgs e)
{
int stop =0;
}
private void Ellipse_MouseDown(object sender, MouseButtonEventArgs e)
{
Ellipse EP = sender as Ellipse;
string tempS = EP.Name;
EP.Fill = Brushes.Green;
int you = 0;
}
}
The ellipse will change color, but the elementHost1_ChildChanged event is not being called.
Continue reading...
I have a few different ellipses in my wpf custom control and they all have a mouse down event handler, and in run time went i click on a ellipses, I can change their color , but my question is how do I seen that information to my winform application from my wpf?
I tried this :
private void elementHost1_ChildChanged(object sender, System.Windows.Forms.Integration.ChildChangedEventArgs e)
{
int stop =0;
}
private void Ellipse_MouseDown(object sender, MouseButtonEventArgs e)
{
Ellipse EP = sender as Ellipse;
string tempS = EP.Name;
EP.Fill = Brushes.Green;
int you = 0;
}
}
The ellipse will change color, but the elementHost1_ChildChanged event is not being called.
Continue reading...