Questions tagged [routed]

13 questions
6
votes
2 answers

WPF Custom Routed Events - How to UnSubscribe?

How to DeRegister from one Custom Routed Event. I have the following code (very standard for Custom Routed Events) //Dispatch the Video Detection Movements public delegate void MovementRoutedEventHandler( object sender …
Jean-Marie
  • 297
  • 3
  • 14
3
votes
0 answers

WPF Disable mousewheel on ScrollViewer and let children handle it

I am trying to implement an ItemsControl which contains a collection of graphing components. The component should be able to use the MouseWheel event to zoom, but it appears that the Scrollbar is capturing and handling the event first. Most of the…
mdusoe
  • 41
  • 5
3
votes
1 answer

How To Get Global MouseMove And KeyDown Events In Silverlight

Application.Current.RootVisual.KeyDown += Application_KeyDown The above does not work if I'm on a ChildWindow - that was instantiated in runtime. My question is, how do I get the mousemove or keydown event in the Parent Window that hosts this…
Shnitzel
  • 61
  • 3
2
votes
1 answer

WPF Routed Commands and ShowDialog Windows

I was wondering how a window opened through ShowDialog is treated in the Visual Tree. For example, Window A opens Window B through a ShowDialog. When firing a routed command on Window B, Window A does not receieve the command (even though it is…
JonS
2
votes
1 answer

How to add Command Binding to an Items control that does not have the command binding property

I use the MVVM pattern and I have the following code:
Noushad
  • 21
  • 2
1
vote
1 answer

flutter fix bottom navigation bar in whole app

I want to use the bottom navigation bar in the whole of my app and in the bottom navigation set routed for all routes in my app. first set bottom navigation -> then routed pages in each index. but I don't know-how. Does anyone know that how can I do…
user16886755
1
vote
1 answer

Find out source of raised Routed Event

I've small trouble. I don't know why my controls firing events twice. I know it was discussed few times on stackOverflow, but still i cannot find out cause. Is there any way to debug application and find what is the main cause of raised event? I'm…
Simon
  • 2,329
  • 4
  • 30
  • 49
1
vote
0 answers

Two briged on Proxmox. Default routing for two bridges

Scenario Proxmox 2.2 on OVH over VRACK LAN Two Bridged Interfaces for two VLANS: 5.135.XXX.XXX/26 Gateway 5.135.XXX.126 Netmask 255.255.255.192 This net it's first on Vrack 176.31.XXX.XXX/26 Gateway 176.31.XXX.254 Netmask…
abkrim
  • 3,512
  • 7
  • 43
  • 69
1
vote
2 answers

Handle tunneled custom routed event

I'm currently experimenting with C# WPF custom routed events i got stuck at a problem. This is what i want to do: I want to fire a custom routed event from my main window which tunnels through a stackpanel to a custom control derived by the Button…
burndi
  • 41
  • 4
0
votes
1 answer

proxmox KVM routed network with multiple public IPs

I have a dedicated hosting with hetzner. Additionally i have bought a 6IP subnet. My main IP is: 88.198.60.125 My main subnet is: 255.255.255.224 My additional IPs are 46.4.214.81 to 46.4.214.86 the internet access work on windows servers . but…
Bahaa Odeh
  • 583
  • 1
  • 7
  • 16
0
votes
2 answers

WPF and events from dynamically created controls

I need some help to implement a common behavior in some controls. In my WPF application, I have a main form that contains a panel and a button: Ok The button will run a Save method when clicked.The…
OKB
  • 715
  • 3
  • 14
  • 30
0
votes
1 answer

C#/WPF: Catch Routed Event (UIElement.PreviewKeyUp) from UserControl

I've a UserControl which contains a TextBox called myTextBox. This UserControl is placed in a MainWindow.xaml where I'm trying to catch the "UIElement.PreviewKeyUp". Now when debugging, I can see the "UserControl" as sender, not the TextBox. How can…
Joseph jun. Melettukunnel
  • 6,267
  • 20
  • 69
  • 90
0
votes
1 answer

WPF ItemsControl: Route TextChanged Event to all UserControl Items

I've placed in a ItemsControl Container (Template Stackpanel) my UserControls, which get dynamically added and removed while running the application. How can I route an Event (e.g. TextChanged or GotFocus) trough all elements in my UserControl…
Joseph jun. Melettukunnel
  • 6,267
  • 20
  • 69
  • 90