Browse by Tags

All Tags » C# » CSharp (RSS)
As you debug your project, stepping through the code, you often end up with lots and lots of opened tabs in Visual Studio. With all of those tabs opened, it is hard to keep track of the tabs that are important. Visual Studio 2012 provides two features...
One of the very nice things about Visual Studio is that all of the tools you need are in one place. With one integrated development environment, you can build your database, create your resource strings, write your code, write and run unit tests, check...
As .NET developers, we sometimes need to convert code from C# to VB or from VB to C#. Bing may have returned the perfect example of what you need, but it is in VB and you need C# code. Or some sample code you downloaded is in C# and you need it in VB...
If you use Visual Studio often, you probably pinned it to the task bar so you can quickly access it. Here is a tip for opening Visual Studio from the task bar using the keyboard. First, count the position of Visual Studio in the task bar. Mine is in position...
You can open Visual Studio multiple times, but each environment has the same settings. With Visual Studio 2010 and experimental instances, you can now have entirely different instances of Visual Studio with different settings. If you open up Visual Studio...
Data annotation attributes are a great way to add single property validation to your Silverlight/WCF RIA application. But what if you don't want to inject attributes all over your business classes? The purpose of a metadata class is to have a place...
Resource files are a great way to manage strings, especially if you need to support multiple languages. This post demonstrates how to use a resource file with the validation attributes used by Silverlight and WCF RIA Services. NOTE: This post is part...
When you identify the validation scenarios for your application, you will find that some only require basic single property validation. Examples: Ensure that a first name is entered. Ensure that the first name is not longer than 20 characters Ensure that...
This post provides a simple Silverlight MVVM, WCF RIA Services sample application that is used to demonstrate validation techniques. The sample application is provided in this separate post so it can be readily used with any of the presented validation...
One of the biggest challenges of implementing validation in Silverlight is finding the appropriate technique based on your architecture and goals. There are lots of choices and lots of examples, but not all examples work in all scenarios. Plus many examples...
Many users want to print information from your line of business (LOB) application. This post covers the simple case where the user wants to print a copy of what they see on the screen. But instead of putting the print code in the code behind file, it...
There is so much to know these days with all of the new technologies, techniques, and tools in Visual Studio and the .NET framework. How do you even decide which technologies deserve your attention and which you can "give a miss"? One of the...
2 comment(s)
Filed under: , , , ,
This prior post introduced commanding in Silverlight for use with MVVM. However, the built-in Silverlight commanding only works for controls that inherit from ButtonBase, such as Button and HyperlinkButton. This post provides information on implementing...
As you build your line of business (LOB) applications, you will need to process commands. In many cases, these commands are executed when the user clicks a button. For example, when the user clicks the Save button, the code needs to process a Save "command"...
I was very honored to hear last week that I won one of the Microsoft MVP Forum awards for top answerers. With 2879 posts last year (2010), I was able to provide 1174 answers in the MSDN forums: http://social.msdn.microsoft.com/Forums/en-US/categories...
8 comment(s)
Filed under: , , , ,
As you start to add more Views and associated View/Models to your Silverlight line of business (LOB) application, you will notice that the classes include some common and repeated code. Building a simple base class for your View/Models provides a single...
This prior post covered the details of setting up a database, defining an entity model using Entity Framework, building WCF RIA Services to access that entity model, and hooking it all up to a Silverlight DataGrid. That is all well and good. But most...
One of the challenges of building a Silverlight line of business (LOB) application is getting the data from the business database. The business database resides on a server computer and the Silverlight application resides on each user's computer....
If you built a custom theme for your application (similar to this prior post ) then you may find that your chart legend contents disappear. NOTE: This post is part of a series that starts with this prior post . The example in this post uses the application...
Data visualization is often a requirement in today's line of business (LOB) applications. Plus charts are just more fun to look at than data grids. Silverlight provides many different types of charts you can use to display the data in your LOB application...
More Posts « Previous page - Next page »