# Tuesday, July 06, 2010

If you've Firefox 3.6.4 or above installed on your computer and if you use it as your default browser, you'll probably meet some problems while trying to debug a Silverlight application in Visual Studio.

The Mozilla team has changed security settings for plugins.

I found the solution in the Silverlight forum (Thanks to MisterGoodcat!).

Here is what you to do :

  • Type "about:config" into Firefox address bar
  • Accept the warning (if applicable)
  • Search for the entry "dom.ipc.plugins.enabled.npctrl.dll"
  • Change its value from "true" to "false" (by double-clicking it)
  • Restart the browser
Tuesday, July 06, 2010 12:24:16 PM (Romance Daylight Time, UTC+02:00)
# Sunday, May 02, 2010

The new Enterprise Library 5.0 was launched a few days before and I decided to use this new version in my projects. One of the main application block I'm using is the Logging Application Block.

I went to use it in a WCF Service Library into Visual Studio 2010. Everything was fine until I decided to use a Database Trace Listener. Of course, I referenced the Microsoft.Practices.EnterpriseLibrary.Logging.Database in my project. But it always failed to run with this message:

"Invalid TraceListenerData type in configuration 'listenerDataType=\"Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\"'."

Finally, I found that you need to work with the .NET 4.0 Full Framework and not only the Client Profile. Some assemblies are needed by the Database Trace Listener that are not present in the Client Profile (to learn more about the differences between the Full Framework and the Client profile, go here).

So, just target your project to the .NET Framework 4 and everything will be fine.

Sunday, May 02, 2010 9:58:27 PM (Romance Daylight Time, UTC+02:00)
# Wednesday, April 28, 2010

Imagine this simple custom list created in Sharepoint 2010 :

If you want to add an item to this list, here is the dialog that will be shown:

To easily customize this form:

Go in the List Tools > List in the Ribbon:

You can then choose the « Customize Form » icon :

Or, if you go in the Library Settings, you can use the "Form Settings" link.

Infopath will open with the form you asked to customize.

Here is my customisation (I will probably isn't it ?)

Now, when you create or edit an item in the list, here is the form that will be shown :

And if you browse your list in Sharepoint Designer 2010, you will find the template.xsn in the Item folder of your list.

Wednesday, April 28, 2010 10:00:04 PM (Romance Daylight Time, UTC+02:00)
# Tuesday, April 06, 2010

Element to element binding was new with Silverlight 3.0.

To know more about it, I invite you to read this post from Jeff Prosise.

Some improvements are made in Blend 4 Beta and Visual Studio 2010 RC to improve your everyday work on this point.

The old way (Blend 3.0/Visual Studio 2008)

Suppose that you want to bind the value of a Slider to a TextBlock text :

In Blend 3.0, you must select the TextBlock, go into the common properties, select the Text property and the Data Binding in the contextual menu :

Once this is made, you must select the Element Property, browse the three to find the element and the property to bind to.

In Visual Studio 2008, there was nothing to help you to generate this simple XAML piece:

<TextBlock Height="32" Margin="8,0,12,8" VerticalAlignment="Bottom" Text="{Binding Value, ElementName=slider, Mode=OneWay}" TextWrapping="Wrap"/>

The new way (Blend 4.0 beta/VS 2010 RC)

In Blend 4.0, you still have the same option. But you also have a more friendly option with the new "Element Property Binding" option.

Choosing that item, you only have to select the element you want to bind to with your mouse :

A new dialog then opens to ask you which property you want to bind to :

In Visual Studio 2010 RC, you also now have now the option to work with the properties window to do the same thing.

Go to the Text property in the Properties window. Click on the small Value Source icon :

Select "Apply Data Binding"

In the dialog that appears, select an ElementName source, choose the slider :

Then in the Path, choose the property you want to bind to :

Tuesday, April 06, 2010 10:57:17 PM (Romance Daylight Time, UTC+02:00)