Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
UltraButton Image
posted

Hello guys ,
I need to add Image in UltraButton but it musn't be a backgroundImage need normal Tile image  for my case .
Image 

Parents
No Data
Reply
  • 6120
    Offline posted

    Hello Ilign,

    To add an image on top of UltraButton you can set it to its Appearance object. Using ImageHAlign and ImageVAlign you can adjust the position of this image on UltraButton. For example, you can do something like this:

    ultraButton1.Appearance.Image = userImage;
    ultraButton1.Appearance. ImageHAlign = Infragistics.Win.HAlign.Left;
    ultraButton1.Appearance. ImageVAlign = Infragistics.Win.VAlign.Middle;

    if you need you could also adjust the Image size:
    ultraButton1.ImageSize = new System.Drawing.Size(20, 20);

    Please let me know if I may be of further assistance.

    Sincerely,
    Sahaja Kokkalagadda
    Associate Software Developer

Children
No Data