Avoid showing of a canvas in TabNavigator while playing effect?

Hello,
I´m using the great distorsion effect of Alex Uhlmann (part of Tour de Flex) in a TabNavigator with Canvas containers. The effect works fine but while fireing the IndexChangedEvent by pressing a tabsheet for a blink of an eye the target-canvas gets visible before the effect should make it visible which is very annoying.
As you can see in the Code-Snippet
The function  playrotate() which is called in the EventHandler only set the right parameters for the CubeRotator method, which create an effectinstance and playing the effect.
public  
function ChangeListener(e:IndexChangedEvent):void{oldI = e.oldIndex;
newI = e.newIndex;
playrotate();
private function CubeRotator(DC:String, oldI:int, newI:int):void{  
var cr:CubeRotate = newCubeRotate( navtab.getChildAt(oldI) );cr.siblings = [ navtab.getChildAt(newI) ];
if( DC == DistortionConstants.LEFT ){cr.direction = DistortionConstants.LEFT;
else{cr.direction = DistortionConstants.RIGHT;
cr.horizontalLightingLocation = DistortionConstants.LEFT;
cr.duration = 1000;
cr.distortion = 40;
cr.play();
If somebody has an idea how to avoid this behaviour it would be great.
Thanks to everybody answering

Well for what it's worth...
I agree that it's a bad idea using a canvas like that.
Check this out:
http://social.technet.microsoft.com/wiki/contents/articles/29777.wpf-property-list-editing.aspx
Baically, it puts your label and edit controls into a collection of contentontrols presented by a listbox of itemscontrol.
<ListBox HorizontalContentAlignment="Stretch" Background="AliceBlue">
<ListBox.Resources>
<Style TargetType="{x:Type TextBox}">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
</Style>
</ListBox.Resources>
<local:EditRow LabelFor="Label for property One:" >
<TextBox Text="aaaa"/>
</local:EditRow>
<local:EditRow LabelFor="Label for Property Two:">
<TextBox Text="bbbb"/>
</local:EditRow>
<local:EditRow LabelFor="Label for Property Three:">
<DatePicker/>
</local:EditRow>
<local:EditRow LabelFor="Label for Property Four:">
<TextBox Text="dddddd"/>
</local:EditRow>
<local:EditRow LabelFor="Label for Property Five:">
<TextBox Text="eeee"/>
</local:EditRow>
<local:EditRow LabelFor="Label for Property Six:">
<TextBox Text="fffffff"/>
</local:EditRow>
<local:EditRow LabelFor="Label for Property Seven:">
<TextBox Text="ggggg"/>
</local:EditRow>
<local:EditRow LabelFor="Label for Property Eight:">
<TextBox Text="hhhhhhhhhhh"/>
</local:EditRow>
</ListBox>
Listbox has a scrollbar for zero effort and there's no messing about working out all the positioning of each control.
Because editrow is a contentcontrol you can put any old control in it - textbox, passwordbox.... whatever you like.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML

Similar Messages

  • New tabs are not updating the names of the sites they have loaded. When I open a new tab and load a site, the tab simply stays named "New Tab". When I open a link in a new window, it shows "Connecting..." even while its fully loaded.

    New tabs are not updating the names of the sites they have loaded. When I open a new tab and load a site, the tab simply stays named "New Tab". When I open a link in a new window, it shows "Connecting..." even while its fully loaded.

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]

  • HELP! Downloaded LR5 and when open it shows an error message saying error while trying to change from modules and I can not even import photos. Am I doing something wrong?

    HELP! Downloaded LR5 and when open it shows an error message saying error while trying to change from modules and I can not even import photos. Am I doing something wrong?

    I have the same problem, and the solutions in   Error changing modules | Lightroom do not work.  Even uninstalling and reinstalling a new copy did not solve the problem.  As anyone got an idea what other lingering files might be causing the problem?

  • When i want to go another from a tab,it shows firefox not responding, for a while then opens that tab!this is embarrassing me a lot by taking so much time!!why

    I have two inconviniences with fire fox..
    1)when i want to go another from a tab,it shows firefox not responding, for a while then opens that tab!this is embarrassing me a lot by taking so much time!!why it happens?
    2) every time when adobe flash player is updated, it shows flash player can't be installed and it crashes! it says 'disable real player' though i never installed real player!!
    plz Let me know why it happens to me????

    1. Update firefox to the latest version 2. and disable real player in menu->addons->plugins.
    Recent crashes of certain multimedia contents (this includes Youtube videos, certain flash games and other applications) in conjunction with Firefox 13 are most probably caused by a recent Flash 11.3 update and/or a malfunctioning Real Player browser plugin.
    In order to remedy the problem, please perform the steps mentioned in these Knowledge Base articles:
    [[Flash Plugin - Keep it up to date and troubleshoot problems]]
    [[Flash 11.3 crashes]]
    [[Flash 11.3 doesn't load video in Firefox]]
    Other, more technical information about these issues can be found under these Links:
    http://forums.adobe.com/thread/1018071?tstart=0
    http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html
    Please tell us if this helped!
    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • HT201263 my ipad 2 3G crashed while playing an HD movie on iOS 7.1, then it enter into rcovery mode, i tried itunes restore and it fails showing unknown error (27), i retried for about 100 times with no benefit.... any ideas or help please

    my ipad 2 3G crashed while playing an HD movie on iOS 7.1, then it enter into recovery mode, i tried itunes restore and it fails showing unknown error (27), i retried for about 100 times with no benefit.... any ideas or help please???

    By the way, i am using Windows 7 x64 and updated itunes

  • While playing games like NFS and CounterStrike my macbook pro it does connects to the hotspot by any device either a Windows laptop, but doesn't show or connect to the server (LAN) created by windows player.Or neither connects to the server that i created

    While playing games like NFS and CounterStrike my macbook pro it does connects to the hotspot by any device either a Windows laptop, but doesn't show or connect to the server (LAN) created by windows player. Or, any other devices doesn't  connects to the LAN server that i created in the Game.     
    Could any one help me please.

    Please do not post more than about 50 lines of console logs or output from an Application crash at a time. No one can make it through those.
    If you had a kernel panic, those are Full of good information and should be posted in their entirety. They are stored, and can be read back and posted using this article:
    How to log a kernel panic

  • How do I force smart mailbox to only show me mail from one mailbox while also showing multiple senders?

    How do I force smart mailbox to only show me mail from one mailbox while also showing multiple senders?

    It would help to post what you've tried. It does, indeed, appear that -h is the switch, and the man includes several examples, so if you've followed the examples and it's not working then that hints that you should pass it back to Apple.
    You also don't say how you're implementing your change. Are you invoking slapd manually, or are you editing /System/Library/LaunchDaemons/org.openldap.slapd.plist ?
    You should be doing the latter, and I'd expect to see something like this:
    <array>
      <string>/usr/libexec/slapd</string>
      <string>-d</string>
      <string>0</string>
      <string>-h</string>
      <string>ldap://x.x.x.20/ ldap://127.0.0.1/ ldapi://%2Fvar%2Frun%2Fldapi</string>
    </array>
    (note the inclusion of ldap://127.0.0.1/ as an entry - you'll need to run on localhost as well the .20 address since all the local services will look to localhost)
    You might also need an ldaps URL if you're using SSL but let's walk before we try to run

  • 'Application Error' showing while playing games in...

    I downloaded a couple of games for my Nokia C3.But while playing for sometime it showed an error 'Application Error' and then exited.In the details it showed Out Of Memory.I cant really figure out why this is happening.
    I tried a couple of games specially those having size of 900kb and above.

    Hi sidd913,
    Thanks for your post and welcome to the forum/
    Your phone is most likely running out of memory which is why this message shows up. The easiest way to create more memory is to hard reset the phone, this will delete all unnecessary files on your phone and creates more space for applications.
    Connect your phone to Nokia Suite and create a back up of the data you'd like to keep via Tools > Back up. Make sure you don't tick the Settings box. Once the back up has been created, disconnect your phone from Nokia Suite and enter *#7370# into your phone and default security code 12345, unless you've changed this code yourself.
    When the phone has rebooted, reconnect with Nokia Suite and restore the back up you've created via Tools > Restore. The error will now not appear anymore.
    If you've happened to lose some applications you can redownload them in the Nokia Store under the My Stuff section. When you've paid for applications and you've lost them, please contact your local Care line who will be able to resend the applications to your phone without any charge for you. All you need is your IMEI, which you can find by entering *#06# into your phone.
    Iris9290
    If my post has helped you in any way, please accept it as a solution or click on the white star, so that other users will be able to benefit from it too.

  • I have recently upgraded to ios 7 on my iphone. I am currently at 7.0.2 which i installed yesterday. Now i notice that the keypad doesnt appear in any function under Phone. Keypad doesnt show up in contact search, or while adding new contacts or editing.

    I have recently upgraded to ios 7 on my iphone. I am currently at 7.0.2 which i installed yesterday. Now i notice that the keypad doesnt appear in any function under Phone. Keypad doesnt show up in contact search, or while adding new contacts or editing the existing. This is irritting.

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • Recently I purchased a tv show on iTunes when playing it through apple TV it constantly renders while playing

    Recently I purchased a tv show on iTunes, when playing it through apple TV it constantly renders while playing on the Samsung tv which takes forever too watch.
    Hope someone can advise if I am doing something wrong.
    My laptop is directly under the tv however my modum is in another room so it is operating through Wifi.
    Thank you

    Restart all devices and the router to see if it helps.  May or may not.
    If you Purchased in iTunes on the laptop ensure you are playing back on AppleTV via the Computers icon not under the main TV Shows icon which will reload from the web.
    I would move the laptop away from the TV in case it's causing interference to teh wifi though clearly an AppleTv might have the same issue but is designed to sit next to the TV.
    If you were playing via Computers and it's still slow you could connect an ethernet cable between AppleTv and laptop, keep wifi on the laptop for internet via the router, and enable intrenet sharing over ethernet in System Preferences > Sharing so AppleTV can do an internet authorisation.  Hopefully restarting iTunes/router will just do the trick though.
    Do you have any non-Apple security software eg NetBarrier, if so try disabling to see if it was detecting AppleTV as an intrusion threat due to multiple connection attempts.

  • TS1424 i downloaded a song and it shows the time length all to be correct but while playing the song will only play for about 30 seconds then skip to the next song in my list (all lists) - in short i payed for a song that is only of a preview quality

    i downloaded a song and it shows the time length all to be correct but while playing the song will only play for about 30 seconds then skip to the next song in my list (all lists) - in short i payed for a song that is only of a preview quality
    Either this needs to get fixed or i will request my money back because i will not work for my money while other lie about what i spend it on.

    Try deleting the problematic tune (electing to remove original file if/when prompted) and then re-downloading the file from the iTunes store.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option at the bottom of the screen of the iTunes app (or video app on your iOS device.
    If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.

  • Tried to open an app and my iPad gen one froze. It only shows the apple on black screen and will show the operating wheel sometimes and while plugged in it will beep every few minutes. Will not load one show anything on screen but the small white apple.

    Tried to open an app and my iPad gen one froze. It only shows the apple on black screen and will show the operating wheel sometimes and while plugged in it will beep every few minutes. Will not load one show anything on screen but the small white apple.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • TS4036 My icloud is showing a very old email address,while myitunes / appstore email is showing the new email address? How do i remove the old email address from icloud?

    My icloud is showing a very old email address,while myitunes / appstore email is showing the new email address? How do i remove the old email address from icloud?

    Welcome to the Apple community mohinderjeet.
    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple ID.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • My iphone4 disconnecting calls after 3 rings and show these calls as "missed calls" while the person who calls me still hear a dial ring. this started to happend after i upgraded to ios 7.0.4 please advise

    my iphone4 disconnecting calls after 3 rings and show these calls as "missed calls" while the person who calls me still hear a dial ring. this started to happend after i upgraded to ios 7.0.4 please advise
    this is really frustrating since i cant pick up calls with only 3 rings and i always miss them
    i tried to restore like 3-4 times, didnt help
    even tried to set the iphone as a "new iphone" on itunes and it didnt help

    Generally, when going out of the country and using a foreign SIM, carrier files can be changed. Go to Settings>General>About>and look at Carrier? What does it say? You may have to perform a restore. You can try a restore from a backup, that would reinstall the iOS, and would provide the latest AT&T carrier file as well. See if this will fix the problem.

  • Show bars while playing songs on video ipod

    is it possible to see the sounds bars..on ur ipod screen while playing songs on it?

    you mean like an Equalizer? I don't think so, never heard or seen this. You can try searching for that on the web though, see what you can find.

Maybe you are looking for