We then set the ExtendsContentIntoTitleBar property to true, and call SetTitleBar to display the customTitleBarPanel StackPanel as our custom title bar.In the customButton_Click handler, we set the visibility of the customTitleBarPanel StackPanel to Visible.This->Title(L"Basic customization of title bar") ::SendMessage(hWnd, WM_SETICON, 0, (LPARAM)icon) Ensure the that custom title bar content is not displayed.ĬustomTitleBarPanel().Visibility(Visibility::Collapsed) Void MainWindow::basicButton_Click(IInspectable const&, RoutedEventArgs const&) Void basicButton_Click(Windows::Foundation::IInspectable const& sender, Microsoft::UI::Xaml::RoutedEventArgs const& args) (hwnd, "Basic customization of title bar") Ensure the custom title bar content is not displayed.ĬustomTitleBarPanel.Visibility = Visibility.Collapsed Private void basicButton_Click(object sender, RoutedEventArgs e)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |