Silverlight 3 DataForm Edit Pencil

Here’s a quick tip–if your Silverlight 3 DataForm is not dsplaying an Edit Pencil in the upper right corner, set the DataForm’s AutoEdit to false (or if using the Visual Studio or Expression Blend IDE, uncheck the AutoEdit checkbox). Best Regards,Kevin McNeishINETA SpeakerChief Architect MM .NET Application

Silverlight 3 and the Bindable Attribute

You may see a number of videos and sample code for Silverlight 3 that uses the Bindable  attribute to specifying editing features of an entity property when working with the Silverlight DataForm control. However, the Bindable attribute (as well as the System.ComponentModel assembly) were removed from Silverlight with the Silverlight 3 RTM. Now, if you want to specify if an entity property you are binding to should be readonly, set its Editable attribute like this:   [ Editable(false)]public DateTime BirthDate { get; set; } If you want to specify that a user interface control should not be automatically generated for … Continue reading Silverlight 3 and the Bindable Attribute

Don’t Miss the Silverlight Toolkit for Getting Additional Silverlight Mojo!

Regardless of whether you have installed Silverlight for VS 2008 or VS2010, you will want to install the additional Silverlight Toolkit: This toolkit gives you additional controls, components and utilities released outside the regular Silverlight release cycle. This is good news because Microsoft is releasing new Silverlight functionality iteratively. Rather than providing these controls with a “big bang” release, Microsoft is releasing them iteratively to get feedback from the developer community (can anyone say “user stories”) before officially including them in the product. These new controls are designated with different quality bands, indicating their level of maturity. This helps you decide whether … Continue reading Don’t Miss the Silverlight Toolkit for Getting Additional Silverlight Mojo!

Pixel Shaders and Silverlight, WPF

Recently, Silverlight 3 gained the ability to use custom pixel shaders as was already available in WPF. What exactly are custom pixel shaders? A shader is a set of software instructions executed on your computer’s Graphics Processing Unit (GPU) that performs complex per-pixel effects suh as applying a lighting value, bump mapping (a technique used to make a surface look more realistic by modeling interaction of a bumpy surface texture), shadows, highlights, translucency, and so on. Pixel shaders are not a part of Silverlight or WPF, but are a technology used with DirectX. You define pixel shaders using a programming language … Continue reading Pixel Shaders and Silverlight, WPF

Handling Trailing Spaces with VFP Data and ADO.NET

When working with Visual FoxPro data in ADO.NET, you may be surprised to see trailing spaces at the end of your character data. Visual FoxPro automatically trims these trailing spaces in BROWSE windows and when binding to user interface controls, but .NET does not. To address this issue, you can change your character fields to varchar fields (introduced in VFP 9.0). You can then write a quick utility to remove the trailing spaces from the character data. If you can’t remove the extra spaces due to requirements in your Visual FoxPro applications that are accessing the same data, you can … Continue reading Handling Trailing Spaces with VFP Data and ADO.NET