This is a migrated thread and some comments may be shown as answers.

How to...

5 Answers 88 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Marc Roussel
Top achievements
Rank 2
Marc Roussel asked on 25 Feb 2011, 11:48 AM
Hi,

I have this code and My image doesn't appear.  Do you know what I'm doing wrong ?


<Image x:Name="BigImage" Grid.Row="1" Margin="0" RenderTransformOrigin="0.5,0.5"/>
<telerik:RadTransitionControl Grid.Column="1" Content="{Binding Source, ElementName=BigImage}">
   <telerik:RadTransitionControl.Transition>
       <telerikTransitions:MotionBlurredZoomTransition Center="0.5,0.5"
                                                       InBlurRatio="0.3"
                                                       OutBlurRatio="-0.3"
                                                       Samples="7" />
   </telerik:RadTransitionControl.Transition>
</telerik:RadTransitionControl>

5 Answers, 1 is accepted

Sort by
0
Marc Roussel
Top achievements
Rank 2
answered on 25 Feb 2011, 11:51 AM

I'm setting the source of the image here in the OpenReadCompleted of a WebClient


private void ImageDownloader_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
    lblWait.SetValue(Canvas.ZIndexProperty, int.Parse(BigImage.GetValue(Canvas.ZIndexProperty).ToString()) - 1);
    lblWait.Visibility = Visibility.Collapsed;
    BitmapImage bi = new BitmapImage();
    bi.SetSource(e.Result);
    BigImage.Source = bi;
    BrowseLeft.Visibility = Visibility.Visible;
    BrowseRight.Visibility = Visibility.Visible;
    //this.Dispatcher.BeginInvoke(() => { VisualStateManager.GoToState(this, "ShowNewImage", true); });
0
Marc Roussel
Top achievements
Rank 2
answered on 25 Feb 2011, 11:55 AM
I tried this with no result :

private void ImageDownloader_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
    lblWait.SetValue(Canvas.ZIndexProperty, int.Parse(BigImage.GetValue(Canvas.ZIndexProperty).ToString()) - 1);
    lblWait.Visibility = Visibility.Collapsed;
      
    this.Dispatcher.BeginInvoke(() =>
    {
        BitmapImage bi = new BitmapImage();
        bi.SetSource(e.Result);
        BigImage.Source = bi;
    });
  
    BrowseLeft.Visibility = Visibility.Visible;
    BrowseRight.Visibility = Visibility.Visible;
}

0
Marc Roussel
Top achievements
Rank 2
answered on 25 Feb 2011, 12:12 PM
Ok I found why the image wasn't appearing but now that it appears, I do not see any transitions.
The transitions doesn't seem to work.
0
Marc Roussel
Top achievements
Rank 2
answered on 25 Feb 2011, 12:15 PM
You can try here when chosing a small image and by clicking on the eye.  The BIG image that appears have transitions but it doesn't seem to work.

Example
0
George
Telerik team
answered on 02 Mar 2011, 02:26 PM
Hello Marc,

 
Unfortunately, I am not able to download your example. Could you please attached the project in a support ticket? 

I am glad to assist you further.

All the best,
George
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TransitionControl
Asked by
Marc Roussel
Top achievements
Rank 2
Answers by
Marc Roussel
Top achievements
Rank 2
George
Telerik team
Share this question
or