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. .NET (Core and Framework)
  4. WPF Button Binding

WPF Button Binding

Scheduled Pinned Locked Moved .NET (Core and Framework)
wpfcsharpdatabasewcfarchitecture
2 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.
  • S Offline
    S Offline
    Shrimpersfan
    wrote on last edited by
    #1

    Good afternoon Wasn't sure if this should be in another section but couldn't find one for WPF so stuck it here. Here goes... I'm developing an application using MVVM. I need to save some info into a DB using the child_insert on my Model object. I have the button on my View and am wondering how I would bind this to my child_insert method, obviously you cannot bind a button to a method so would I need a command property on my VM and then bind to that? There is probably something quite simple I'm missing but I'm having a brain fart this afternoon and am at the stage of staring at my code with a blank expression. Thanks in advance.

    N 1 Reply Last reply
    0
    • S Shrimpersfan

      Good afternoon Wasn't sure if this should be in another section but couldn't find one for WPF so stuck it here. Here goes... I'm developing an application using MVVM. I need to save some info into a DB using the child_insert on my Model object. I have the button on my View and am wondering how I would bind this to my child_insert method, obviously you cannot bind a button to a method so would I need a command property on my VM and then bind to that? There is probably something quite simple I'm missing but I'm having a brain fart this afternoon and am at the stage of staring at my code with a blank expression. Thanks in advance.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Shrimpersfan wrote:

      couldn't find one for WPF

      You mean you didn't see Silverlight / WPF :confused:


      I know the language. I've read a book. - _Madmatt

      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