Padding issue with ActionButtonElement

3 posts, 0 answers
  1. john
    john avatar
    13 posts
    Member since:
    Jun 2007

    Posted 22 Jun 2007 Link to this post

    in a ribbonbar, i have replaced the telerik graphic with something more suitable for our app. 

    when trying to set the padding of the actionbuttonelement(via the element editor), it will let me initially set it to 0 and the appearance is to my liking; however, when i compile or run the app, it toggles it back to a padding of 4.

    thanks, any help is appreciated...

    -
    john
  2. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 27 Jun 2007 Link to this post

    Hi John,

    Sorry for the late reply.

    Unfortunately, there are some serialization problems with the UI element editor that we are still to research. For now you can easily access the ActionButtonElement as follows:

    ClassSelector selector = new ClassSelector("OfficeButton");  
    RadElement actionButtonElement = selector.GetSelectedElemen(this.radRibbonBar1.RibbonBarElement)[0];  
    actionButtonElement.Padding = new Padding(0); 

     

    Sincerely yours,
    Jordan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. john
    john avatar
    13 posts
    Member since:
    Jun 2007

    Posted 27 Jun 2007 Link to this post

    that's what i was looking for. 

    thanks for your time...

    -
    john
Back to Top