Interaction logic for KinectV2SettingsControl.xaml
Inheritance: System.Windows.Controls.UserControl, KinectBase.IKinectSettingsControl
        public KinectV2SkeletonControl(KinectV2SettingsControl thisParent)
        {
            parent = thisParent;

            InitializeComponent();

            SkelSortModeComboBox.SelectedIndex = 0;
            SkeletonSettingsDataGrid.ItemsSource = parent.kinectSettings.rawSkeletonSettings.individualSkeletons;
            SkeletonSettingsDataGrid.Items.Refresh();
        }
Exemplo n.º 2
0
        public KinectV2SkeletonControl(KinectV2SettingsControl thisParent)
        {
            parent = thisParent;

            InitializeComponent();

            SkelSortModeComboBox.SelectedIndex   = 0;
            SkeletonSettingsDataGrid.ItemsSource = parent.kinectSettings.rawSkeletonSettings.individualSkeletons;
            SkeletonSettingsDataGrid.Items.Refresh();
        }
Exemplo n.º 3
0
        //Constructor to setup the real KinectV2SettingsControl
        public SettingsControl(int kinectNumber, ref MasterSettings settings, IKinectCore kinect)
        {
            InitializeComponent();
            Grid.SetColumn(this, 2);
            this.Visibility = System.Windows.Visibility.Collapsed;

            Core coreWrapper = (Core)kinect;
            KinectCoreV2 kinectCore = (KinectCoreV2)coreWrapper;
            realControl = new KinectV2SettingsControl(kinectNumber, ref settings, kinectCore);
            realControl.Visibility = System.Windows.Visibility.Visible;
            this.MasterGrid.Children.Add((UserControl)realControl);
        }