Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
84 views

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 ...
bondarukid's user avatar
0 votes
1 answer
576 views

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 &...
E. A. Bagby's user avatar
0 votes
1 answer
106 views

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 ...
Jim D's user avatar
  • 199
0 votes
1 answer
1k views

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 ...
Nuvolari's user avatar
  • 1,175
2 votes
1 answer
886 views

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 ...
Codingtime's user avatar
1 vote
1 answer
642 views

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 '...
LennyL's user avatar
  • 373
1 vote
1 answer
1k views

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 ...
chopin's user avatar
  • 21
0 votes
1 answer
3k views

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 ...
LennyL's user avatar
  • 373
0 votes
1 answer
652 views

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 ...
sbeaudoin's user avatar
  • 158
0 votes
0 answers
262 views

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, ...
Donny Andrian's user avatar
0 votes
1 answer
156 views

var solcolor = (SolidColorBrush)Application.Current.Resources["PopUpsBackground"]; this.Background = new SolidColorBrush(solcolor.Color); I set the Background of ContentDialogs ...
Denis Derkach's user avatar
2 votes
1 answer
905 views

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 ...
under's user avatar
  • 3,107
0 votes
2 answers
612 views

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(...
Rohini Tribhuwan's user avatar
0 votes
1 answer
292 views

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" ...
B. Clay Shannon-B. Crow Raven's user avatar
0 votes
2 answers
113 views

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="...
B. Clay Shannon-B. Crow Raven's user avatar