Click here to Skip to main content
15,886,518 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Is there a way to run wpfbrowser application in linux? Pin
Philipp Sumi9-May-09 0:47
Philipp Sumi9-May-09 0:47 
QuestionEvent Handling Pin
#realJSOP8-May-09 5:35
mve#realJSOP8-May-09 5:35 
AnswerRe: Event Handling Pin
Nish Nishant8-May-09 6:25
sitebuilderNish Nishant8-May-09 6:25 
GeneralRe: Event Handling Pin
#realJSOP8-May-09 6:30
mve#realJSOP8-May-09 6:30 
GeneralRe: Event Handling Pin
Nish Nishant8-May-09 6:53
sitebuilderNish Nishant8-May-09 6:53 
GeneralRe: Event Handling Pin
Mark Salsbery8-May-09 7:36
Mark Salsbery8-May-09 7:36 
GeneralRe: Event Handling Pin
#realJSOP8-May-09 10:54
mve#realJSOP8-May-09 10:54 
AnswerRe: Event Handling Pin
Philipp Sumi8-May-09 6:41
Philipp Sumi8-May-09 6:41 
Depends on what you are trying to do. If a button click should cause some change on the model rather than the UI, you should look into commands and leave the Window completely out of the picture. In that case, you set the Command property of the button rather than handling the click event.

If you want to bubble the click event on a higher level, you can just register an event listener on a higher level through XAML:

<SomeContainerControl Button.Click="MyEventHandler">
  <SomeChildControl>
    <!-- clicks bubble up the visual tree -->
    <Button x:Name="myPrivateButton" />
  </SomeChildControl>
</SomeContainerControl>



hth, Philipp

NetDrives - Open Source Network Share Management

GeneralRe: Event Handling Pin
Nish Nishant8-May-09 6:57
sitebuilderNish Nishant8-May-09 6:57 
GeneralRe: Event Handling Pin
Philipp Sumi8-May-09 7:00
Philipp Sumi8-May-09 7:00 
AnswerRe: Event Handling Pin
Pete O'Hanlon9-May-09 0:37
mvePete O'Hanlon9-May-09 0:37 
QuestionCreate pixel dimensions of a text string Pin
califax2k8-May-09 5:02
califax2k8-May-09 5:02 
AnswerRe: Create pixel dimensions of a text string Pin
#realJSOP8-May-09 5:42
mve#realJSOP8-May-09 5:42 
GeneralRe: Create pixel dimensions of a text string Pin
califax2k10-May-09 21:24
califax2k10-May-09 21:24 
QuestionBasedOn Property Pin
#realJSOP8-May-09 2:52
mve#realJSOP8-May-09 2:52 
AnswerRe: BasedOn Property Pin
Pete O'Hanlon8-May-09 4:47
mvePete O'Hanlon8-May-09 4:47 
GeneralRe: BasedOn Property Pin
#realJSOP8-May-09 5:32
mve#realJSOP8-May-09 5:32 
AnswerRe: BasedOn Property Pin
Mark Salsbery8-May-09 7:45
Mark Salsbery8-May-09 7:45 
QuestionVideo Conferencing Application in wpf Pin
JS 20088-May-09 0:48
JS 20088-May-09 0:48 
AnswerRe: Video Conferencing Application in wpf Pin
Pete O'Hanlon8-May-09 1:02
mvePete O'Hanlon8-May-09 1:02 
AnswerRe: Video Conferencing Application in wpf Pin
Mark Salsbery8-May-09 7:37
Mark Salsbery8-May-09 7:37 
QuestionGenerate Dynamic XAML Pin
the_jat7-May-09 19:42
the_jat7-May-09 19:42 
AnswerRe: Generate Dynamic XAML Pin
Pete O'Hanlon7-May-09 22:32
mvePete O'Hanlon7-May-09 22:32 
QuestionCreate datetime, time and duration control? Pin
salon7-May-09 19:34
salon7-May-09 19:34 
Questiontype-ahead control in WPF Pin
GaneshSharma7-May-09 7:46
GaneshSharma7-May-09 7:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.