Silverlight: Performance Tuning Your Apps

17 01 2011

Application performance is one of my preferred subjects. If you are interested in this hot subject then I suggest you to watch this interesting show on Silverlight TV: Performance Tuning Your Apps 😀

Advertisements




LocalizationLibrary 1.0 Alpha Released!

16 01 2011

Today I have released the LocalizationLibrary alpha release. 😀

LocalizationLibrary web site: localizationlibrary.codeplex.com

Overview
This release aims .net 3.5, Silverlight 3.0 and Window Phone 7. You can find all the compiled assemblies in the BIN folder, whilst if you are looking for examples about how to use the LocalizationLibrary you can find them in the Quickstart folder.

Prerequisites

  • Microsoft Visual Studio 2010 Professional, Premium, or Ultimate edition
  • Microsoft .NET Framework 4.0 (installed with Visual Studio 2010)
  • Silverlight Tools for Visual Studio 2010 (required for Silverlight development; includes the developer Silverlight runtime)
  • Windows Phone Developer Tools SDK (for development with the Windows Phone 7)
  • Optional tools:
    • Expression Blend 4





Forcing the binding expression updating

31 12 2010

If you need to force the binding expression updating, defined on a Silverlight control, you can use the following code.

public static void UpdateBindingExpressions(Control control)
{
  if (control != null)
  {
    Type controlType = control.GetType();
    FieldInfo[] fieldsInfo = controlType.GetFields(BindingFlags.Public | BindingFlags.Static);
    if (fieldsInfo != null)
    {
      foreach (FieldInfo fieldInfo in fieldsInfo)
      {
        DependencyProperty depProp = fieldInfo.GetValue(null) as DependencyProperty;
        if (depProp != null)
        {
          BindingExpression bindingExpression = control.GetBindingExpression(depProp);
          if (bindingExpression != null)
          {
            bindingExpression.UpdateSource();
          }
        }
      }
    }
  }
}




Pack URIs in WPF

31 12 2010

If you are looking for Pack URIs in Windows Presentation Foundation you can read this article.






Hello world!

31 12 2010

Welcome to DotNetSlang.