本文整理匯總了C#中Windows.UI.Xaml.Input.ManipulationStartedRoutedEventArgs類的典型用法代碼示例。如果您正苦於以下問題:C# ManipulationStartedRoutedEventArgs類的具體用法?C# ManipulationStartedRoutedEventArgs怎麽用?C# ManipulationStartedRoutedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ManipulationStartedRoutedEventArgs類屬於Windows.UI.Xaml.Input命名空間,在下文中一共展示了ManipulationStartedRoutedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: HandlePlayerControlProgressBarBezzelManipulationStarted
private void HandlePlayerControlProgressBarBezzelManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
ProgressBarScrubView.Visibility = Visibility.Visible;
BindingExpression bindingExpression = PlayerControlProgressBarCompleted.GetBindingExpression(Rectangle.WidthProperty);
savedWidthBinding = bindingExpression.ParentBinding;
}
示例2: OnManipulationStarted
protected override void OnManipulationStarted(ManipulationStartedRoutedEventArgs e)
{
base.OnManipulationStarted(e);
if (Action != null)
{
Action.OnManipulationStarted(e);
}
}
示例3: ImageOnManipulationStarted
private void ImageOnManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
var image = (Image)sender;
image.Opacity = 0.4;
var transform = (CompositeTransform)image.RenderTransform;
startTranslation = new Point(transform.TranslateX, transform.TranslateY);
startRotation = transform.Rotation;
startScale = transform.ScaleX;
}
示例4: _contentGrid_ManipulationStarted
private void _contentGrid_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
if (e.PointerDeviceType != PointerDeviceType.Touch)
{
return;
}
if (manipulationStatus == ManipulationStatus.None)
{
if (PivotItem != null && FrozenColumns > 0)
{
var pt = e.Position;
pt = this.TransformToVisual(_columnHeaderPanel).TransformPoint(pt);
var fx = _columnHeaderPanel.Columns.GetFrozenSize();
// adjust for scroll position
var sp = _columnHeaderPanel.ScrollPosition;
if (pt.X < 0 || pt.X > fx) pt.X -= sp.X;
var column = _columnHeaderPanel.Columns.GetItemAt(pt.X);
if (FrozenColumns > column)
{
startingCrossSlideLeft = startingCrossSlideRight = true;
}
}
if (_header != null)
{
var pt = e.Position;
pt = this.TransformToVisual(_header).TransformPoint(pt);
var rect = new Rect(0, 0, _header.ActualWidth, _header.ActualHeight);
if (rect.Contains(pt))
{
if (PivotItem != null)
{
startingCrossSlideLeft = startingCrossSlideRight = true;
}
manipulationOnHeaderOrFooter = true;
}
}
if (_footer != null)
{
var pt = e.Position;
pt = this.TransformToVisual(_footer).TransformPoint(pt);
var rect = new Rect(0, 0, _footer.ActualWidth, _footer.ActualHeight);
if (rect.Contains(pt))
{
if (PivotItem != null)
{
startingCrossSlideLeft = startingCrossSlideRight = true;
}
manipulationOnHeaderOrFooter = true;
}
}
}
}
示例5: TouchArea_ManipulationStarted
void TouchArea_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
// reset the animation
// todo: wonder if there should be a method to remove a certain key frame?
// so I'd only need to remove the keyframe (_animation.InsertKeyFrame(1.0f, new Vector3());)
// rather than create a new animation instance
_x = 0.0f;
_animation = _compositor.CreateVector3KeyFrameAnimation();
_animation.InsertExpressionKeyFrame(0.0f, "touch.Offset");
_animation.SetReferenceParameter("touch", _touchAreaVisual);
}
示例6: OnDialerDragStart
protected void OnDialerDragStart(object sender, ManipulationStartedRoutedEventArgs e)
{
DialerTransform.CenterX = Width / 2;
DialerTransform.CenterY = Height / 2;
startAngle = DialerTransform.Angle;
if (DragBegin != null)
{
DragBegin(this, null);
}
}
示例7: MonitorManipulationStarted
void MonitorManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
_xOffsetStartValue = e.Position.X;
_yOffsetStartValue = e.Position.Y;
if (Movement != null)
Movement(this, new MovementMonitorEventArgs
{
X = _xOffsetStartValue,
Y = _yOffsetStartValue
});
e.Handled = true;
}
示例8: Grid_ManipulationStarted
private void Grid_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
}
示例9: StartSwipe
private void StartSwipe(object sender, ManipulationStartedRoutedEventArgs e)
{
startPosition = e.Position.X;
verticalStartPosition = e.Position.Y;
}
示例10: OnManipulationStarted
private void OnManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
manipulationDistance = 0.0;
isManipulationActive = true;
}
示例11: OnManipulationStarted
/// <summary>
/// Called before the ManipulationStarted event occurs.
/// </summary>
/// <param name="e">Event data for the event.</param>
/// <remarks>
/// This is used for touch scrolling.
/// </remarks>
protected override void OnManipulationStarted(ManipulationStartedRoutedEventArgs e)
{
this.scroller = 0d;
e.Handled = true;
base.OnManipulationStarted(e);
}
示例12: grid_ManipulationStarted
private void grid_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
_timer?.Stop();
}
示例13: DrawCanvas_ManipulationStarted
private void DrawCanvas_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
this.points = new List<Windows.Foundation.Point>();
this.anchorPoint = e.Position;
this.points.Add(
new Windows.Foundation.Point(
e.Position.X / DrawCanvas.ActualWidth,
e.Position.Y / DrawCanvas.ActualHeight));
}
示例14: clippingPanel_ManipulationStarted
private void clippingPanel_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
prePositon = e.Position;
if (prePositon.X <= 5 && prePositon.Y <= 5)
{
positon = POSITIONS.LEFTTOP;
}
else if (prePositon.X >= ((sender as RelativePanel).ActualWidth - 5) && prePositon.Y <= 5)
{
positon = POSITIONS.RIGHTTOP;
}
else if (prePositon.X <= 5 && prePositon.Y >= ((sender as RelativePanel).ActualHeight - 5))
{
positon = POSITIONS.LEFTBUTTOM;
}
else if (prePositon.X >= ((sender as RelativePanel).ActualWidth - 5) && prePositon.Y >= ((sender as RelativePanel).ActualHeight - 5))
{
positon = POSITIONS.RIGHTBUTTOM;
}
else
{
positon = POSITIONS.UNKNOWN;
}
}
示例15: OnManipulationStarted
private void OnManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
_isAllowedToDragVertically = true;
_isAllowedToDragHorizontally = true;
_isDragging = false;
}