开发者

routed-events

0
  • Direct Routed Event question

    A colleague and I were chatting about routed events, and we came up with some things that didn\'t make a lot of sense.Primarily, what is the purpose of a Direct event, and why are both LeftMouseButton[详细]

    2023-01-09 03:45 分类:问答
  • WPF - Events on a ControlTemplate?

    Does anyone know why I can\'t set an event on a control template?? For example, the following line of code will not compile. It does this with any events in a control template.[详细]

    2023-01-08 09:53 分类:问答
  • Custom Mark-up Extensions return RoutedEvents

    I\'m trying to create a generalized event for my Close buttons, where they have to close the window but before that set focus to the owner window. I don\'t want to have an event for every file for tha[详细]

    2023-01-05 21:32 分类:问答
  • raising events passing parameters in wpf

    I\'d like to add tabs to my window when an item in the GridView is double-clicked. But the tab that will be added depends on the clicked item. Which way should I do this on WPF? I thought about 开发者[详细]

    2023-01-01 20:16 分类:问答
  • TextChanged Events - Why does this not result in an infinite loop?

    While trying to do something a bit more complicated, I ran across a behavior I don\'t quite understand.[详细]

    2023-01-01 08:18 分类:问答
  • MS Surface Tag Visualizer steals contact events

    I\'m struggling with the TagVisualizer control on an MS Surface project. In theory t开发者_如何学JAVAhe control seems great, allowing you to respond to input from real world physical objects[详细]

    2022-12-28 13:07 分类:问答
  • Checking if a RoutedEvent has any handlers

    I\'ve got a custom Button class, that always performs the same action when it gets clicked (opening a specific window). I\'m adding a Click event that can be assigned in the button\'s XAML, like a reg[详细]

    2022-12-28 10:22 分类:问答
  • WPF: Custom routed event with extra information

    I have a normal WPF window, let\'s call it TopLevel which has a bunch of controls in it, among other things a simple ListView which should log certain events in different elements in the application.[详细]

    2022-12-17 14:23 分类:问答
  • WPF event routing

    I have a grid control which has two child elements (both are canvas), and firs开发者_开发知识库t canvas overlays the second one. How can I handle mouse down event on background canvas?Without any more[详细]

    2022-12-17 09:03 分类:问答
  • WPF MVVM Routed Events

    There are a lot of discussions about M-V-VM and Command binding (RelayCommand) but not a lot has been covered on Routed Events binding to a handler in a M-V-VM pattern. I want to find what is the best[详细]

    2022-12-09 07:41 分类:问答