我在Winform项目中使用Syncfusion。我正在尝试添加ToolStripEx ToolStripRadioButton。 ToolStripEx位于功能区中。
我希望单选按钮是图像。
我的代码是:
LayoutCoosing.Items.Add(new ToolStripRadioButton()
{
Name = "SingleScreenDividerButton",
DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image,
Image = (Image)Properties.Resources.ResourceManager.GetObject("SingleScreenDivider"),
GroupID = 0,
Checked = true
});
我检查了,图片路径没问题。为什么RadioButton没有得到图像?
答案 0 :(得分:0)
ToolStripRadioButton
不支持显示图片。因为ToolStripRadioButton
派生自ToolsStripButton
,所以它会避免基本渲染呈现RadioButton
外观,我们没有任何实现来渲染图像。
但是这种支持将在我们未来的版本中提供。