ManipulationStartingEventArgs.ManipulationContainer 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置所有操作事件和计算都相对于的容器。
public:
property System::Windows::IInputElement ^ ManipulationContainer { System::Windows::IInputElement ^ get(); void set(System::Windows::IInputElement ^ value); };
public System.Windows.IInputElement ManipulationContainer { get; set; }
member this.ManipulationContainer : System.Windows.IInputElement with get, set
Public Property ManipulationContainer As IInputElement
属性值
所有操作事件和计算都相对于的容器。 默认值为发生事件的元素。
注解
可以通过设置 ManipulationContainer 属性来指定位置应相对于另一个元素。 例如,你可以使操作位置相对于接收操作事件的元素的父级。 ManipulationStarting事件处理程序是唯一可以设置的位置ManipulationContainer。
有关操作的详细信息,请参阅 输入概述。 有关响应操作的应用程序的示例,请参阅 演练:创建第一个 Touch 应用程序。