how to stop/disable animation on click on Overflow button

2 posts, 0 answers
  1. KK
    KK avatar
    5 posts
    Member since:
    Aug 2012

    Posted 28 Jan 2013 Link to this post

    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
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 31 Jan 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top