Skip to content
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

DataGrid: DataGridDetails height can grow, but never shrink #4235

Open
4 of 19 tasks
carldebilly opened this issue Sep 9, 2021 · 1 comment
Open
4 of 19 tasks

DataGrid: DataGridDetails height can grow, but never shrink #4235

carldebilly opened this issue Sep 9, 2021 · 1 comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior DataGrid 🔠 Issues on DataGrid control help wanted Issues identified as good community contribution opportunities
Projects
Milestone

Comments

@carldebilly
Copy link

carldebilly commented Sep 9, 2021

Describe the bug

When using the RowDetailsVisibilityMode="VisibleWhenSelected" mode on <DataGrid /> and having a content with dynamic size, the content can grow but never shrinks. If the content shinks, the allocated space won't shrink. SEE ANIMAGED GIF BELOW, THE PROBLEM IS OBVIOUS.

Is this bug a regression in the toolkit? DON'T THINK SO

Steps to Reproduce

Can this be reproduced in the Sample App? YEP (check below)

Steps to reproduce the behavior:

  1. Take the WCT sample app and open the DataGridCode.bind file
  2. In the RowDetailsTemplate DataTemplate, add following lines just before the closing </StackPanel>:
           <Slider x:Name="height" Minimum="0" Maximum="200" StepFrequency="1" Value="10" />
           <Rectangle Fill="Red" Height="{Binding Value, ElementName=height}" />
  3. Launch the WCT sample app + open the DataGrid sample
  4. Using the Properties pane, set the RowDetailsVisibilityMode to VisibleWhenSelected
  5. Select any row in the data grid
  6. Play with the slider an observe the resizing of the row details:
    DataGrid-Details-Expanding-Not-Shinking

Expected behavior

The row details should shrink to following its content.

Screenshots

Environment

Observed on Windows.

NuGet Package(s): Observed on 7.0.2

Package Version(s):

Windows 10 Build Number:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • May 2019 Update (18362)
  • May 2020 Update (19041) ---> 19043
  • Insider Build ({build_number})

App min and target version:

  • Fall Creators Update (16299)
  • April 2018 Update (17134)
  • October 2018 Update (17763)
  • May 2019 Update (18362)
  • May 2020 Update (19041)
  • Insider Build ({build_number})

Device form factor:

  • Desktop
  • Xbox
  • Surface Hub
  • IoT

Visual Studio version:

  • 2017 (15.{minor_version})
  • 2019 (16.{minor_version})
  • 2022 (17.{minor_version})

Additional context

@carldebilly carldebilly added the bug 🐛 An unexpected issue that highlights incorrect behavior label Sep 9, 2021
@ghost ghost added the needs triage 🔍 label Sep 9, 2021
@ghost
Copy link

ghost commented Sep 9, 2021

Hello carldebilly, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

@michael-hawker michael-hawker added DataGrid 🔠 Issues on DataGrid control help wanted Issues identified as good community contribution opportunities and removed needs triage 🔍 labels Sep 9, 2021
@michael-hawker michael-hawker added this to the 7.2/8.0? milestone Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior DataGrid 🔠 Issues on DataGrid control help wanted Issues identified as good community contribution opportunities
Projects
Bugs 8.0
Awaiting triage
Development

No branches or pull requests

2 participants