Let me clarify a few things first. The element in which RadPropertyGrid displays properties is PropertyGridField
is an editor which supports editing bit flag enum. I suppose that when you use FlagEnumEditor in your post you mean PropertyGridField. Feel free to correct me if I am wrong.
You can subscribe to RadPropertyGrid's Loaded event to set the the width of the PropertyGridField
that is wider than the RadPropertyGrid like so:
private void rpg_Loaded(object sender, RoutedEventArgs e)
var longField = this.PropertyGrid1.ChildrenOfType<
longField.Width = ((RadPropertyGrid)sender).ActualWidth;
This would adjust the width of the first PropertyGridField
to the width of the RadPropertyGrid. Feel free to change that code if you need to adjust more than one field.
If you need to resize the fields every time the RadPropertyGrid is resized you can subscribe to its SizeChanged
event and adjust the width of the fields there.
I hope you find this helpful. Let me know if I can be of any further assistance.
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.