.NET5 PropertyGrid's Scrollbar hides the reset buttons

Posted by: info on 24 October 2021, 7:55 pm EST

    • Post Options:
    • Link

    Posted 24 October 2021, 7:55 pm EST - Updated 4 October 2022, 8:36 am EST

    .NET5 PropertyGrid

    The scrollbar hides the reset buttons.

    How to change the stye?

  • Posted 26 October 2021, 3:35 am EST

    Hello,

    Thank you for providing the snapshot.

    This behavior seems like a bug. So that, we have escalated it to the devs. We will get back to you once we have any update.[Internal Tracking Id: C1XAML-28247]

    However, you can do a workaround by setting margin to the displayed content of the PropertyGrid. For that you need to handle Loaded event of C1PropertyGrid as : (see code snippet)

    
            private void PropertyGrid_Loaded(object sender, RoutedEventArgs e)
            {
                var propertyGrid = sender as C1PropertyGrid;
                var scroll = propertyGrid.Template.FindName("6_T", propertyGrid) as C1ScrollViewer;
                (scroll.Content as StackPanel).Margin = new Thickness(0, 0, 20, 0);
            }
    
    

    Please refer the attached sample for the same : PropertyGridResetButton.zip

    Regards,

    Nitin

  • Posted 28 October 2021, 3:30 am EST

    I will wait for the fix. Thank you.

  • Posted 7 December 2021, 6:07 am EST

    Hi,

    We are happy to inform you that this issue has been fixed with the latest build 2021v3.

    So, we would request you to upgrade to the latest build using ComponentOne control panel. Just in case if you don’t have ComponentOne Control Panel, you can download it from https://www.grapecity.com/componentone/download.

    Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels