Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF XAML naming convention

$
0
0

Is there any XAML naming convention ?

For example especially I am interesting about naming you controls.

For example I create my

customButton

customToogleButton

customLink

In tutorials controls name is very simple. But in real life it not easy way to generate unique nice control name not the same as stadard controls ( like Button, TogllgeButton..).

So the easy way is to set prefix before control - for example your organisation or may be your give your application personal style name ( like Metro and you will have MetroButton, MetroToggleButton ).

But it is only my ideas. May be there are some Microsoft guidance for xaml.

Also I found this tutorial

http://paulstovell.wordpress.com/2007/05/04/xaml-and-wpf-coding-guidelines/

But some ideas is strange for me. For example using _ in names.

PART_ScheduleItemOuterBorder and other. Is it good names ?


Video Frame Explorer allows you to make thumbnails (caps, previews) of video files

My .NET Extras. Coming soon : MVVM Dialog Service, EmptyIfNull ( LINQ ), CombineAsPath, Easy File Size Info


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>