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. WCF and WF
  4. Problem with opacity property of grid

Problem with opacity property of grid

Scheduled Pinned Locked Moved WCF and WF
csshelp
2 Posts 1 Posters 0 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.
  • D Offline
    D Offline
    ddecoy
    wrote on last edited by
    #1

    When trying to animate the opacity property of a grid by doing.

    MainGrid.BeginAnimation(OpacityProperty,
    new DoubleAnimation(1.0, 0.2, new Duration(new TimeSpan(0, 0, 2))));

    The first time this runs the window freezes until I resize or minimize maximize the window and from then on the animation runs smoothly...also following animations run ok.Only the first time it hangs until a window resize Also with the storyboard object I get the same behavior... :doh:

    D 1 Reply Last reply
    0
    • D ddecoy

      When trying to animate the opacity property of a grid by doing.

      MainGrid.BeginAnimation(OpacityProperty,
      new DoubleAnimation(1.0, 0.2, new Duration(new TimeSpan(0, 0, 2))));

      The first time this runs the window freezes until I resize or minimize maximize the window and from then on the animation runs smoothly...also following animations run ok.Only the first time it hangs until a window resize Also with the storyboard object I get the same behavior... :doh:

      D Offline
      D Offline
      ddecoy
      wrote on last edited by
      #2

      This strange behavior is when :

      WindowState="Maximized"

      otherwise this works ok.

      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