If RadGropBox have
1) non odd height (for example, 179 instead of 180) and
2) font set for Tahoma with size 8
lower boundary is lost. See this picture for example.
I use Telerik RadControls for WinForms version 2009.2.729.
RadButtonElement
radB = new RadButtonElement();
Image Image = SaveBitmap(f); //My Faunction which returns an image
radB.CanFocus =
true;
radB.DisplayStyle = Telerik.WinControls.
DisplayStyle.Image;
radB.Image = Image;
radB.Name =
"radButtonElement";
radB.Text =
"radButtonElement";
((Telerik.WinControls.Primitives.
FillPrimitive)(radB.GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden;
((Telerik.WinControls.Primitives.
BorderPrimitive)(radB.GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Hidden;
this.leoSchachterCarousel1.Items.Add(radB);
---------------------------------------------------------------------------------------------------------------------------------------
the Problem Is that the Image is to big and when I set it smaller it is cut...
how can I set an AutoSize and Stretch Image to RadButtonElement ?
Thank You,
private void applyThemeToGeneratedControl(Telerik.WinControls.RadControl control)
{
control.ThemeName = Telerik.WinControls.
ThemeResolutionService.ApplicationThemeName;
control.RootElement.ForceReApplyStyle();
control.RootElement.ForceApplyTheme();
}
which does work for the majority of controls, but not for toolstrip.
Any ideas what I'm doing wrong here ?
Thanks,
Phillip