LayoutChangeState not working

5 posts, 1 answers
  1. SPARE GmbH
    SPARE GmbH avatar
    18 posts
    Member since:
    Mar 2012

    Posted 05 Apr 2012 Link to this post

    Hy,

    I Hooked up the RadTileView with the Events LayoutChangeStarted(Animation Beginn) and LayoutChangeEnded(Animation End),
    but they are not fired, even i Maximize a TileViewItem.

    Wha'ts  wrong?

    Greetings

    Alfred
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 06 Apr 2012 Link to this post

    Hi Alfred,
    The LayoutChangeStarted and LayoutChangeEnded events are obsoleted and that's why they are not fired. Instead (in most cases) you can use the PreviewTilesStateChanged, PreviewTilePositionChanged, TilesStateChanged and TilePositionChanged events. Also there's a feature request for new more accurate animation events in our PITS here.
    If you tell us what exactly is your case we'll help you find the right events for it.
    We are looking forward to hearing from you.

    Regards,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. SPARE GmbH
    SPARE GmbH avatar
    18 posts
    Member since:
    Mar 2012

    Posted 10 Apr 2012 Link to this post

    Hy Zarko,

    Thanks for your Answer.
    I have te following Scenario.

    I have n Number of TileViewItem in my TileViewControl. Each Item, has a Instance of a PDF inside. Each PDF Instance load a different PDF File. I i have 10 Item's in Normal Mode all PDFViewer Renders fast, but if I Maximize or Minimize one, the Animation is getting pretty slow, because all PDF Instance would be Minimized to. If i would have an Event, witch is triggert after the Maximized Animation is done, i can Display the PDFInstance of the Mazimixed Item after that.

    That is the Reason, why i need a Event, witch is firred after the Minimized Animation is done.

    Greetings

    Aflred
  5. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 13 Apr 2012 Link to this post

    Hello Alfred,
    If I understand you correctly you want to hide the PDFs before the resize animation and show them again after it? If this is the case you'll have to use the PreviewTileStateChanged(or TileStateChanged) event and a dispatcher timer.
    I've attached a sample project that shows how you can do this so could you please examine it and if you have further questions please feel free to ask.

    Regards,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. SPARE GmbH
    SPARE GmbH avatar
    18 posts
    Member since:
    Mar 2012

    Posted 13 Apr 2012 Link to this post

    Hy Zarko,

    Thanks for your Answer.
    You are my Hero. :)
    That was exactly the Workaround that i was looking for.
    Cool thank you.

    Greetings from Switzerland

    Alfred
Back to Top
UI for WPF is Visual Studio 2017 Ready