Interaction logic for KinectV2SettingsControl.xaml
상속: 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();
        }
예제 #2
0
        public KinectV2SkeletonControl(KinectV2SettingsControl thisParent)
        {
            parent = thisParent;

            InitializeComponent();

            SkelSortModeComboBox.SelectedIndex   = 0;
            SkeletonSettingsDataGrid.ItemsSource = parent.kinectSettings.rawSkeletonSettings.individualSkeletons;
            SkeletonSettingsDataGrid.Items.Refresh();
        }
예제 #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);
        }