CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 20

Thread: Storyboard

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Storyboard

    hi All,

    Simple quest, why does this -- see below-- not work.
    It starts the storyboard in window_activated.
    But it does not stop it in deactivated.

    Code:
            Storyboard board;
            		
            public MainWindow()
            {
                InitializeComponent();
                board = (Storyboard)TryFindResource("Storyboard1");
            }
    
            private void window1_Activated(object sender, EventArgs e)
            {
                this.Right = this.Left + this.ActualWidth;
                this.Bottom = this.Top + this.ActualHeight;
    
                board.Begin(this);
            }
    
            private void window1_Deactivated(object sender, EventArgs e)
            {
                board.Stop(this);
            }
    regards,

    Ger

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Storyboard

    Starting with the basics, are you sure that xxx_Deactivate method is getting called?

  3. #3
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Re: Storyboard

    @Arjay,

    Yep!
    I put a debug breakpoint in the method to check if it will be called.

    regards,

    Ger

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Storyboard

    What version of .Net are you using and which (namespace) of StoryBoard?

    Also, do you have a sample app you can zip and attach?

  5. #5
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Re: Storyboard

    @Arjay,

    Here you go !!

    regards,

    G.
    Last edited by TBBW; September 30th, 2013 at 08:30 AM.

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Storyboard

    My SmartScreen filter told me the rar file is unsafe to download.

  7. #7
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Re: Storyboard

    @Arjay,

    Uploaded the attached file again.
    see above.
    Find it strange, there is nothing suspicious in it ....


    Let me know if things go wrong !!

    Regards,


    G.

  8. #8
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Storyboard

    Still can't open it. Can you zip it?

  9. #9
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Re: Storyboard

    Here is the zipper !!

    regards,

    Ger

  10. #10
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Re: Storyboard

    here is the project in rar with password
    hope this will work
    password: gerwin

    regards,

    G

  11. #11
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Re: Storyboard

    under a diff name....

  12. #12
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Re: Storyboard

    Aaaaaaargggghhhh


    G.

  13. #13
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Re: Storyboard

    one more time...

  14. #14
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    201

    Re: Storyboard

    via PM?

  15. #15
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Storyboard

    Trying on a different computer. Where is the zip file?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured