/// <summary> /// Called when page is loaded /// Initialize app assets such as skills /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void Page_Loaded(object sender, RoutedEventArgs e) { // Disable buttons while we initialize await UpdateMediaSourceButtonsAsync(false); // Initialize helper class used to render the skill results on screen m_bboxRenderer = new BoundingBoxRenderer(UIOverlayCanvas); m_lock.Wait(); { NotifyUser("Initializing skill..."); m_availableExecutionDevices = m_skillWrappers[0].ExecutionDevices; await InitializeObjectDetectorAsync(); await UpdateSkillUIAsync(); } m_lock.Release(); // Ready to begin, enable buttons NotifyUser("Skill initialized. Select a media source from the top to begin."); await UpdateMediaSourceButtonsAsync(true); }