Completed
Last Updated: 20 Oct 2014 11:51 by ADMIN
ADMIN
Stefan
Created on: 18 Feb 2013 09:20
Category: RibbonBar
Type: Bug Report
1
FIX. RadRibbonBar - theme is not properly applied to buttons added programatically (they appear with white fill and border)
To reproduce:
  Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        For index = 1 To 10
            Dim Temp As New RadButtonElement
            Temp.Image = Image.FromFile("C:\Program Files (x86)\Telerik\RadControls for WinForms Q3 2012\Examples\QuickStart\Resources\1RibbonMenuNewMagenta.png")
            Temp.TextImageRelation = TextImageRelation.ImageAboveText
            Temp.ImageAlignment = ContentAlignment.MiddleCenter
            Temp.Text = "Test"
            RadRibbonBarGroup1.Items.Add(Temp)
        Next

        'workaround
        'RadRibbonBar1.RibbonBarElement.ElementTree.ApplyThemeToElement(RadRibbonBar1.RibbonBarElement)
    End Sub
0 comments