Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Popup issue

3 views
Skip to first unread message

kwafir

unread,
Jun 1, 2010, 9:03:01 AM6/1/10
to
hi,

i have some problems with a wpf popup.
I want to open the popup with MouseEnter on a Button. works fine until I
pressed the button was. then it


every time the button gets a mouseenter should be opened the popup, but
after click on the butten it doesnt work (if not click it works fine)


anyone can help me?

thx a lot


XAML-Code
<Grid>
<Button
x:Name="btn"
Content="Open popup"
MouseEnter="btn_MouseEnter"
/>
<Popup x:Name="pop">
<Grid Width="100" Height="100">
</Grid>

</Popup>
<Button
x:Name="button"
Content="do nothing"/>
</Grid>

c#-Code

private void btn_MouseEnter(object sender,
System.Windows.Input.MouseEventArgs e)
{
this.pop.IsOpen=true;
}

0 new messages