首页    件库    一品软件    下载    论坛     

   

 

WakiCoolBar控件主要属性有:       常见问题

TitleHeight设置标题栏的高度。
TitleFontColor:设置标题栏的字体颜色。
TitleBgColor:
设置标题栏的背景色。注意在设置了以下两个属性时,标题背景图会覆盖背景色。
InTitleImage:当鼠标移入标题栏时显示的标题背景图。注意在设置了皮肤时,会自动设置为系统图片。
OutTitleImage:
当鼠标移出标题栏时显示的标题背景图。
BackGround: 设置控件的背景图片。
B
ackGroundPosition: 当设置了控件背景图片时,指示背景图片的显示位置。
B
ackGroundRepeat: 当设置了控件背景图片时,指示背景图片的显示模式。值有:
        Repeat:填充模式,重复使用背景图完全填充控件。
        X_Repeat:将图片进行X轴重复填充,Y轴只显示图片本身的高度。
        Y_Repeat:将图片进行Y轴重复填充,X轴只显示图片本身的宽度。
        NoRepeat:X轴Y轴都不重复,只显示图片本身大小。
Panels: 控件主要属性,为集合属性,可以在IDE环境中可视化地添加菜单项。其子项Panel的主要属性有:
    V
alue: 为显示在Panel上的文字。
    I
tems: 此为另一集合属性,包含了下级子菜单的控件设置。其子项Item的属性与XML的设置保持一致,主要有:
       
Value: 为显示在Item上的文字。
        U
rl: 点击后的链接地址。
        Target: 点击打开的目标窗体,默认为main,在本窗体打开。
        BigImage: 如果ImageStyle属性设置为Big时显示的大图片地址。
        SmallImage: 如果ImageStyle属性设置为Small时显示的小图片地址。
        ImageStyle: 显示方式枚举,值有:None,Small,Big
PanelSrc:设置显示内容的XML文件地址,通过XML配置文件来设置Panels属性,会覆盖Panels的设置

示例XML内容为: ----------------------------------

<?xml version="1.0" encoding="utf-8" ?>
<
Wakisoft>
<
CoolBar value="WakiCoolBar" imagestyle="none">
<BarItem value="今日" url="sample.aspx?content=0" target="_self"/>
<BarItem value="收件箱" url="sample.aspx?content=1" target="_self"/>
<BarItem value="日历" url="sample.aspx?content=2" target="_self"/>
<BarItem value="联系人" url="sample.aspx?content=3" target="_self"/>
<BarItem value="任务" url="sample.aspx?content=4" target="_self"/>
<BarItem value="便笺" url="sample.aspx?content=5" target="_self"/>
<BarItem value="垃圾箱" url="sample.aspx?content=6" target="_self"/>
</
CoolBar>
<
CoolBar value="自定义方式" imagestyle="small">
<BarItem value="草稿箱" smallimage="images/draft.gif"
url="sample.aspx?content=7" target
="_self"/>
<BarItem value="发件箱" smallimage="images/send.gif"
url="sample.aspx?content=8" target
="_self"/>
<BarItem value="已发送" smallimage="images/sent.gif" url="sample.aspx?content=9" target="_self"/>
<BarItem value="日记本" smallimage="images/diary.gif"
url="sample.aspx?content=10" target
="_self"/>
</
CoolBar>
<
CoolBar value="其它方式" imagestyle="big">
<BarItem value="我的电脑" bigimage="images/mycomputer.gif"
url="sample.aspx?content=11" target
="_self"/>
<BarItem value="我的文档" bigimage="images/mydocument.gif" url="sample.aspx?content=12" target="_self"/>
<BarItem value="收藏夹" bigimage="images/favorite.gif" url="sample.aspx?content=13" target="_self"/>
</
CoolBar>
</
Wakisoft>

 ----------------------------------注意区分大小写.

DefaultItem: 当页面显示时,呈现出的项目。
WriteDictory: 控件使用此目录进行写图片文件操作,如果有用到皮肤属性的话,则应保证此目录可写并且在NTFS的权限中,也应有写权限。一般从根目录开始算起。
Skin: 控件默认定义的皮肤样式.如果不使用皮肤,完全可以通过设置相应的属性而完成同样的样式.皮肤样式使用枚举,名字空间为:Wakisoft.Web.UI.WebControls.BarStyle。
枚举值有:None = 0,Outlook = 1,紫气东来 = 2,水晶之恋 = 3,青青世界 = 4,暗黑之神 = 5,金色葵花 = 6,烟雨迷蒙 = 7,玫瑰之约 = 8,两小无猜 = 9
Height: 控件显示的总高度
Width: 控件显示的总宽度。
BackColor: 控件的背景色。
BorderColor: 控件边框颜色。
BorderStyle: 控件边框样式。
BorderWidth: 控件边框宽度。
ForeColor: 控件显示的字体颜色值,注意此颜色值同时改变标题栏和内容的字体颜色值。
DataSource: 控件指定使用的数据源,可以为DataSet,DataTable或其它集合类对象。
DataMember:
控件的DataSource设置为DataSet时,指定使用的表名。
DataKeyField:
控件Panel对应的主键字段,用于对应设置Item项的DataParentKeyField值。
DataParentKeyField:
控件Item项设置的父Panel键值,通过此键值寻找到父Panel,当值为-1时,指示当前子控件为Panel,否则为Item
DataBigImageField:
控件Item项设置的BigImage属性。当DataParentKeyField值为-1时无效。
DataImageStyleField:
控件Item项设置的ImageStyle属性。当DataParentKeyField值为-1时无效。
DataSmallImageField:
控件Item项设置的SmallImage属性。当DataParentKeyField值为-1时无效。
DataTargetField:
控件Item项设置的Target属性。当DataParentKeyField值为-1时无效。
DataTitleField:
控件Item项设置的Value属性。当DataParentKeyField值为-1时,为PanelValue属性。
DataUrlField:
控件Item项设置的Url属性。当DataParentKeyField值为-1时无效。