Hi!
PropertyGrid User Control:
01.
<
telerik:RadPropertyGrid
x:Name
=
"PropertyGrid1"
02.
03.
IsGrouped
=
"True"
04.
RenderMode
=
"Hierarchical"
05.
DescriptionPanelVisibility
=
"Visible"
06.
SortAndGroupButtonsVisibility
=
"Visible"
07.
LabelColumnWidth
=
"80"
08.
09.
ScrollViewer.HorizontalScrollBarVisibility
=
"Disabled"
10.
ScrollViewer.VerticalScrollBarVisibility
=
"Disabled"
>
11.
<
telerik:RadPropertyGrid.PropertyDefinitions
>
12.
<
telerik:PropertyDefinition
Binding
=
"{Binding Salary}"
Description
=
"Displays the Width property of the RadButton"
DisplayName
=
"Width"
>
13.
<
telerik:PropertyDefinition.EditorTemplate
>
14.
<
DataTemplate
>
15.
<
telerik:RadNumericUpDown
Value
=
"{Binding Salary, Mode=TwoWay}"
/>
16.
</
DataTemplate
>
17.
</
telerik:PropertyDefinition.EditorTemplate
>
18.
</
telerik:PropertyDefinition
>
19.
<
telerik:PropertyDefinition
Binding
=
"{Binding IsMarried}"
Description
=
"Displays the Height property of the RadButton"
DisplayName
=
"Married Count"
>
20.
<
telerik:PropertyDefinition.EditorTemplate
>
21.
<
DataTemplate
>
22.
<
telerik:RadSlider
Value
=
"{Binding IsMarried, Mode=TwoWay}"
/>
23.
</
DataTemplate
>
24.
</
telerik:PropertyDefinition.EditorTemplate
>
25.
</
telerik:PropertyDefinition
>
26.
</
telerik:RadPropertyGrid.PropertyDefinitions
>
27.
</
telerik:RadPropertyGrid
>
Code Behind
01.
public
PropGrid()
02.
{
03.
InitializeComponent();
04.
this
.PropertyGrid1.Item =
new
Employee()
05.
{
06.
FirstName =
"Sarah"
,
07.
LastName =
"Blake"
,
08.
Occupation =
"Supplied Manager"
,
09.
StartingDate =
new
DateTime(2005, 04, 12),
10.
IsMarried = 4,
11.
Salary = 3500,
12.
};
13.
}
Start application and expand the whole window. Resize it back, propertyGrid doesnt adjust.
The root cause is the slider. If i remove the slider, everything works fine. For your reference, please see the attached project
Is this a bug?