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

[WPF] DataGrid header is not hidden when column is resized beyond allowed width #7698

Open
bstrother1 opened this issue Dec 28, 2021 · 0 comments
Labels
area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/windows-community-toolkit 🎚️ Categorizes an issue or PR as relevant to the Windows Community Toolkit difficulty/challenging 🤯 Categorizes an issue for which the difficulty level is reachable with internals understanding kind/bug Something isn't working platform/wpf 🪟 Categorizes an issue or PR as relevant to WPF project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) project/third-party 3️⃣ Categorizes an issue or PR as relevant to 3rd party libraries

Comments

@bstrother1
Copy link

Current behavior

When resizing is allowed for a datagrid inside of a [WPF] build it is inconsistent if the datagrid will hide the header of if it will keep displaying. This works in UWP consistently.

DataGridResizeIncorrect.zip

Expected behavior

Expect the Datagrid in [WPF] build to consistently hide a column if it is outside of width resize bounds.

BeforeResize

AfterResize

How to reproduce it (as minimally and precisely as possible)

  1. Have an MVVM project
  2. Have NuGet packages (Listed Below)
  3. Have a Datagrid with bound itemsource and resizing enabled.

Workaround

Disable Resizing

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia

NuGet package version(s)

WPF:
PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0"
PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0"
PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0"
PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0"
PackageReference Include="Microsoft.Extensions.Logging.Filter" Version="1.1.1"
PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="5.0.0"
PackageReference Include="ReactiveUI.Fody" Version="16.3.10" /
PackageReference Include="ReactiveUI.Uno" Version="16.3.10"
PackageReference Include="Splat.Microsoft.Extensions.DependencyInjection" Version="11.0.1"
PackageReference Include="Splat.Microsoft.Extensions.Logging" Version="9.5.13"
PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0"
PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0"
PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4"
PackageReference Include="Uno.Core" Version="4.0.1"
PackageReference Include="Uno.Microsoft.Toolkit" Version="7.1.10-gf3d2516805"
PackageReference Include="Uno.Microsoft.Toolkit.Uwp" Version="7.1.0-build.45.gd2e4192c8c"
PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI" Version="7.1.0-build.45.gd2e4192c8c"
PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Controls" Version="7.1.0-build.45.gd2e4192c8c"
PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Controls.DataGrid" Version="7.1.0-build.45.gd2e4192c8c"
PackageReference Include="Uno.Microsoft.Toolkit.Uwp.UI.Controls.Layout" Version="7.1.0-build.45.gd2e4192c8c"
PackageReference Include="Uno.Microsoft.Xaml.Behaviors.Interactivity" Version="2.0.5"
PackageReference Include="Uno.UI" Version="3.11.6"
PackageReference Include="Uno.UI.RemoteControl" Version="3.11.6" Condition="'$(Configuration)'=='Debug'"
PackageReference Include="Uno.UI.Skia.Wpf" Version="3.11.6"

Affected platforms

Skia (WPF)

IDE

Visual Studio 2022

IDE version

17.0.4

Relevant plugins

No response

Anything else we need to know?

No response

@bstrother1 bstrother1 added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Dec 28, 2021
@jeromelaban jeromelaban added the project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) label Jan 3, 2022
@MartinZikmund MartinZikmund changed the title [WPF] Datagrid header not hidden when column is resized beyond allowed width [WPF] DataGrid header is not hidden when column is resized beyond allowed width Jul 19, 2023
@MartinZikmund MartinZikmund added area/windows-community-toolkit 🎚️ Categorizes an issue or PR as relevant to the Windows Community Toolkit difficulty/challenging 🤯 Categorizes an issue for which the difficulty level is reachable with internals understanding project/third-party 3️⃣ Categorizes an issue or PR as relevant to 3rd party libraries area/skia ✏️ Categorizes an issue or PR as relevant to Skia platform/wpf 🪟 Categorizes an issue or PR as relevant to WPF and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/windows-community-toolkit 🎚️ Categorizes an issue or PR as relevant to the Windows Community Toolkit difficulty/challenging 🤯 Categorizes an issue for which the difficulty level is reachable with internals understanding kind/bug Something isn't working platform/wpf 🪟 Categorizes an issue or PR as relevant to WPF project/layout 🧱 Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..) project/third-party 3️⃣ Categorizes an issue or PR as relevant to 3rd party libraries
Projects
None yet
Development

No branches or pull requests

3 participants