admin 管理员组文章数量: 1086019
2024年4月18日发(作者:xml xslt筛选)
DevExpress控件使用使用技巧小结
相关搜索: 小结, DevExpress, 控件, 技巧
零零散散的先总结一下吧
itor(barEditItem)取文本
string editValue = ng(); //错误,返回
null
string editValue =
((it)barEditItem).ng();
//正确,返回文本框内容oxEdit(barEditItem)添加Item
string item = "comboboxItem1";
((toryItemComboBox)
).(item);oxEdit(barEditItem)取文本
string itemValue = ng();控件
//添加Page
Page ribbonPage = new RibbonPage();
(ribbonPage);
//添加Group
PageGroup ribbonPageGroup = new
RibbonPageGroup();
(ribbonPageGroup);
//添加Button
tonItem barButtonItem = new BarButtonItem();
(barButtonItem);
//添加barSubItem
Item barSubItem = new BarSubItem();
(barSubItem);
//barSubItem下添加Button
m(barButtonItem);
//奇怪的删除Page问题
while ( > 0)
{
([0]); //调试正
常,运行报异常
}
while ( > 0)
{
edPage = [0];
(edPage); //运行正
常
}
//禁止F10键Tips
10KeyForMenu = false;
//DX按钮
ApplicationIcon属性改变图标
右键 Add ApplicationMenu 添加
o
//在Tab页上点击右键的事件响应
void xtraTabbedMdiManager_Event(object sender, MouseEventArgs e)
{
if ( == & ActiveMdiChild != null)
{
bHitInfo hInfo =
tInfo(on);
//右键点击位置:在Page上且不在关闭按钮内
if (d & != null
&& !CloseButton)
{
pup(osition);//在鼠
标位置弹出,而不是on
}
}
}
//在ribbon上点击右键的事件响应
private void ribbonControl1_ShowCustomizationMenu(object sender,
RibbonCustomizationMenuEventArgs e)
{
//禁掉原系统右键菜单
stomizationMenu = false;
//右键位置:在barButtonItem上
if (o != null
&
& is BarButtonItem)
{
pup(osition);
}
//右键位置:在barSubItem中的barButtonItem上
else if ( != null
& != null
& is BarButtonItem)
{
版权声明:本文标题:DevExpress控件使用使用技巧小结 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/b/1713372251a631373.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论