protected override void OnApplyTemplate() { base.OnApplyTemplate(); GetTemplateParts(); m_dialogMinHeight = ResourceResolver.ResolveTopLevelResourceDouble("ContentDialogMinHeight"); // For dialogs that were shown when not in the visual tree, since we couldn't prepare // their content during the ShowAsync() call, do it now that it's loaded. if (m_placementMode == PlacementMode.EntireControlInPopup) { PrepareContent(); } // UNO TODO //IFC_RETURN(m_epLayoutRootGotFocusHandler.AttachEventHandler( //m_tpLayoutRootPart.AsOrNull<IUIElement>().Get(), //[this](IInspectable *, xaml::IRoutedEventArgs *) //{ // // Update which command button has the default button visualization. // return UpdateVisualState(); //})); }