LocalizationLibrary 1.0 Beta Released!

3 05 2011

Today I have released the LocalizationLibrary beta 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

Advertisements




Silverlight Spy

12 03 2011

If you need to inspect and/or debug your Silverlight applications then you can have a look to Silverlight Spy.SilverlightSPY





Using the SaveFileDialog: "Dialogs must be user-initiated" exception

12 03 2011

Using the SaveFileDialog in Silveright a Security Exception (“Dialogs must be user-inititated”) could be thrown.

This exception is thrown when there is a long-running operation preceding a call to ShowDialog of the SaveFileDialog instance. For example if it is preceded by either a Thread.Sleep or a break point.

In this case, you have to remove the long-running operation preceding the call and it’ll work fine.





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 😀





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();
          }
        }
      }
    }
  }
}