边界操纵事件不起作用 [英] Border manipulation events are not working

查看:119
本文介绍了边界操纵事件不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

操纵事件不会触发边界。

Manipulation events are not triggering for the borders.

< Grid Background =" {StaticResource ApplicationPageBackgroundThemeBrush} ">

<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

< Border Height =" 300"宽度= QUOT; 300" BorderBrush = QUOT;红色"了borderThickness = QUOT 1 QUOT; ManipulationMode = QUOT;所有" ManipulationStarting = QUOT; Border_ManipulationStarting_1" ManipulationDelta =" Border_ManipulationDelta_1"

<Border Height="300" Width="300" BorderBrush="Red" BorderThickness="1" ManipulationMode="All" ManipulationStarting="Border_ManipulationStarting_1" ManipulationDelta="Border_ManipulationDelta_1"/>

< / Grid>

</Grid>

推荐答案

你问题是因为BorderThickness属性被定义为

you problem is because the BorderThickness property is defined

BorderThickness="1" 

我尝试将其更改为 50:

BorderThickness="50" 


当我点击红色时,


and when i clicked in red color the

ManipulationStarting event

被提出!!

如果你按下并移动鼠标

ManipulationDelta event


被提出!!

请参阅:

is raised!!

See this:

边境类

  • ManipulationDelta Occurs when the input device changes position during a manipulation. (Inherited from UIElement)
  • ManipulationStarted Occurs when an input device begins a manipulation on the UIElement. (Inherited from UIElement)


这篇关于边界操纵事件不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆