Questions tagged [contentdialog]
20 questions
2
votes
1 answer
How to make UWP ContentDialog truly modal
I have a navigation view pattern in UWP app with a "navigation root" page hosting a frame for child pages. If I call a ContentDialog from a child page, I can still access objects in the master page if I use keyboard shortcuts. This can easily result…

under
- 2,519
- 1
- 21
- 40
1
vote
1 answer
MVVM ContentDialog
I'm trying to write some ContentDialog with ViewModel.
I'm not using default buttons. I'm using my customized set of buttons. (Including close button placed on top right corner)
So I need to close this dialog somehow in the ViewModel but I can't do…

RezaNoei
- 1,266
- 1
- 8
- 24
1
vote
1 answer
C# WinUI 3 Bind ContentDialog
I have a ContentDialog triggered when a user clicks on a row in a DataGrid. The primary goal of the ContentDialog is to allow the user to enter and save a comment via a textbox control named 'Cmnt_Apprvl_Mgmt' in the ContentDialog. The logic is…

LennyL
- 225
- 3
- 9
1
vote
1 answer
C# WinUI 3 - How do I reference a textbox in a ContentDialog
I have a ContentDialog triggered when a user clicks on a row in a DataGrid. The primary goal of the ContentDialog is to allow the user to enter and save a comment via a textbox control in the ContentDialog. When the PrimaryButton is clicked how can…

LennyL
- 225
- 3
- 9
1
vote
1 answer
UWP ContentDialog set Content dimension to the app window size
I have a ContentDialog with a WebView inside a Grid:

alisheikh
- 89
- 2
- 10
1
vote
2 answers
Why does the async/await code to show my ContentDialog fail at runtime?
I want to instantiate a ContentDialog in my UWP app, which is defined in my XAML as follows:
. . .

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
1 answer
Modal dialog in WinUI3 application
I'm new to WinUI3. I'm trying to create a modal dialog using ContentDialog class, but the async nature confuses me. Suppose, there is an WinUI3 application like shown below. I have two buttons which display the same ContentDialog one in modal the…

chopin
- 11
- 1
0
votes
1 answer
ContentDialog with time-consuming task does not allow me to use the App until it is finished
Is there a way to use the app while the task is still running?
With my current code, the app is unresponsive while the task executed from the ContentDialog does not finish.
private async void FooContentDialog(object sender, EventArgs e)
{
…

Sarcastic Bender
- 67
- 5
0
votes
1 answer
C# WinUI 3 Desktop Application Issue with ContentDialog and the XamlRoot
I am building a C# WinUI 3 desktop app running on Windows 10. I want to use a contentdialog to display error messages.
I am calling this method from multiple catch clauses:
private async void DisplayErrorDialog(string content)
{
ContentDialog…

LennyL
- 225
- 3
- 9
0
votes
1 answer
Can you return values from WINUI ContentDialog controls?
I am building a weather related application. It's C# using WINUI3. Everything was going swimmingly, until I hit this issue...
I have a XAML page as follows:

Jason Coulls
- 182
- 1
- 1
- 10
0
votes
1 answer
WinUI 3 - How to disable the background like ContentDialog do
I am building a program with WinUI 3 and would like to hide the controls behind a transparent panel, like ContentDialog do, while the content is loaded.
I tried to find the source code of the ContentDialog to get an inspiration but can't find it. …

sbeaudoin
- 158
- 2
- 11
0
votes
1 answer
How to blocked/Inactivate Uwp app title bar due to show ContentDialog?
I need to blocked/Inactivate whole Uwp app with title bar due to show ContentDialog. I have used the code from Microsoft XAML Controls Gallery App, Whereas Control-Gallery app properly blocked the whole application but my test app is not blocking…

yeasir007
- 2,110
- 2
- 28
- 43
0
votes
0 answers
WinRT/C++ TextBox doesn't accept any character input in ContentDialog
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 ContentDialog with a TextBox as its content. However, unfortunately the TextBox does not accept any character…

Donny Andrian
- 45
- 4
0
votes
1 answer
How to make content dialog background consistent?
I would like the background color of the dialog content and the background color behind the buttons to be the same:
How can I do this?
My xaml:

Felix
- 3,783
- 5
- 34
- 53
0
votes
1 answer
UWP set background from dark/light dictionary
var solcolor = (SolidColorBrush)Application.Current.Resources["PopUpsBackground"];
this.Background = new SolidColorBrush(solcolor.Color);
I set the Background of ContentDialogs programmatically but it gets the requested theme color from an…

Denis Derkach
- 5
- 3