コード例 #1
0
        /// <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;
        }
コード例 #2
0
 public static GestureHelper Create(UIElement target)
 {
     return(GestureHelper.Create(target, true));
 }