Questions tagged [windows-community-toolkit]

The UWP Community Toolkit is a collection of helper functions, custom controls, and app services. It simplifies developer tasks building [tag:uwp] apps for Windows 10.

The Windows Community Toolkit is a collection of helper functions, custom controls, and app services. It simplifies developer tasks building apps for Windows 10. The controls and app services in the toolkit are an addition to what's available in the current Windows 10 SDK (and will be marked deprecated if/when they're added to the official SDK).

The available toolkit NuGet packages are listed on the project's GitHub page. There's also a UWP Community Toolkit demo app in the Windows Store showing how to use the controls and services, including copy-paste code snippets.

356 questions
1
vote
2 answers

Cancelling AsyncRelayCommand

This is WPF (.NET Framework 4.8). I need to supply two
dotNET
  • 33,414
  • 24
  • 162
  • 251
1
vote
2 answers

How to Populate a User Control with a Reusable User Control

I asked this question (How to Toggle Visibility Between a Button and a Stack Panel Containing Two Buttons) last week, and the answer was perfect and exactly what I was looking for. I realized though that I'm going to have 3 User Controls all with…
Harlan
  • 133
  • 1
  • 3
  • 15
1
vote
1 answer

How to Toggle Visibility Between a Button and a Stack Panel Containing Two Buttons

I am having difficulty figuring out how to toggle the visibility between three buttons. Here is the scenario: I have 3 buttons on a user control, an Edit button, an OK button, and a Cancel button. The Ok and Cancel buttons are grouped together in a…
Harlan
  • 133
  • 1
  • 3
  • 15
1
vote
1 answer

How to close the MauiCommunityToolkit Popup from Viewmodel

I want close a CommunityToolkit Popup in my Viewmodel. I tried using a WeakReferenceMessenger to receive a message like this: public mypopup() { InitializeComponent(); WeakReferenceMessenger.Default.Register
1
vote
1 answer

winui3 Treeview control: How to show tooltip on hover of items in treeview

Can someone please help me to know how I can add tooltip for Treeview control on hover? Treeview control
1
vote
1 answer

UWP Changing Datagrid and/or DataGridTextColumn Binding Programatically?

I have a datagrid that displays 18 properties of an object that has 149 properties. 6/18 are always displayed for every object. 12/18 change depending on which group of the objects I want to display. How can I change the binding of the columns I…
ItsToka
  • 31
  • 5
1
vote
1 answer

How can I use an ObservableObject as a Binding Target in code and XAML in WinUI 3?

How can I use an ObservableObject (from Community Toolkit) as a Binding Target in code and XAML in a WinUI 3 Desktop app? Here's a simple (partial) homepage example:
1
vote
1 answer

How to change size of a control through animation?

I want to change the size of a control through animation, which looks like 3D Touch animation on iOS(not just ScaleAnimation, I want to change the length and width of it separately), and then attach the animation to the control. I have tried to…
wxinbang
  • 11
  • 2
1
vote
1 answer

How to perform Row update in WinUI3 Datagrid

I am new to WinUI and using CommunityToolkit.WinUI.UI.Controls for my WinUI3 application. Where I am using Datagrid. One of the columns is generating like follows: I also…
1
vote
1 answer

How to get the GroupInfoCollection.Key in the DataGrid_OnLoadingRowGroup eventHandler

In the official MS documentation (https://learn.microsoft.com/de-de/windows/communitytoolkit/controls/datagrid_guidance/group_sort_filter) and also in the sample application…
Dominic Jonas
  • 4,717
  • 1
  • 34
  • 77
1
vote
1 answer

DispatcherHelper in Windows Community Toolkit

I am working on upgrading MVVMLight to Windows Community Toolkit and facing issues with DispatcherHelper. I am unable to find any examples which can show me how to upgrade the functionality relating to DispatcherHelper. Any pointers will be really…
Anil C
  • 1,045
  • 3
  • 16
  • 38
1
vote
2 answers

How to replace a registered service with a new one in MVVM?

Trying to migrate from good old MVVM Light to Windows Community Toolkit. How are we supposed to override a registered service, i.e. replace it with another implementation at runtime? Example I have got a UI layer which is basically a WPF application…
1
vote
1 answer

How to know when a DataGridRow is clicked?

I am using the Windows Community Toolkit WinUI DataGrid control. I would like to run some code when a row is clicked. How can I do that? I have tried: SelectionChanged event: Only works the first time the row is clicked, as after that the same row…
Felix
  • 3,783
  • 5
  • 34
  • 53
1
vote
2 answers

Type universe cannot resolve assembly: Uno.UI, Version=255.255.255.255

After upgrading Uno.UI to 3.11.6 I'm getting the following error when compiling my project: Type universe cannot resolve assembly: Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null A quick search on Discord comes up with multiple…
Konstantin S.
  • 1,307
  • 14
  • 19
1
vote
1 answer

WinUI DataGrid (from CommunityToolkit): How to get the currently selected cell?

in a WinUI 3 application, I am using the DataGrid from the CommunityToolkit.WinUI.UI.Controls namespace, see MSDN DataGrid class. I am looking for a way the get the instance of the currently selected or clicked DataGridCell. I need this because I…
Martin
  • 5,165
  • 1
  • 37
  • 50