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. C#
  4. wpf c# event handler

wpf c# event handler

Scheduled Pinned Locked Moved C#
csharpquestionwpf
4 Posts 2 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.
  • A Offline
    A Offline
    angels777
    wrote on last edited by
    #1

    hi.. if i create project using wpf.. drag a button into the form.. how do i get to the event for the button_click ? i cant double click tat...

    U 1 Reply Last reply
    0
    • A angels777

      hi.. if i create project using wpf.. drag a button into the form.. how do i get to the event for the button_click ? i cant double click tat...

      U Offline
      U Offline
      Ujjaval Modi
      wrote on last edited by
      #2

      Hi, You can just add eventhandler for the button in code-behind file as follows : button1.Click += new RoutedEventHandler(button1_Click);

      Regards, Ujjaval Modi

      A 1 Reply Last reply
      0
      • U Ujjaval Modi

        Hi, You can just add eventhandler for the button in code-behind file as follows : button1.Click += new RoutedEventHandler(button1_Click);

        Regards, Ujjaval Modi

        A Offline
        A Offline
        angels777
        wrote on last edited by
        #3

        where is the code behind the file? where to put the code? wht i was forced to do is open the blend.. and get click on the event button click to show the code.. hahaha

        A 1 Reply Last reply
        0
        • A angels777

          where is the code behind the file? where to put the code? wht i was forced to do is open the blend.. and get click on the event button click to show the code.. hahaha

          A Offline
          A Offline
          angels777
          wrote on last edited by
          #4

          anyone?

          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