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
3
votes
2 answers

UWP: DataGrid, MenuFlyout right-click

Issue: I'm trying to create a menu on a DataGrid when right-clicking on a row. Goal: Is it possible to create a menu on a DataGrid when right-clicking on a row; I'm able to create one on a cell?
3
votes
1 answer

UWP XAML BladeView control - scroll newly-created BladeItem into view

I'm using the BladeView control from Microsoft's Windows Community Toolkit. When the application window is < 640px, the BladeMode property changes to Fullscreen. When a new blade is created in my code behind, I want the BladeView to scroll to the…
CXL
  • 1,094
  • 2
  • 15
  • 38
3
votes
1 answer

UWPCommunityToolkit DropShadowPanel keeps Grid from stretching

I want a grid to stretch across the screen while also having a shadow effect applied, for some reason I can't the grid to stretch when placed inside of a DropShadowPanel. Here is an example of the desired result, but without a shadow effect:
Caleb Powell
  • 150
  • 7
3
votes
1 answer

How to create a DropShadow for a SplitView.Pane like in Edge

I am currently trying to create a SplitView.Pane that looks kinda like the edge browser history/favourites pane. Therefore, I need a shadow at the (left) border of my SplitView.Pane. To create the shadow, I use the DropShadowPanel from the UWP…
Crix
  • 33
  • 5
3
votes
1 answer

UWP Community Toolkit with source code

"UWP Community Toolkit" is good tool. https://github.com/Microsoft/UWPCommunityToolkit/tree/master but If we installed it with NuGet, We can not access source code ( I thought ). Now, I only want to use "RadialGauge" only in this toolkit. and I…
Kazuhiko Nakayama
  • 801
  • 1
  • 8
  • 24
2
votes
2 answers

Can't use ObservableProperty from the CommunityToolkit.MVVM

I'm trying to use the new ObservableProperty attribute from the CommunityToolkit.MVVM. Any time I add it, I get 17 errors such as "The type MainViewModel already contains a definition for FileToPlay", or "Type MainViewModel already defines a member…
ClarkG
  • 81
  • 9
2
votes
2 answers

I need help regarding C# Community Toolkit Mvvm Source Generator

Hi I am trying to implement C# Community Toolkit Mvvm Source Generator in my WPF sample app I have the following code private ToDoTask _task; public TaskViewModel() { _task = new ToDoTask(); _tasks = new…
2
votes
1 answer

How to call a method after a property update

I have a DatePicker control bound to viewmodel.SelectedDate. Rather than using propfull I am using the CTK [ObservableProperty]. When I select a new date I want to call another function that gets a fresh dataset based on that new date. Is…
Ray Brennan
  • 373
  • 1
  • 6
  • 19
2
votes
2 answers

How to implement acrylic windows effect in WinUI3 in desktop application?

When creating WinUI 3 (Windows App SDK 1.0) project with VS 2022, I am unable to implement the acrylic background effect on Windows. I have done a lot of research and seen samples but unfortunately could not find reliable resources to implement…
2
votes
0 answers

Error "The type or namespace name 'xxx' does not exist in the namespace 'Microsoft.Toolkit.Uwp.UI.Controls'"

I have finally updated Microsoft.Toolkit from 7.0 to 7.1. The debug version of an app works fine. When I build the app's package with .Net Native, I get the following errors: 2> E:\...\My App\obj\x64\Release\XamlTypeInfo.g.cs(701,78,701,82): error…
Hong
  • 17,643
  • 21
  • 81
  • 142
2
votes
1 answer

WinUI 3 and Windows Community Toolkit - InitializeComponent error

Attempting to use Windows Controls Toolkit with WinUI 3 using Windows App SDK 1.0.0 experimental1. Im getting these two errors: Error CS1061 'App' does not contain a definition for 'InitializeComponent' Error NETSDK1022 Duplicate 'Page'…
tinmac
  • 2,357
  • 3
  • 25
  • 41
2
votes
3 answers

Xamarin.CommunityToolKit TouchEffect.Command not working in UWP

I can't succeed to make the xct:TouchEffect.Command working on UWP while: it is working for android in the same project ... there is no build error or warning I made a very small project to test it: Start a new Mobile APP project in VS2019 Add…
Belight
  • 205
  • 2
  • 14
2
votes
3 answers

Change column header background DataGrid UWP

I'm currently looking at the UWP DataGrid from Nuget Microsoft.Toolkit.Uwp.UI.Controls.DataGrid xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" and I want to change a single column header background color I've tryed change header style but…
JDo
  • 338
  • 1
  • 4
  • 18
2
votes
1 answer

How can I disable animation in ImageEx (windows-community-toolkit)

How can I disable animation in windows community toolkit's ImageEx? Ideally I would like to have the animation only when moving from placeholder image to real image. And if the real image is already there I would like to display it without delay and…
resp78
  • 1,414
  • 16
  • 37
1
2
3
23 24