To overcome this, you have to also add a trigger for "IsSelected", to change your hard coded colour to the highlight colour.Īll this is shown in the example below. The problem then, is that you are messing with the "row highlight" panel that changes when you select a row or cell. Then you have to edit the normal and edit CellTemplates to set the background colour. You have to manually define your columns. There is a free-to-use lite edition that lets you. With ChromaCam’s easy-to-use interface, you can quickly remove your background, blur it, add streaming effects or drop in PowerPoint presentation slides as your background. To highlight a column, you cannot use AutoGenerate=true. ChromaCam is a simple but powerful virtual background desktop application for Windows and Macs. You can select and delete a row (an object from the collection), so there is built in support for rows. Unfortunately, Column Definitions (auto-generated or manual) are just cells within a DataGridRow. Please remember to mark the replies as answers if they help and unmark them if they provide no help. MSDN Community Support | Feedback to us Microsoft DataGrid could not complete the alternate column background easily, DataGrid is an ItemsControl, we could not separate an item easily, so we have to set the column Background one by one, refer to below code snippet: Īs for the header, you could use HeaderStyle to set the background.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |