DEV NavBarControl控件Item的使用
更新时间:2024-03-19 07:25:01 阅读量: 综合文库 文档下载
- devcheck推荐度:
- 相关推荐
当单击NavBarItems 的时候,设置其背景色的改变。 1、
直接使用
NavigationPane 属性可以实现,但是要设
置 NavBarControl.AllowSelectedLink属性为true, 2、
当使用default SkinExplorerBarVie属性时,直接设置背景颜色,或者是高亮显示,将不会成功,方法是在CustomDrawLink 事件中自定义实现。
private void navBarControl1_CustomDrawLink(object sender,
DevExpress.XtraNavBar.ViewInfo.CustomDrawNavBarElementEventArgs e) { DevExpress.XtraNavBar.ViewInfo.NavLinkInfoArgs info = e.ObjectInfo as DevExpress.XtraNavBar.ViewInfo.NavLinkInfoArgs; if(info.State
==
DevExpress.Utils.Drawing.ObjectState.Selected
|
info.State == DevExpress.Utils.Drawing.ObjectState.Pressed){ e.Graphics.FillRectangle(Brushes.Red, e.ObjectInfo.Bounds); e.Graphics.DrawImage(e.Image, info.ImageRectangle); e.Appearance.DrawString(e.Cache, info.CaptionRectangle); e.Handled = true; } }
3、当PaintStyleKind 属性设置为ExplorerBar的时候,进行下面的设置不成功。
info.Link.Caption,
NavBarControl --> Appearance --> ItemPressed --> Image NavBarGroup --> AppearancePressed --> Image NavBarItem --> AppearancePressed --> Image
The background image simply does not appear. AllowSelectedLink is set to True. 3、
设置图片
如果要设置背景图片需要关闭皮肤机制,设置NavBarControl.LookAndFeel.UseDefaultLookAndFeel属性 为“false”同时设置 NavBarControl.LookAndFeel.Style 属性为“Flat”
Color highlight =
CommonSkins.GetSkin(this.navBarControl1).Colors[CommonColors.Highlight];
在ExplorerBar 样式时工作良好,但是在PaneView需要通过事件设置。
正在阅读:
DEV NavBarControl控件Item的使用03-19
幸福的生活作文02-05
关于潍柴动力股份有限公司08-24
2016课程论作业03-15
重大安全风险公告警示制度05-15
流行病学考试复习试题01-17
4胶南市创建全国科普示范市工作总体情况03-17
二年级英语教学总结一学期05-17
- 多层物业服务方案
- (审判实务)习惯法与少数民族地区民间纠纷解决问题(孙 潋)
- 人教版新课标六年级下册语文全册教案
- 词语打卡
- photoshop实习报告
- 钢结构设计原理综合测试2
- 2014年期末练习题
- 高中数学中的逆向思维解题方法探讨
- 名师原创 全国通用2014-2015学年高二寒假作业 政治(一)Word版
- 北航《建筑结构检测鉴定与加固》在线作业三
- XX县卫生监督所工程建设项目可行性研究报告
- 小学四年级观察作文经典评语
- 浅谈110KV变电站电气一次设计-程泉焱(1)
- 安全员考试题库
- 国家电网公司变电运维管理规定(试行)
- 义务教育课程标准稿征求意见提纲
- 教学秘书面试技巧
- 钢结构工程施工组织设计
- 水利工程概论论文
- 09届九年级数学第四次模拟试卷
- NavBarControl
- 控件
- 使用
- Item
- DEV
- AutoCAD第2章 绘制图形基本元素
- 实验08-1参考答案
- 糟糕的亲子关系会“妨碍学习”(英汉双语)
- 全国省级联考word全国普通高等学校2018年统一考试理科综合模拟生
- 慈利群众信访举报转办及地方查处情况一览表 - 图文
- 16年学业水平测试模拟试题语文4及参考答案
- 新版Max1000概述
- 江苏前后员工手册7(新版组织架构图)
- 高考数学一轮复习最基础考点系列考点46三角函数的定义域和
- 几何量公差与检测复习资料
- 教育学习文章区委书记在全区新任领导干部谈心会上的讲话
- 山东省乡村学校少年宫考核评估标准
- 江苏省无锡市普通高中2017-2018学年高一下学期期末考试物理试题W
- 柴油发动机基本原理一
- 014年高考真题文综(山东卷)解析版
- 钢筋工程专项施工方案(完整) - 图文
- 尔雅生命科学与人类文明章节测验2019年1月
- 时代光华电话礼仪答案
- 评语大全之崇德向善作文评语
- 项目总体开工报告