我的控件/對象命名規範(慢慢更新)

本身收集自網絡,轉載本文請保留來源(不然之後我這邊更新了,不寫轉載來源的坑爹了)

控件/對象類型 前綴
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.htmlhtml

相關文章
相關標籤/搜索