Skip to content

Columns are not aligning with the ColumnHeaders #281

@DevTKSS

Description

@DevTKSS

Description:

A clear and concise description of what the bug is.

  • the Column headers are not aligning with the actual Columns.
  • The Dsp usage seems to introduce conflicts with the WinUI.TableView Filter Flyout. The left Button adheres to the Dsp defined colors and stylings, but the right one is Fluent styled with Fluent blue...

Steps to Reproduce:

Steps to reproduce the behavior.
Use Uno App with Material + Dsp + Mvvm

<tv:TableView ItemsSource="{Binding Items}"
              SelectedItem="{Binding SelectedPerson, Mode=TwoWay}"
              HorizontalAlignment="Center"
              VerticalAlignment="Top"
              Grid.Row="1"
              SelectionMode="Single"
              SelectionUnit="Row"
              IsReadOnly="True"
              CanSortColumns="True"
              CanReorderItems="False"
              CanDrag="False"
              AutoGenerateColumns="False"
              AllowDrop="False"
              CanDragItems="False"
              CanResizeColumns="True"
              CanFilterColumns="True">
<tv:TableView.Columns>
  <tv:TableViewTextColumn Header="Name"
                          Binding="{Binding Name}"
                          Width="2*" />
  <tv:TableViewTextColumn Header="City"
                          Binding="{Binding City}"
                          Width="*" />
  <tv:TableViewTextColumn Header="Country"
                          Binding="{Binding Country}"
                          Width="*" />
  <tv:TableViewTextColumn Header="Status"
                          Binding="{Binding Status}"
                          Width="*" />
</tv:TableView.Columns>
</tv:TableView>
public partial record Person(
    [property:Key]string Name,
    int Age,
    [property:Key]string City,
    [property: Key] string Country,
    string Status,
    string BehaviorSummary,
    string Wish,
    DeliveryInfo Delivery);

Expected behavior:

A clear and concise description of what you expected to happen.

The Columns should align with their Headers and the styling of the Buttons should adhere to the Dsp defined values and not be different

Screenshots:

If applicable, add screenshots to help explain your problem.

Image Image

Environment:

  • Package Version: 1.3.4

  • WinAppSDK Version: 1.8 (if I would build to Windows target)

  • Uno.Sdk 6.4.42

  • csproj:

    <Project Sdk="Uno.Sdk">
      <PropertyGroup>
        <TargetFrameworks>net10.0-desktop;net10.0-android;net10.0-ios;net10.0-browserwasm;net10.0-windows10.0.26100</TargetFrameworks>
        <OutputType>Exe</OutputType>
        <UnoSingleProject>true</UnoSingleProject>
        <UnoFeatures>
            Material;
            Dsp;
            Hosting;
            Toolkit;
            Logging;
            Mvvm;
            Configuration;
            Http;
            Serialization;
            Localization;
            Authentication;
            Navigation;
            ThemeService;
            SkiaRenderer;
        </UnoFeatures>
      </PropertyGroup>
      <ItemGroup>
        <PackageReference Include="WinUI.TableView" />
      </ItemGroup>
    </Project>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions