silverlight - Image control default image binding at XAML page when retrieve image url is empty -


Hi all Silverlight 4.0 on XML page (not using the back codes), I'm binding in image control.

I want to show the default image when retrival ImageUrl (from database) is empty or empty.

I am trying to targetNullValue as the following, but the default image is not showing when ImageUrl is empty or empty

  & lt; Image grid. Column = "0" x: name = "your aviator" width = "100" height = "100" source = "{binding path = image url, mode = oneway, target = = .. ..image / default_water.jpg}} "Stretch =" Fill "/>  

Please advise me.

Thank you.

I will do this using a converter:

  source = "{Binding path = image url, mode = one, converter = {static resource minimizeconverter}, converter PRMRAR = .. / images / My_ImageConverter, you see 'value', if it is empty then you can enter a URL New image sources receive back converter as the permutator. 


Comments