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

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

控件/对象类型 前缀
AppBar 只有一个:appBar/多个:suffix:XXXAppBar
AppBarButton btn
Border brd
Button btn
Canvas cnv
CheckBox chk
CheckedListBox chl
ComboBox cmb
CommandBar 只有一个:appBar/多个:suffix:XXXAppBar
ContextMenu mnu
Control ctl
DatePicker dtp
DateTimePicker dtp
DockPanel pnl
DropDownList ddl
Flyout suffix:XXXFlyout
Form frm
Grid grd
GridView gvw
GroupBox grp
Image img
Label lbl
LinkLabel lnk
ListBox lst
ListView lvw
MaskedTextBox mtx
Menu mnu
MenuFlyout suffix:XXXFlyout
MenuItem mnu
Panel pnl
PasswordBox pwb
PictureBox pic
Popup suffix:XXXPopup
ProgressBar prg
ProgressRing prg
RadioButton rdo
Repeater rpt
RichTextBlock rtl
RichTextBox rtb
ScrollViewer suffix:XXXScrollViewer
SearchBox txt
Slider suffix:XXXSlider
SplitView svw
StackPanel pnl
TextBlock txl
TextBox txt
TimePicker dtp
Timer tmr
ToolTip tip
TreeView tvw
Window win
WrapPanel pnl
FlipView fvw

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.cnblogs.com/flydoos/archive/2011/08/29/2158903.html
http://cybarlab.blogspot.com/2013/02/standard-naming-convention-for-aspnet.html

你可能感兴趣的:(个人控件/对象命名规范(慢慢更新))