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
1 answer

Switch DetailsTemplate in ListDetailsView between view and edit mode

I do have a ListDetailsView showing some data (lets say Company as a simple example here). Normally the details of a Company are shown as readonly. However, via the ListDetailsView.DetailsCommandBar it is possible to edit a Company (and also add a…
Jan Suchotzki
  • 1,406
  • 12
  • 24
1
vote
1 answer

UWP Hide Window Title Bar controls

I'm maintaining an app to show live content on big public screens. There are 2 windows, the MainWindow that allows the user to select what content to show in the big screen, and a new window that is captured and shown in the big screen by the…
Pakoco
  • 163
  • 6
1
vote
1 answer

UWP Animate Shadow in XAML

I am playing around with Scale animation in Windows Community Toolkit and trying to animate Shadow when object scales. first I thought that the Shadow would scale with the object and it didn't then I tried to scale the shadow as well but that…
Dude
  • 119
  • 1
  • 8
1
vote
1 answer

How to save data from textbox to datagrid in UWP

I'm trying to make a simple application in UWP for write in a textbox and save it (with a button) into a datagrid... i don't find how to make this and i really new (noob) using this platform. this the only i found about this
1
vote
1 answer

How to customize horizontal scroll thumb in UWP ScrollViewer

Suggestion required to customize the color and width horizontal scroll thumb in UWP ScrollViewer. I have tried to customize the scroll thumb as mentioned in the below…
1
vote
1 answer

I can use XAML Islands in WPF just if the .NET Core is the target platform?

I'd like to use XAML Islands in my WPF project, which targets .NET Framework. I tried to add to my project, but I couldn't make it work. This article says that the WPF apps are supported, but the documentation says that: Using XAML Islands to host…
Attila Szász
  • 707
  • 4
  • 22
1
vote
1 answer

Hide column in UWP DataGrid

I am using the DataGrid control from Windows Community Toolkit for UWP, but I can't find a solution to dynamically hide or show columns. Runtime error: Failed to assign to property…
xmashallax
  • 1,673
  • 1
  • 17
  • 34
1
vote
1 answer

DataGridBoundColumn does not contain a definition for BindingProperty

I am developing a UWP app. I have an…
user2353193
1
vote
1 answer

UWP GridView with dynamic names for columns

I'm trying to populate a GridView with some data, but am having no luck. Documentation tells me absolutely nothing about how the GridView maps data from the item source to the rows in the control. I've seen the textbox example where they create a…
Athena
  • 65
  • 6
1
vote
1 answer

How to update item in UWP ListView with AdvancedCollectionView source

I am using AdvanceCollectionView from Windows Community Toolkit as a source for a XAML ListView, to allow sorting and filtering. I am having problems with updating the ListView. To replicate the issue, I've created a simple Person class. In MainPage…
under
  • 2,519
  • 1
  • 21
  • 40
1
vote
2 answers

In UWP App, read command line arguments and pass it from App.xaml.cs file to the MainPage.xaml.cs

I can start my UWP app from windows command prompt or PowerShell. I've gotten some idea on how to read the arguments passed to the UWP app, as well. But, I have not been able to find any documentation on how to pass those arguments from App.xaml.cs…
nam
  • 21,967
  • 37
  • 158
  • 332
1
vote
1 answer

C# UWP - cannot connect to the serial port

I'm working on UWP app and need to read data from a serial port and display them on the graph. I'm getting 3 random exception messages : Message 1 : "The operation completed successfully" Message 2 : "An attempt was made to reference a token that…
1
vote
1 answer

Center column header in datagrid in UWP

I'm trying to center the Column header in DataGrid. To add DataGrid in UWP UI i'm using nuget package "Microsoft.Toolkit.Uwp.UI.Controls.DataGrid" as mentioned in microsoft documentation link enter link description here . I tried searching here but…
1
vote
2 answers

DataGrid XAML control can't be scrolled by touch

I'm developing a uwp app. The app has a DataGrid XAML control. My problem is that I can scroll it by mouse, but I can't scroll it by touch. Curiously, I can scroll it by two fingers touch. Please let me know how to fix the problem. Here is my…
1
vote
1 answer

How do I add an item in a WindowsXamlHost ListView?

I tried to add an item to a WindowsXamlHost whose InitialTypeName is set to Windows.UI.Xaml.Controls.ListView. I am trying to add an item to the WindowsXamlHost listview. Here is my code: List listFiles = new List(); OpenFileDialog…