question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ContentDialog control not working in desktop c++/winrt.

See original GitHub issue
void FlowPanel::myButton_Click(IInspectable const&, RoutedEventArgs const&)
{
	static ContentDialog dialog;

	dialog.Title(winrt::box_value(L"xxx") );
	dialog.Content(winrt::box_value(L"xxx") );

	dialog.ShowAsync();
}

report error: image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shellletcommented, Feb 25, 2021

Yeah! you are right ,thks, i will close this issue.

image

0reactions
Song-haJocommented, Dec 8, 2022

Hello! Can you let me know how you succeeded?

Read more comments on GitHub >

github_iconTop Results From Across the Web

WinRT/C++ TextBox doesn't accept any character input in ...
I have a desktop program with a WinRT/C++ library (and Microsoft.UI.Xaml.Controls 2.8 prerelease), which in the application will bring up a ...
Read more >
ContentDialog Class (Windows.UI.Xaml.Controls)
Represents a dialog box that can be customized to contain checkboxes, hyperlinks, buttons and any other XAML content.
Read more >
Windows 10 XAML Tips: MessageDialog and ContentDialog
In this blog post I will explain how you can show a message dialog and content dialog in your Windows 10 apps on...
Read more >
Extending Content/Message Dialog Class in UWP to Avoid ...
The Problem. Recently in my UWP project, we had this requirement of showing many dialogs at different point of events. We even had...
Read more >
A deep-dive into WinUI 3 in desktop apps - Windows Blog
The WinUI 3 framework is a set of WinRT components, and while WinRT has similar types and objects as those found in .NET,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found