lepoco / lepoco/wpfui

Listview Styling gone after Upgrade from 3.0.1 to 3.0.2

Open
#1,113 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

after upgrading from WPF UI 3.0.1 to 3.0.2 the styling of the Listview somehow completely got lost in my case ?

before (3.0.1)
image

after (3,0.2)
image

To Reproduce

add a simple list view like this to ur wpf fluentwindow:

<ui:FluentWindow
    ExtendsContentIntoTitleBar="True"
    Height="1000"
    Title="Test"
    Width="800"
    WindowBackdropType="Mica"
    WindowCornerPreference="DoNotRound"
    WindowStartupLocation="CenterScreen"
    x:Class="com.Test.Testwindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <ui:TitleBar Grid.Row="0" />
        <StackPanel Grid.Row="1">
            <ListView
                ItemsSource="{Binding Mappings}"
                Margin="10,0,10,0"
                VerticalAlignment="Top">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="test" />
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        </StackPanel>
    </Grid>
</ui:FluentWindow> 
Expected behavior

should render the styleseet

Screenshots

No response

OS version

Windows 11 Pro
10.0.22631 Build 22631

.NET version

.NET 8

WPF-UI NuGet version

3.0.2

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start with the minimal FluentWindow/ListView XAML reproduction and compare its rendering between WPF UI 3.0.1 and 3.0.2 on the stated Windows 11 and .NET 8 setup. Done means the ListView styling renders as expected after upgrading to 3.0.2.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.