/// <summary> /// Initializes a new instance of the StartView class. /// </summary> public StartView() { DefaultStyleKey = typeof(StartView); GestureHelper gestureHelper = GestureHelper.Create(this, true); gestureHelper.GestureStart += (sender, args) => GestureStart(); gestureHelper.HorizontalDrag += (sender, args) => HorizontalDrag(args); gestureHelper.Flick += (sender, args) => Flick(args); gestureHelper.GestureEnd += (sender, args) => GestureEnd(); SizeChanged += OnSizeChanged; Loaded += OnLoaded; Unloaded += OnUnloaded; _isDesignTime = DesignerProperties.IsInDesignTool; }
public static GestureHelper Create(UIElement target) { return(GestureHelper.Create(target, true)); }