Xavalon / XamlStyler

Visual Studio extension to help format your XAML source code
Apache License 2.0
1.19k stars 129 forks source link

DataGrid Header #476

Closed itsdeandavidson closed 6 months ago

itsdeandavidson commented 7 months ago

Describe the bug I've recently started using this extension and have come across a few instances whereby the style of a DataGrid's header doesn't show after saving/running the extension. I've narrowed this down to being an issue with something the extension is doing (as when I remove the changed formatting, etc it works) possibly due to the re-arranging of attributes?

To Reproduce Steps to reproduce the behavior:

  1. When formatting DataGrid's
  2. See error
mrlacey commented 6 months ago

@itsdeandavidson Can you share a repro?

itsdeandavidson commented 6 months ago

Hey,

Sadly not - working in a private repo.

We've identified that the issue is due to the re-organising of the DataGrid attributes.

mrlacey commented 6 months ago

We've identified that the issue is due to the re-organising of the DataGrid attributes.

Yeah, it's disappointing and not always obvious that the order of attributes can affect what gets rendered. Sometimes even causing exceptions. (I remember some Xamarin.Forms controls that would do this too as internal logic was dependent upon the order the properties were set in XAML.)

Can I suggest closing this as not a bug.