首页 > 学院 > 开发设计 > 正文

个人控件/对象命名规范(慢慢更新)

2019-11-14 16:15:09
字体:
来源:转载
供稿:网友

自己收集自网络,转载本文请保留来源(否则以后我这边更新了,不写转载来源的坑爹了)

控件/对象类型前缀
AppBar只有一个:appBar/多个:suffix:XXXAppBar
AppBarButtonbtn
Borderbrd
Buttonbtn
Canvascnv
CheckBoxchk
CheckedListBoxchl
ComboBoxcmb
CommandBar只有一个:appBar/多个:suffix:XXXAppBar
ContextMenumnu
Controlctl
DatePickerdtp
DateTimePickerdtp
DockPanelpnl
DropDownListddl
Flyoutsuffix:XXXFlyout
Formfrm
Gridgrd
GridViewgvw
GroupBoxgrp
Imageimg
Labellbl
LinkLabellnk
ListBoxlst
ListViewlvw
MaskedTextBoxmtx
Menumnu
MenuFlyoutsuffix:XXXFlyout
MenuItemmnu
Panelpnl
PassWordBoxpwb
PictureBoxpic
Popupsuffix:XXXPopup
PRogressBarprg
ProgressRingprg
RadioButtonrdo
Repeaterrpt
RichTextBlockrtl
RichTextBoxrtb
ScrollViewersuffix:XXXScrollViewer
SearchBoxtxt
Slidersuffix:XXXSlider
SplitViewsvw
StackPanelpnl
TextBlocktxl
TextBoxtxt
TimePickerdtp
Timertmr
ToolTiptip
TreeViewtvw
Windowwin
WrapPanelpnl
FlipViewfvw

http://msdn.microsoft.com/en-us/library/aa979151(v=vs.71).aspx
http://en.wikibooks.org/wiki/C_Sharp_Programming/Naming
http://www.surfingsuccess.com/asp.net-vb-c-control-naming-conventions.html
https://support.microsoft.com/kb/173738?wa=wsignin1.0
http://www.VEVb.com/flydoos/archive/2011/08/29/2158903.html
http://cybarlab.blogspot.com/2013/02/standard-naming-convention-for-aspnet.html


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表