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
D

David_ml_G

@David_ml_G
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • RoutedCommands
    D David_ml_G

    Hi, this may seem like a stupid question, but I've looked everywhere and I couldn't find anything that could help me. I'm developing a WPF project and in it I have two user controls, at the moment the first has only one button and the second is pretty much a canvas with a custom border. Both of them have been added to the main window in their respective locations. What I want is, when I click the button in the first user control another control is added to the my second user control (canvas). Since I'm a bit desparate and confused about all this, I would just settle for a simple message box to show, with the code being written in the canvas code behind. Everywhere I looked said that routed commands where the best option, but I cant seem to make them work. I should also say that I can make the routed commands work only inside the first user control. Both user controls are in the same project, but have different namespaces. I'd appreciate any help and I appologise if my question seems unclear. Thanks

    WPF csharp wpf winforms help question

  • Events between user controls
    D David_ml_G

    Hi, I'm developing my first application in WPF and I got stuck on this. I have one Solution with several projects. I have a project for the main window, one for the menus, and another for the controls. The logic is that the main window will have one (or several) menu, and the menu has, again, one or several customized controls. The reason I did this is because I'll be needing to re-use the same controls and menus on a different configuration for the next project. Now for my question... let's say that my projects are called "Controls", "Menus" and "Main". I have a customized button(user control) and a customized canvas(user control) in "Controls". Now, everything goes to the main window in "Main", the button goes inside the menu from "Menus" wich in turn goes to the main window, and the canvas goes directly to the main window grid. My struggle is how to raise an event from the button once is clicked and that in the canvas a control(let's say a text box) appear at a location designated either by me or the user. Is there a way to do this? I've tried with dependency properties but with complete failure. I'd appreciate for any kind of help. Thanks

    WPF help question csharp css wpf
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups