C#C
C#3y ago
Shinyshark

❔ Overwriting a WPF ListView Style.

I am trying to overwrite a WPF ListView Style to add a button into it at the top. Normally, I would use a UserControl and build a component but there are some issues with hosting items inside of the ListView that make use of x:Name. When I make a new style based on the ListView, a lot of internal items are overwritten such as the GridViewHeaderRowPresenter.

How would I go about this issue? Is it a good idea to add this button into a Style or would I have to make a UserControl for it?
Was this page helpful?