29 questions
0
votes
1
answer
84
views
Modify WinUI3 Template Studio project
I create main project using WinUI3 and second project using UWP Template Studio. I want to migrate FirstRunDialog Service from UWP to WinUI3 but I have error like:
System.ArgumentException: 'The ...
0
votes
1
answer
576
views
WinUI 3: Change ContentDialog Size Programmatically While ContentDialog is Open
I've added two buttons, with only one visible at a time, to adjust the size of a ContentDialog. I want there to be two sizes: maximum, which would be sized to fill the parent window, or the default &...
0
votes
1
answer
106
views
ContentDialog - What to Use For SecondaryButtonCommand
I am creating a general purpose Exception message dialog, and want to have a "Copy Error" button to copy the error text to the clipboard. I cannot figure out what to use for ...
0
votes
1
answer
1k
views
Custom ContentDialog in WinUI 3
In my program I have a TabControl with multiple tabs and in each tab there could be a dialog that the user may open at any time. I use the dialogs to allow the user to enter stuff into a database. I ...
2
votes
1
answer
886
views
ContentDialog is raising error when we trying to show
It always shows " This element is already associated with a XamlRoot, it cannot be associated with a different one until it is removed from the previous XamlRoot "
Also its raising error ...
1
vote
1
answer
642
views
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 '...
1
vote
1
answer
1k
views
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 ...
0
votes
1
answer
3k
views
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 ...
0
votes
1
answer
652
views
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 ...
0
votes
0
answers
262
views
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, ...
0
votes
1
answer
156
views
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 ...
2
votes
1
answer
905
views
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 ...
0
votes
2
answers
612
views
How to hide(close) previously opened ContentDialog in uwp
Only single ContentDialog will be opened. While opening second dialog, how would i know that ContentDialog is already opened and how to call its hide()?
Tried with VisualTreeHelper.GetOpenPopups(...
0
votes
1
answer
292
views
How can I force the TextBox to display what is being entered into it?
In my UWP app, I am invoking a ContentDialog when a button (btnCre8NewMap) is clicked. Here is the pertinent XAML:
<Button x:Name="btnCre8NewMap" Content="Create New Map" ...
0
votes
2
answers
113
views
How can I add a ContentDialog to my XAML without getting an err msg about it?
Based on the answer to my question here, which points to this example, I added the following between my ending "Grid" and "Page" tags:
<ContentDialog x:Name="...