csharp System.Windows.Input.ManipulationStartingEventArgs.Pivot类(方法)实例源码

下面列出了csharp System.Windows.Input.ManipulationStartingEventArgs.Pivot 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Windows.Inpu   
void Window_ManipulationStarting(object sender, ManipulationStartingEventArgs e)
{
    // Set the ManipulationPivot so that the element rotates as it is
    // moved with one finger.
    FrameworkElement element = e.OriginalSource as FrameworkElement;
    ManipulationPivot pivot = new ManipulationPivot();
    pivot.Center = new Point(element.ActualWidth / 2, element.ActualHeight / 2);
    pivot.Radius = 20;
    e.Pivot = pivot;

    e.ManipulationContainer = this;
    e.Handled = true;
}


问题


面经


文章

微信
公众号

扫码关注公众号