Hi All,
While i try to mouse over on the "Label" element , Mouse.DirectlyOver it returns the "TextBlock" as a result. Why it happen like this?
private void Dynamic_Design_PreviewMouseMove(object sender, MouseEventArgs e)
{
if(e.LeftButton == MouseButtonState.Pressed)
{
var uiElement = Mouse.DirectlyOver as UIElement;
}
}
Any idea on this..?
Thanks,
Sowndaiyan
While i try to mouse over on the "Label" element , Mouse.DirectlyOver it returns the "TextBlock" as a result. Why it happen like this?
private void Dynamic_Design_PreviewMouseMove(object sender, MouseEventArgs e)
{
if(e.LeftButton == MouseButtonState.Pressed)
{
var uiElement = Mouse.DirectlyOver as UIElement;
}
}
Any idea on this..?
Thanks,
Sowndaiyan