private void CheckBoxBodyTrackerConfiguration_Checked(object sender, RoutedEventArgs e)
 {
     if (Config != null)
     {
         if (Config.Raw.BodyTrackerConfiguration != null)
         {
             return;//DataContextChanged may cause this method be invoked
         }
         Config.Raw.BodyTrackerConfiguration = new Microsoft.Psi.AzureKinect.AzureKinectBodyTrackerConfiguration();
         var control = new AzureKinectBodyTrackerConfigurationControl()
         {
             DataContext = new AzureKinectBodyTrackerConfiguration()
             {
                 Raw = Config.Raw.BodyTrackerConfiguration
             }
         };
         ContentControlBodyTrackerConfiguration.Children.Add(control);
     }
 }
 private void CheckBoxBodyTrackerConfiguration_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (Config != null)
     {
         if (Config.Raw.BodyTrackerConfiguration is null)
         {
             CheckBoxBodyTrackerConfiguration.IsChecked = false;
             ContentControlBodyTrackerConfiguration.Children.Clear();
         }
         else
         {
             CheckBoxBodyTrackerConfiguration.IsChecked = true;
             var control = new AzureKinectBodyTrackerConfigurationControl()
             {
                 DataContext = new AzureKinectBodyTrackerConfiguration()
                 {
                     Raw = Config.Raw.BodyTrackerConfiguration
                 }
             };
             ContentControlBodyTrackerConfiguration.Children.Add(control);
         }
     }
 }