Hey, I have a RadMenu, and what I'm trying to do is to put a RadButtonElement inside a RadMenuItem, but I can't find where and how to do it right, since it aways go to wrong position. This was my last try:
var item = new RadButtonElement
{
Text = "?",
CaptureOnMouseDown = true,
ShouldHandleMouseInput = true,
StretchHorizontally = false,
StretchVertically = true,
NotifyParentOnMouseInput = false,
Margin = new Padding(5),
Alignment = ContentAlignment.MiddleRight,
};
item.Font = new Font(item.Font, FontStyle.Bold);
item.Click += Item_Click;
btnCotacao.Layout.Children.Add(item);