This question is locked. New answers and comments are not allowed.
I have a Coverflow control binded to basic Northwind category table with 8 images.
I have btyes[] text appear instead of image, I pass the binding thru a converter and the IE crashes on debugging
Please any thoughts?
my Ria Service Source
Converter
regards,
Rick
I have btyes[] text appear instead of image, I pass the binding thru a converter and the IE crashes on debugging
Please any thoughts?
<navigation:Page.Resources> <local:ImageConverter x:Key="ImgCon"/> </navigation:Page.Resources> <telerik:RadCoverFlow DisplayMemberPath="Picture" ItemsSource="{Binding ElementName=categoryDomainDataSource, Path=Data}" > <telerik:RadCoverFlow.ItemTemplate> <DataTemplate> <Border> <Image Source="{Binding Picture, Converter={StaticResource ImgCon}}" telerik:RadCoverFlow.EnableLoadNotification="True" /> </Border> </DataTemplate> </telerik:RadCoverFlow.ItemTemplate> </telerik:RadCoverFlow><riaControls:DomainDataSource AutoLoad="True" d:DesignData="{d:DesignInstance my1:Category, CreateList=true}" Height="0" LoadedData="categoryDomainDataSource_LoadedData" Name="categoryDomainDataSource" QueryName="GetCategoriesQuery" > <riaControls:DomainDataSource.DomainContext> <my1:RecipeContext /> </riaControls:DomainDataSource.DomainContext> </riaControls:DomainDataSource>public class ImageConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { BitmapImage bmi = new BitmapImage(); if (value != null) { byte[] byteBlob = value as byte[]; MemoryStream ms = new MemoryStream(byteBlob); bmi.SetSource(ms); } return bmi; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } }Rick