This question is locked. New answers and comments are not allowed.
In my scenario, users are able to take & attach pictures to an object in the UI without ever saving back to the database. I want to display these images in a RadSlideView without having to save them to the database or Isolated Storage. Based on the ImageSource class, it looks like I should be able to do this, but nothing seems to work.
Unfortunately, nothing renders out. Any ideas?
void
photoChooserTask_Completed(
object
sender, PhotoResult e)
{
if
(e.TaskResult != TaskResult.OK) {
return
; }
byte
[] photoData =
new
byte
[e.ChosenPhoto.Length];
e.ChosenPhoto.Read(photoData, 0, photoData.Length);
BitmapImage image =
new
BitmapImage();
image.SetSource(e.ChosenPhoto);
ImageSource imageSource = image;
this
.slideView.DataContext = imageSource;
}
<
telerikPrimitives:RadSlideView
x:Name
=
"slideView"
Height
=
"200"
IsZoomedOut
=
"True"
Grid.Row
=
"8"
>
<
telerikPrimitives:RadSlideView.ItemTemplate
>
<
DataTemplate
>
<
Image
Source
=
"{Binding Source}"
/>
</
DataTemplate
>
</
telerikPrimitives:RadSlideView.ItemTemplate
>
<
telerikPrimitives:RadSlideView.DataSource
>
<
telerikPrimitives:SlideViewPictureSource
ItemsSource
=
"{Binding}"
/>
</
telerikPrimitives:RadSlideView.DataSource
>
</
telerikPrimitives:RadSlideView
>
Unfortunately, nothing renders out. Any ideas?