Beispiel #1
0
        private void MqDataTools_Loaded(object sender, RoutedEventArgs e)
        {
            this.WindowState     = WindowState.Maximized;
            this.WindowStyle     = WindowStyle.SingleBorderWindow;
            CmbBox.ItemsSource   = System.Enum.GetValues(typeof(EDataType));
            CmbBox.SelectedIndex = 0;

            DpBeginDate.Text = DateTime.Today.ToLongDateString();
            DpEndDate.Text   = DateTime.Today.ToLongDateString();

            MainGrid.AddHandler(ComboBox.SelectionChangedEvent, new RoutedEventHandler(SelectedItemChangedHanler));
            LoadTickLayout();
        }
        //-------------------------------------------------------------------------------------------------------------------------------------
        // Swipes
        //-------------------------------------------------------------------------------------------------------------------------------------

        private void InitialiseSwipeModes()
        {
            ArticleStackPanel.ManipulationMode = ManipulationModes.TranslateX | ManipulationModes.TranslateInertia | ManipulationModes.System;
            ArticleStackPanel.AddHandler(ManipulationDeltaEvent, new ManipulationDeltaEventHandler(StackPanel_ManipulationDelta_1), true);
            ArticleStackPanel.AddHandler(ManipulationStartedEvent, new ManipulationStartedEventHandler(StackPanel_ManipulationStarted_1), true);
            ArticleStackPanel.AddHandler(ManipulationCompletedEvent, new ManipulationCompletedEventHandler(StackPanel_ManipulationCompleted_1), true);


            //ArticlesListViewStackPanel.ManipulationMode = ManipulationModes.TranslateX | ManipulationModes.TranslateInertia | ManipulationModes.System;
            //ArticlesListViewStackPanel.AddHandler(ManipulationDeltaEvent, new ManipulationDeltaEventHandler(StackPanel_ManipulationDelta), true);
            //ArticlesListViewStackPanel.AddHandler(ManipulationStartedEvent, new ManipulationStartedEventHandler(StackPanel_ManipulationStarted), true);

            MainGrid.ManipulationMode = ManipulationModes.TranslateX | ManipulationModes.TranslateInertia;// | ManipulationModes.System;
            MainGrid.AddHandler(ManipulationDeltaEvent, new ManipulationDeltaEventHandler(MainGrid_ManipulationDelta), true);
            MainGrid.AddHandler(ManipulationStartedEvent, new ManipulationStartedEventHandler(MainGrid_ManipulationStarted), true);
            //ArticleStackPanel.AddHandler(ManipulationCompletedEvent, new ManipulationCompletedEventHandler(StackPanel_ManipulationCompleted_1), true);
        }