719 questions
0
votes
1
answer
345
views
Undefined namespace. 'CommunityToolkit.WinUI.Controls' that could not be found. WINUI3
i am new to WinUI3.
I am using this Windows Community Toolkit Gallery, which has great samples and want to implement a GridSplitter.
I see that I need
namespace
CommunityToolkit.WinUI.Controls
NuGet ...
1
vote
1
answer
69
views
How to add converter in codebehind
How do you programatically in code behind use a converter on the display member path or use a itemtemplate with the converter?
var listView = new ListView
{
ItemsSource = ...
1
vote
1
answer
401
views
Visual Studio 2022 - XAML Designer not opening for WinUI project
It’s impossible to open any .xaml file in XAML designer - any time I try to open a XAML file with XAML Designer it's opening with text editor instead
What I tried:
make sure Tools > Options > ...
0
votes
1
answer
50
views
WinUI Checkbox for First Item in ListView Doesn't Reflect Bound Property Changes from Server Sync
Description:
I'm experiencing a strange behavior in my WinUI 3 application with a ListView displaying a collection of items. The CheckBox in each item template is bound to a bool property called ...
0
votes
1
answer
45
views
Only set selectedItem binding in a twoway scenario if one item is selected
In a datagrid context where there is a two way binding on the selected item, how do you prevent the g.cs code from updating the binding if multiple rows are selected?
<dataGridControl:DataGrid
...
2
votes
2
answers
990
views
Where are DataTable and DataColumn in WinUI 3?
I want to use DataGrid in WinUI 3, and I noticed that the WinUI3 gallery and the Windows Community Toolkit gallery have different DataGrid table controls.
I can’t find where the DataTable is located.
...
0
votes
1
answer
254
views
WinUI3 executable won't launch app when installed with setup project
I'm using a Windows Setup Project to make a .msi installer for my WinUI3 app. The app launches with the executable directly from the project output, but won't launch when installed with the msi ...
1
vote
3
answers
332
views
Template Studio application - Adding a Login Window to be called before the Main Window is displayed
I am building a WinUI 3 Application. I have used the Template Studio to Create a number of pages. Now I am trying to add a log in Window to be called before the main Window.
The Login Screen is of ...
0
votes
2
answers
110
views
´´´UWPLaunchActivatedEventArgs.Kind == ActivationKind.Protocol´´´ is never fulfilled
I want to launch a WinUI app via URIfrom the explorer and pass some parameters.
protected override void OnLaunched(LaunchActivatedEventArgs e) {
if (e.UWPLaunchActivatedEventArgs.Kind == ...
0
votes
2
answers
125
views
Remove Black Background from BitmapImage WinUI 3
First time app developer, I am trying to remove the black from the back of a scanned image. This image is sent by multiple different scanners and saved to the desktop as a PNG. I am trying to take ...
0
votes
0
answers
97
views
Custom Windows Registry ID for WinUI 3 Notifications
enter image description here
How can I get a custom ID/Name for my WinUI3 program with notifications? Each time I start the unpacked program through the debugger or the .exe itself from any location, ...
0
votes
1
answer
351
views
How to set the Flyout Width and Height in WinUI 3
I would like to create a Flyout with a width, for example 800, which is same as the TextBox. And then attach the flyout to the textbox. Since I cannot set the Width of Flyout directly (There is no ...
0
votes
2
answers
160
views
WinUI 3 NavigationService not navigating to ShellPage after successful login
I'm developing a WinUI 3 app using Template Studio with a Navigation Bar. The INavigationService has a NavigateTo method that I can use to navigate between custom pages like Login and SignUp. However, ...
0
votes
1
answer
54
views
Can the AutoSuggestBox's suggestion area be forced to only expand downwards?
With an AutoSuggestBox, its suggestion area seems to vary between expanding upwards or downwards from the control. Presumably this is a best estimate based on the space available to the control.
Is it ...
2
votes
2
answers
350
views
WinUI 3 Community Toolkit: Undefined namespace XAML
I am a newbie to WinUI 3 and I have a struggle using Community Toolkit SettingsCard. I can't import SettingsCard in xaml. Is there something wrong with my dotnet sdk version or something.
<?xml ...
0
votes
1
answer
179
views
WinUI 3 Custom Control Property Binding doesnt work
I created a Custom control that is supossed to be used as a button in an item View, however, the binding to change its text doesnt work.
CustomControls(Winui3 class library project)/CustomTableItem.cs
...
0
votes
1
answer
199
views
Uncatchable exception when populating a WinUI-3 ListView (0xc000027b)
When I populate a ListView (or ItemsView) with the ItemsSource being a List<ApplicationModel.Package> object, a crash will sometimes happen when loading the control.
The crash chance goes up by ...
0
votes
1
answer
344
views
When starting a WinUI3 app I get asked to install or update Microsoft.NETCore.App 8.0.0 but it is already installed
I get this error message when I try to start my WinUI 3 apps from Visual Studio:
But I already installed the newest .net v8.0.8. I also tried to install the specified v8.0.0 version but it did not ...
0
votes
1
answer
159
views
How to bind coordinates to the Canvas Panel. WinUI
I am developing a program Win UI and I have encountered a binding problem. I need to display the readings of objects on the screen. They are placed in an arbitrary position. The data is stored in the ...
0
votes
0
answers
198
views
Convert UWP To WinUI 3 - Missing EntryPoint When Attempting To Run Application
First I get error that I must Deploy the application. I have Deploy check box checked in Configuration Manager but have worked around this by choosing the Project in solution explorer, right click ...
0
votes
1
answer
81
views
Cannot see a list of control events in Visual Studio when using WinUI 3?
I’m currently working on a project using WinUI 3 in Visual Studio. In previous XAML-based frameworks like WPF, I could easily view a list of available events for a control (e.g., for a Button or a ...
2
votes
2
answers
661
views
How do I package a WinUI app as exe setup file or something that includes all dlls while installation?
I am facing while packaging a WinUI app. As by using the publish and package option directly from VS Studio creates the msix file but when I install that file in other computers, I realized that all ...
-1
votes
1
answer
53
views
Not able to show bind Value in ui
Not able to show combo box value in ui which i was get in api.
<controls:DataGridTemplateColumn MinWidth="132" Header="Status" Tag="Status">
<controls:...
0
votes
2
answers
193
views
Override the default behaviour of the NumberBox clear button WinUI 3
I want to override the default behavior of the WinUI 3 NumberBox clear button, the default one resets the value to "0" but in my use case it would be much better If I could bind a specific ...
0
votes
2
answers
111
views
How do I prevent a ToolTip from obscuring the MainWindow Title Bar?
In a WinUI 3 application, the MainWindow consists of a Grid containing an Image control which takes up the majority of the space. As part of the Image control, there is a tooltip with information ...