Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WPF animation and performance

WPF animation and performance

Scheduled Pinned Locked Moved WPF
helpcsharpasp-netwpfdebugging
2 Posts 2 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    koleraba
    wrote on last edited by
    #1

    Hi everybody! I am using DoubleAnimation to move some controls into view. Simplified structure of my window is as follows(I replaced smaller then with '[', and bigger than with ']': [StackPanel] [Canvas ClipToBounds="true"] [Border] [Panel] [/Panel] [More elements ... /] [/Border] [Border] [Panel] [/Panel] [/Border] ... [/Canvas] [/StackPanel] With the animation I am animating the Canvas.Top property of Border instance. While the animation is running Border element is visible, but the panel isnide the border has its Opacity property set to 0. The problem is that the animation is not running smoothly. Would it help if I set the visibility property of the panel to Visiblity.Collapsed or Visibility.Hidden. Could the reason for poor performance be that I am running in debug mode of VS2008?(For some reason I cannot switch to release mode). The application is running on Intel core 2 duo 1.83GHz cpu, and ATI mobility radeon X1600. Any advice will be welcome. Thanks in advance, Uros

    L 1 Reply Last reply
    0
    • K koleraba

      Hi everybody! I am using DoubleAnimation to move some controls into view. Simplified structure of my window is as follows(I replaced smaller then with '[', and bigger than with ']': [StackPanel] [Canvas ClipToBounds="true"] [Border] [Panel] [/Panel] [More elements ... /] [/Border] [Border] [Panel] [/Panel] [/Border] ... [/Canvas] [/StackPanel] With the animation I am animating the Canvas.Top property of Border instance. While the animation is running Border element is visible, but the panel isnide the border has its Opacity property set to 0. The problem is that the animation is not running smoothly. Would it help if I set the visibility property of the panel to Visiblity.Collapsed or Visibility.Hidden. Could the reason for poor performance be that I am running in debug mode of VS2008?(For some reason I cannot switch to release mode). The application is running on Intel core 2 duo 1.83GHz cpu, and ATI mobility radeon X1600. Any advice will be welcome. Thanks in advance, Uros

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Uros, give this a try and post the results. Change the Opacity of all controls to 100%. Ensure that you are not using any BitMapEffects and lets us know how the animation works.

      Cheers, Karl » CodeProject 2008 MVP » Microsoft MVP - Client App Dev My Blog | Mole's Home Page | MVP Profile

      Just a grain of sand on the worlds beaches.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups