Dumping code with a throw away question
Quote:
is this a best practice in wpf
is not a good question. It is so vague we cannot possibly answer it. It is not clear what "practice" you are referring to - it could be anything from
- your naming conventions (looks ok to me, at least you haven't used default names)
- to the use of indentation in the source code file (common practice)
- through to the use of data binding (yes, this is good practice)
You can find out more about "best practices" with a little research - try
Google[
^] or by reading books like
The Pragmatic Programmer[
^] or
Code Complete[
^] (there are others)