This is a migrated thread and some comments may be shown as answers.

how to stop/disable animation on click on Overflow button

1 Answer 453 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
KK
Top achievements
Rank 1
KK asked on 28 Jan 2013, 11:29 AM
Hi,

When I click on Overflow Button Inside the toolbar then it shows the remaining control which are not visible, here in this case I want to stop/disable the animation when it shows the overflow controls.
Could anyone please tell me how can I disable this animation.

Thanks,
KK

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 31 Jan 2013, 06:56 AM
Hello KK,

 Currently this cannot be changed via property or something easy. You will have to edit the default template of the RadToolBar and change the PopupAnimation property of the Popup named "PART_Overflow":
From:

<?WPF BEGIN?>
                      <Grid Grid.Column="2">
                          <Popup x:Name="PART_Overflow" AllowsTransparency="True" StaysOpen="False" Focusable="false"
                                  Placement="Bottom"
                                  IsOpen="{Binding Path=IsOverflowOpen, RelativeSource={RelativeSource TemplatedParent}}"
                                  PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
                              <?WPF END?>
To
<?WPF BEGIN?>
                      <Grid Grid.Column="2">
                          <Popup x:Name="PART_Overflow" AllowsTransparency="True" StaysOpen="False" Focusable="false"
                                  Placement="Bottom"
                                  IsOpen="{Binding Path=IsOverflowOpen, RelativeSource={RelativeSource TemplatedParent}}"
                                  PopupAnimation="None">
                              <?WPF END?>
We highly encourage you to use an implicit styles approach if you change the default style. You can read more about it here.

Kind regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ToolBar
Asked by
KK
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or