Deborah's Developer MindScape

         Tips and Techniques for Web and .NET developers.

Archive for November, 2009

November 25, 2009

Silverlight and RIA: Adding a ComboBox to a DataForm

Filed under: ASP.NET RIA Services,C#,Silverlight,VB.NET @ 5:44 pm

Building a DataForm is quick and easy and is detailed in this prior post. Even customizing it is a breeze as was also shown in that prior post. But now the design calls for a ComboBox. Ready to walk off a cliff? It is surprisingly difficult to modify a DataForm to display a working ComboBox […]

Silverlight and RIA Services: Binding to a DataForm

Filed under: ASP.NET RIA Services,C#,Silverlight,VB.NET @ 4:24 pm

When building line of business (LOB) applications, a common feature is create, review, update, and delete (CRUD) operations on the data in the application. An easy way to provide this feature is using the Silverlight DataForm. [For an introduction to Silverlight and RIA Services, start here.] NOTE: The example used here is a continuation of […]

Silverlight and RIA Services: Managing Your Codes

Filed under: ASP.NET RIA Services,C#,Silverlight,VB.NET @ 1:15 pm

Every application has some type of codes: customer types, reason codes, states, and so on. Sometimes these codes can be hard-coded in an application as Enum values. But other times these codes are more readily stored in a table. This post details how to work with code tables through RIA Services. [For details on how […]

November 23, 2009

Silverlight: Building a Grid and StackPanel in Code

Filed under: C#,Silverlight,VB.NET @ 2:11 am

Many Silverlight examples show how to build controls with XAML. But XAML does not support programming logic. So sometimes you need to build the controls with real code in C# or VB. This example demonstrates how to build a Grid and StackPanel with Buttons first in XAML and then in C# and VB. It seems […]

November 17, 2009

Silverlight: No More Boxy UIs

Filed under: C#,Silverlight,VB.NET @ 5:11 pm

As WinForms and WebForms developers, we are used to building user interfaces (UIs) that look like this: Notice the rectangular header area and the rectangular link area and the rectangular data entry area. With Silverlight it is (relatively) easy to give the UI less of a boxy look: So the above UI may not be […]

November 13, 2009

Silverlight: Images

Filed under: C#,Silverlight,VB.NET @ 7:09 pm

I just needed to add a simple image to my Silverlight application to include a company logo. Three hours later … This post provides information on the image formats supported by Silverlight so that you don’t run into the same issues and waste as much time as I did today. [NOTE: To anyone on the […]

November 10, 2009

Silverlight and RIA: Enum Properties

Filed under: ASP.NET RIA Services,C#,Silverlight,VB.NET @ 2:58 pm

I mentioned in this prior post that RIA Services did not know how to handle properties that have an Enum data type. The problem is not really that RIA Services does not know how to handle the properties; rather it does not have any knowledge of the Enum itself. Take this example. In C#: public […]

Silverlight and RIA: Sharing Your Business Object Files

Filed under: ASP.NET RIA Services,C#,Silverlight,VB.NET @ 2:23 pm

So I have read in dozens of places that you can easily share a source code file between your business objects and your Silverlight project. So I thought I would try it. No go. [To begin with an overview of Silverlight, RIA, and your business objects, start here.] Supposedly, if you created a file in […]

Silverlight and RIA: Ignoring a Property in Your Business Object

Filed under: ASP.NET RIA Services,C#,Silverlight,VB.NET @ 1:22 pm

There may be times when you want RIA Services to ignore a property in your business object. This may be the case if you know you won’t ever need to access the property from your Silverlight UI or if you can’t make RIA services understand the property properly. [To begin with an overview of Silverlight, […]

November 9, 2009

Populating a TreeView Control from a List

Filed under: C#,VB.NET,WinForms @ 11:25 pm

This post details first how to build a list containing the data to display in a WinForms TreeView control. Then it demonstrates how to use recursion to populate the TreeView control from the list. [For information on populating a TreeView control from XML, see this link.] First, create a class that will store the data […]

Next Page »

© 2023 Deborah's Developer MindScape   Provided by WPMU DEV -The WordPress Experts   Hosted by Microsoft MVPs