I am trying to set the ZIndex on the Expander where the overlapped layout is a UniformGrid as per the following code:
<
UserControl
x:Class
=
"Project1.TestExpander"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Height
=
"auto"
Width
=
"300"
>
<
Grid
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
x:Name
=
"ButtonsColumns"
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"auto"
/>
</
Grid.ColumnDefinitions
>
<
UniformGrid
Grid.ZIndex
=
"1"
Rows
=
"2"
Columns
=
"4"
>
<
telerik:RadButton
Content
=
"TEST1"
></
telerik:RadButton
>
<
telerik:RadButton
Content
=
"TEST2"
></
telerik:RadButton
>
<
telerik:RadButton
Content
=
"TEST3"
></
telerik:RadButton
>
<
telerik:RadButton
Content
=
"TEST4"
></
telerik:RadButton
>
<
telerik:RadButton
Content
=
"TEST5"
></
telerik:RadButton
>
<
telerik:RadButton
Content
=
"TEST6"
></
telerik:RadButton
>
<
telerik:RadButton
Content
=
"TEST7"
></
telerik:RadButton
>
<
telerik:RadButton
Content
=
"TEST8"
></
telerik:RadButton
>
</
UniformGrid
>
<
telerik:RadExpander
Grid.ZIndex
=
"2"
Grid.Column
=
"1"
Header
=
"Advanced"
VerticalAlignment
=
"Stretch"
ExpandDirection
=
"Left"
IsExpanded
=
"False"
>
<
Grid
>
<
telerik:RadButton
Width
=
"250"
></
telerik:RadButton
>
</
Grid
>
</
telerik:RadExpander
>
</
Grid
>
</
Grid
>
</
UserControl
>
The problem is ZIndex property is not working. If you run the code above, when you expand the Expander, it will squeeze the buttons width until they disappear. The intended behavior using ZIndex property is to keep the buttons layout unaffected by the Expander animation, as a result, you can see the Expander content expanding over buttons but not squeezing the width.
NOTE: above code is working with canvas but it is not working with Grid, UniformGrid and StackPanel. Help Please.
Thanks in advance.