Results 1 to 2 of 2

Thread: How to change level of objects in Silverlight 2

  1. #1

    How to change level of objects in Silverlight 2

    I am wondering if anyone might help me to find out on how I can change the level of the button on click/rollover. I have a set of buttons on stage and I scale each button on rollover. I need to make the active button to be on highest level because buttons on scale overlap each other. As a result, an enlarged button goes under the button which is on a higher layer. It doesn't look good. I also am wondering if it is the same technique to change levels with storyboards.

    Any advice is highly appreciated.
    Thanks.

  2. #2
    Hi vlad! Try altering the button's ZIndex via something like Canvas.SetZIndex(buttonName, 10); where buttonName is the name of your button and 10 is a number I picked for the z-index.

    Great, now even Kirupa is { facebooking | twittering }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012