public InputHandling() { InitializeComponent(); _dragHelper = new C1DragHelper(FramePanel, C1DragHelperMode.TranslateXY | C1DragHelperMode.Inertia, captureElementOnPointerPressed: false); _dragHelper.DragStarting += OnDragStarting; _dragHelper.DragStarted += OnDragStarted; _dragHelper.DragDelta += OnDragDelta; _dragHelper.DragCompleted += OnDragCompleted; _dragHelper.DragInertiaStarted += OnDragInertiaStarted; _zoomHelper = new C1ZoomHelper(FramePanel, ctrlRequired: false); _zoomHelper.ZoomStarted += OnZoomStarted; _zoomHelper.ZoomDelta += OnZoomDelta; _zoomHelper.ZoomCompleted += OnZoomCompleted; _tapHelper = new C1TapHelper(Rectangle); _tapHelper.Tapped += OnTapped; }
// suggestions in list are TextBlock elements void AddSuggestion(string suggestion) { TextBlock tb = new TextBlock(); C1TapHelper th = new C1TapHelper(tb); th.DoubleTapped += th_DoubleTapped; tb.Text = suggestion; _listSuggestions.Items.Add(tb); }