question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature request] Add x:Key to Datagrid, ListView style

See original GitHub issue

Is your feature request related to a problem? Please describe. I really like the default style of the Datagrid but I can’t make my own default Datagrid Style base on the Handy Control one. I have see that the same problem is present for the ListView style, and maybe some others.

Describe the solution you’d like It’s possible to add a x:Key = DataGridBaseStyle (using the default naming of the other BaseStyle) to the DataGrid Style and then make it default <Style TargetType="DataGrid" BaseOn="{StaticRessource DataGridBaseStyle}"/>

Describe alternatives you’ve considered A first alternative is to make all the changes on the <DataGrid/> Tag. But Currently I have litterally copy/paste the default style and made the Changes I wanted.

PS : Sorry for this approximative English ! ^^

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
NaBiancommented, Oct 12, 2021

if you want to custom datagrid style, you can refer to datagrid.small style, it’s easy.

0reactions
Yoplercommented, Oct 13, 2021

My bad, ListView doesn’t have a x:Key yet 😅😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

Making a WPF DataGrid look like a ListView
I have a project where there is an existing DataGrid. I have a DataSet properly bound to it and can populate columns with...
Read more >
Use Templates to Style a ListView That Uses GridView
This example shows how to use the DataTemplate and Style objects to specify the appearance of a ListView control that uses a GridView...
Read more >
Untitled
Sangaile watch online, Basic chicago style guide, Kuala namu medan kereta. ... Ahs nirvana come as you are, Lex autolease car list, Un...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found