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

Is there a way to easily customize the DataGrid column header?

The UWP Community Toolkit DataGrid reserves a bit of space in the column header for the sorting icon and it makes things look really strange. When you aren't using sorting (or even when a column isn't sortable), there's a 35px-wide space in the data…
brent.esh
  • 202
  • 2
  • 11
9
votes
3 answers

C# UWP Toolkit DropShadowPanel inner shadow

In C# UWP how to make inner shadow effect? Like this: I have created one grid with just a border, but shadow is populating the whole grid.
user3239349
  • 877
  • 1
  • 12
  • 33
8
votes
1 answer

WPF Desktop App, Windows 10 Notification Toast 2016 (UWP Community Toolkit)

I'm trying to display Windows 10 Toasts with my WPF C# Desktop application. Sadly the API and general support concerning Windows 10 notifications in non-UWP or Store apps seems pretty limited and chaotic. Lately the UWP Community Toolkit was…
7
votes
3 answers

How do I style the column header on a UWP CommunityToolkit DataGrid

I'm currently looking at the UWP CommunityToolkit DataGrid. I've been through the docs, but I'm not finding them clear on how to apply a ColumnHeaderStyle. I'm not sure what I should be targeting in the column header to set my style. I'm wishing…
Mark
  • 173
  • 2
  • 6
7
votes
1 answer

Reset resizing done by GridSplitter

I'm using GridSplitter from Microsoft.Toolkit.Uwp.UI.Controls. After two columns have been resized by the user using the grid splitter is there a way to reset that resizing and have the column widths of the grid go back to their normal widths before…
JT Smith
  • 361
  • 1
  • 2
  • 15
6
votes
1 answer

Handling observable object properties with CommunityToolkit.Mvvm

How do we handle properties that are objects themselves using CommunityToolkit.Mvvm? I understand that I can simply use [ObservableProperty] attribute with simple properties e.g. data type of string, int, etc. How do we handle properties that are…
Sam
  • 26,817
  • 58
  • 206
  • 383
6
votes
4 answers

How to make my constructor async in UWP MVVM model? (MVVM Lighttoolkit)

I have a UWP project want to reads StorageFolder VideosLibrary and show a list of mp4 files at Views with thumbnail. With MVVM ligth toolkit I have setup this 4 flies with xaml. The Xaml is using UWP community toolkit wrap…
luvwinnie
  • 499
  • 1
  • 6
  • 23
4
votes
1 answer

UWP Composition - Grid with rounded corners DropShadow

I have a UWP app, which I should start by pointing out that it uses very little XAML. The views are built from JSON object recieved from an API. This means that the vast majority of everything is done in C#, and therefore adds a little complexity…
David Hamilton
  • 387
  • 3
  • 18
4
votes
0 answers

Can't override system brightness in UWP app

I tried to override system brightness from my UWP app. But When I tried to get BrightnessOverride instance, the code breaks at the below line. var bo = BrightnessOverride.GetDefaultForSystem(); It throws a generic exception…
4
votes
3 answers

Scroll to new item in ListView for UWP

I'm creating a chat application with a ListView that contains the messages. When a new message is sent/received, the ListView should scroll to the new message. I'm using MVVM, so the ListView looks like
SuperJMN
  • 13,110
  • 16
  • 86
  • 185
4
votes
1 answer

Why is app icon missing for toast notifications in action center on desktop?

I'm developing an app that uses toast notifications to notify the user. These notifications are raised when the app is running in the background and go to the notification center. All is well, but on desktop the app icon is missing for the…
3
votes
0 answers

Toolkit MVVM AsyncRelayCommand.IsRunning PropertyChanged

I would like to have a single "IsLoading" ViewModel property exposed to my View. I would like this property depend on two other properties: AsyncRelayCommand(Loading1).IsRunning and AsyncRelayCommand(Loading2).IsRunning What would be the best way to…
3
votes
1 answer

Intercepting property changes with CommunityToolKit.Mvvm amd Xamarin Forms

I've been moving code from mvvmlight to the CommunityToolkit.Mvvm framework with my Xamarin Forms project and have hit a snag. In mvvmlight, I would have a property like this bool loginOK; public bool LoginOK { get => loginOK; set =>…
Nodoid
  • 1,449
  • 3
  • 24
  • 42
3
votes
0 answers

Microsoft.Toolkit.Forms.UI.Controls.WebView: Howto Set Cookies

How to set cookies in the MS-Edge based Microsoft.Toolkit.Forms.UI.Controls.WebView? I need to send an autentication token cookie to the website I'm navigating to. What I've tried: Passing a cookie header to the Navigate method: The header won't be…
exaiwitmx
  • 99
  • 8
3
votes
2 answers

Is it possible to make WebView control to read local html files?

I'm making an application with WebView control. And I want it to read local html file. But I can't find the right way to make it possible. At first, I simply tried to use Navigate method and provide the file path in the "file:///~" format string as…
1
2 3
23 24