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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. WPF
  4. WPF event binding

WPF event binding

Scheduled Pinned Locked Moved WPF
wpfcsharpwcftutorial
5 Posts 3 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.
  • T Offline
    T Offline
    thangavel1987
    wrote on last edited by
    #1

    how to bind a event to my data context class Is this correct

    G I 2 Replies Last reply
    0
    • T thangavel1987

      how to bind a event to my data context class Is this correct

      G Offline
      G Offline
      GomathiR
      wrote on last edited by
      #2

      I think u want to have some value in label when mouse is down. If so then call a method on MouseDown event and assign the value to the label as LABE.Text=value

      Gomathi R

      T 1 Reply Last reply
      0
      • G GomathiR

        I think u want to have some value in label when mouse is down. If so then call a method on MouseDown event and assign the value to the label as LABE.Text=value

        Gomathi R

        T Offline
        T Offline
        thangavel1987
        wrote on last edited by
        #3

        i am asking about binding with an function I am writing an function mouse_down in a class and i have to bind the function with this xAML code can i do this

        G 1 Reply Last reply
        0
        • T thangavel1987

          i am asking about binding with an function I am writing an function mouse_down in a class and i have to bind the function with this xAML code can i do this

          G Offline
          G Offline
          GomathiR
          wrote on last edited by
          #4

          Can u explain me clearly. By finding a function means ,what value you are going to bind?

          Gomathi R

          1 Reply Last reply
          0
          • T thangavel1987

            how to bind a event to my data context class Is this correct

            I Offline
            I Offline
            Ian Shlasko
            wrote on last edited by
            #5

            Actually, it's easier than that. No need for binding here. To make it even easier, once you enter the name of the event handler, you can right-click on it and pick "Navigate to Event Handler". It'll automatically create the function if it doesn't already exist.

            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