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

Padding issue with ActionButtonElement

2 Answers 37 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 22 Jun 2007, 05:53 PM
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 Answers, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 27 Jun 2007, 10:32 AM
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
0
john
Top achievements
Rank 1
answered on 27 Jun 2007, 05:29 PM
that's what i was looking for. 

thanks for your time...

-
john
Tags
RibbonBar
Asked by
john
Top achievements
Rank 1
Answers by
Jordan
Telerik team
john
Top achievements
Rank 1
Share this question
or