Monthly Archives: August 2010

Silverlight XAML Designer– Making files open faster in Visual Studio 2010

This little tip is probably all over the place, but just in case: When you open a xaml file, the Visual Studio 2010 designer is also loaded, which can take significant time. If all you’re doing is messing with the … Continue reading

Posted in Development | Tagged | 3 Comments

Passing Values between Pages in a Silverlight 4 Navigation Application

Often you’ll want to pass selected values from one page in a Silverlight 4 application to another. Query Strings are a valid approach, but you might want to pass more than simple strings or IDs in the URL. This quick … Continue reading

Posted in Development | Tagged | 11 Comments

Silverlight Resources

Defining Resources In Silverlight you can define resources, which will be available to the rest of the application.  You can define these resources at the top of your user controls, in your pages, App.xaml, or in separate ResourceDictionaries. App.xaml is … Continue reading

Posted in Development | Tagged | Leave a comment

Displaying the Assembly Version # from a Silverlight 4 App

Assembly assembly = Assembly.GetExecutingAssembly(); String version = assembly.FullName.Split(‘,’)[1]; String fullversion = version.Split(‘=’)[1]; int build = int.Parse(fullversion.Split(‘.’)[2]); int revision = int.Parse(fullversion.Split(‘.’)[3]); DateTime buildDate = new DateTime(2000, 1, 1).AddDays(build).AddSeconds(revision * 2); String fulldate = buildDate.ToLocalTime().ToString(CultureInfo.InvariantCulture); txtAssemblyVersion.Text = fullversion + Environment.NewLine + buildDate.ToShortDateString() … Continue reading

Posted in Development | Tagged | 1 Comment