边界操纵事件不起作用 [英] Border manipulation events are not working
问题描述
操纵事件不会触发边界。
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 在操作期间输入设备更改位置时发生。 (继承自
UIElement ) - 发生 ManipulationStarted 当输入设备开始对UIElement进行操作时。 (继承自
UIElement )
- 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屋!