New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GridViewRowPresenter adds Margin to ContentPresenter in code when creating cells #249

Open
deanchalk opened this Issue Jan 10, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@deanchalk
Copy link

deanchalk commented Jan 10, 2019

Bug has been in WPF since the beginning

Problem description:
When GridViewRowPresenter creates a cell in a ListView/GridView combination, it arbitrarily adds a Margin of 6,0,6,0 in code to the ContentPresenter. This means that you cannot style the GridView correctly unless you add a negative margin in your style to reverse this behaviour - which is what some of us have had to do for years. Would be great if this could be fixed

@deanchalk deanchalk changed the title GridViewRowPresenter add's Margin to ContentPresenter in code when creating cells GridViewRowPresenter adds Margin to ContentPresenter in code when creating cells Jan 10, 2019

@stevenbrix

This comment has been minimized.

Copy link
Member

stevenbrix commented Jan 15, 2019

Hi @deanchalk, are you suggesting that we remove this default margin, or provide a better way for you to control it without the workaround you currently have?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment