How to get event of button inside stackpanel?very urgent....
-
I have a stackpanel having one image and one stackpanel having button control..... I want to do the same thing on StackPanel click as the button click which is the child of that stackpanel How can I do that....? I have wrote something on MouseLeftButtonDown event of stackpanel but not able to get the button name and content... Anyhow i need the button name and content inside the stackpanel on MouseLeftButtonDown event of that stackpanel... Can i get that? Please help me, its very urgent....
-
I have a stackpanel having one image and one stackpanel having button control..... I want to do the same thing on StackPanel click as the button click which is the child of that stackpanel How can I do that....? I have wrote something on MouseLeftButtonDown event of stackpanel but not able to get the button name and content... Anyhow i need the button name and content inside the stackpanel on MouseLeftButtonDown event of that stackpanel... Can i get that? Please help me, its very urgent....
salon wrote:
something on MouseLeftButtonDown event of stackpanel but not able to get the button name and content.
I'm not sure what you're asking here....if the button is a child of the stackpanel, and the button has a name, why are you unable to just use the button by name? Can you post a simple example of the xaml/code-behind involved to make it more clear? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
salon wrote:
something on MouseLeftButtonDown event of stackpanel but not able to get the button name and content.
I'm not sure what you're asking here....if the button is a child of the stackpanel, and the button has a name, why are you unable to just use the button by name? Can you post a simple example of the xaml/code-behind involved to make it more clear? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: