How to...

6 posts, 0 answers
  1. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 25 Feb 2011 Link to this post

    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>
  2. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 25 Feb 2011 Link to this post

    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); });
  3. DevCraft banner
  4. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 25 Feb 2011 Link to this post

    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;
    }

  5. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 25 Feb 2011 Link to this post

    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.
  6. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 25 Feb 2011 Link to this post

    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
  7. George
    Admin
    George avatar
    1332 posts

    Posted 02 Mar 2011 Link to this post

    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!
Back to Top
DevCraft banner