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. Animated button in WPF

Animated button in WPF

Scheduled Pinned Locked Moved WPF
wpfcsharphtmlvisual-studiocom
4 Posts 2 Posters 4 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.
  • P Offline
    P Offline
    Pawel Gielmuda
    wrote on last edited by
    #1

    Hello everyone :) I have following code as you can see in next post(I need to turn off HTML tags to paste XAML :sigh: ) With looks like this picture[^] So the question is why where I put mouse cursor over the button it changes to normal winform apperance. When I move it out it's working again :omg: Thanks for the replay

    P 1 Reply Last reply
    0
    • P Pawel Gielmuda

      Hello everyone :) I have following code as you can see in next post(I need to turn off HTML tags to paste XAML :sigh: ) With looks like this picture[^] So the question is why where I put mouse cursor over the button it changes to normal winform apperance. When I move it out it's working again :omg: Thanks for the replay

      P Offline
      P Offline
      Pawel Gielmuda
      wrote on last edited by
      #2

      Here is the code Abscdef

      N 1 Reply Last reply
      0
      • P Pawel Gielmuda

        Here is the code Abscdef

        N Offline
        N Offline
        newc1
        wrote on last edited by
        #3

        Hi, This behaviour is being caused by the default behaviour of the button ContentTemplate. You will need to define a new ContentTemplate for your button by using a ResourceDictionary and build the required elements as part of the new template. From the new template definition you will also be able to specify any mouse or keyboard related events that require animation. See below for further information: http://msdn2.microsoft.com/en-us/library/ms771597.aspx Hope this helps...

        Clean code is the key to happiness.

        P 1 Reply Last reply
        0
        • N newc1

          Hi, This behaviour is being caused by the default behaviour of the button ContentTemplate. You will need to define a new ContentTemplate for your button by using a ResourceDictionary and build the required elements as part of the new template. From the new template definition you will also be able to specify any mouse or keyboard related events that require animation. See below for further information: http://msdn2.microsoft.com/en-us/library/ms771597.aspx Hope this helps...

          Clean code is the key to happiness.

          P Offline
          P Offline
          Pawel Gielmuda
          wrote on last edited by
          #4

          Thanks I'll look at this :)

          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