Hi. I want to know what the naming conventions for .Net & WPF controls are. Microsoft doesn't have official guidlines on this and when I check different sources they all show different variations.
Is this way OK:

Button FileOpenButton;

Also regarding public instance fields. Is it wrong to name a FileStream fs instead of FileStream?


This is a major issue which dates from long ago.
One answer: it does not matter really!
See for instance this
I (but this is just my style!) often use a c in front of a constant.
Or I use things like OKbtn for a Button, Salarytxb for a TextBox.
If you program on your own, do your own thing but be consistant.
Working in a team, different rules may apply.