Skip to content

分组名称显示问题Group name display issue #1799

Open

Description

@ZhuoWang-NXNX

组名称显示在中间,并且显示不全 The group name is displayed in the middle, but it is not shown
Environment环境.NET8.0+Extended.Wpf.Toolkit 4.7.25104.5739



<xc:PropertyGrid Grid.Row="0" Margin="10"
CategoryGroupHeaderTemplate="{StaticResource Category}"
FontSize="14" NameColumnWidth="500"
SelectedObject="{Binding SelectedParameter}"
ShowAdvancedOptions="True"
ShowDescriptionByTooltip="True"
ShowSearchBox="False" ShowSortOptions="False"
ShowSummary="True" ShowTitle="False" />

Activity

  1. ZhuoWang-NXNX commented on Jun 1, 2025

    @ZhuoWang-NXNX
    Author
  2. XceedBoucherS commented on Jun 4, 2025

    @XceedBoucherS
    Collaborator

    Hello,
    What is the issue exactly ? Can you show with an image ?
    Also, in the sample, what is the Category and SelectedParameter ?
    We are trying to reproduce the issue you have, but we need the same values.

    Thanks

  3. shenjianjun878 commented on Jun 22, 2025

    @shenjianjun878

    Image

  4. shenjianjun878 commented on Jun 23, 2025

    @shenjianjun878

    Could you please take a look at why the title of this category is not displayed completely? Thanks
    @XceedBoucherS

  5. XceedBoucherS commented on Jun 23, 2025

    @XceedBoucherS
    Collaborator

    Hello,
    It probably depends on how the "CategoryGroupHeaderTemplate" is created.

    Here's a sample I build, based on yours, with my "Category" and "SelectedParameter" values, so I can compile.

    <Window.Resources> <DataTemplate x:Key="Category"> <TextBlock Text="{Binding}"/> </DataTemplate> </Window.Resources> <Grid> <xc:PropertyGrid Grid.Row="0" Margin="10" CategoryGroupHeaderTemplate="{StaticResource Category}" FontSize="14" NameColumnWidth="500" SelectedObject="{Binding SelectedParameter}" ShowAdvancedOptions="True" ShowDescriptionByTooltip="True" ShowSearchBox="False" ShowSortOptions="False" ShowSummary="True" ShowTitle="False" /> </Grid> </Window>

    ` public partial class MainWindow : Window
    {
    public MainWindow()
    {
    InitializeComponent();

      this.DataContext = this;
      this.SelectedParameter = new MyItem() { First = 100, Second = 500, third = 500 };
    }
    
    public MyItem SelectedParameter
    {
      get;
      set;
    }
    

    }

    public class MyItem
    {
    [Category( "FirstCategory" ) ]
    public int First
    {
    get;
    set;
    }

    [Category( "FirstCategory" )]
    public int Second
    {
      get;
      set;
    }
    
    [Category( "FirstCategory" )]
    public int third
    {
      get;
      set;
    }
    

    }`

    Thank you

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions