Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

C# Adding button to XAML

SevyT

New Coder
Hi everyone

I am trying to add a button to my form
But If i drag a button to the circled spot it will be put in the XAML code of the Export button.
So when i add a tooltip it will share the same tooltip.
If I manually add the code below the export button, then it breaks the UI.
Cannot really make sense of how the WPF forms work so probably why I mess things up
addimage.jpg
addbutton.jpg
 
Hi everyone

I am trying to add a button to my form
But If i drag a button to the circled spot it will be put in the XAML code of the Export button.
So when i add a tooltip it will share the same tooltip.
If I manually add the code below the export button, then it breaks the UI.
Cannot really make sense of how the WPF forms work so probably why I mess things up
View attachment 2026
View attachment 2027
Hi there,
Could you post up the actual code, so that anyone wanting to help can test your code locally?
 
But If i drag a button to the circled spot it will be put in the XAML code of the Export button.
I'm not sure how this all works but it does not look to me like that circled spot is a drop area. There probably should have been something there to start with, like a container or panel or div or whatever. Lacking that, VS helpfully seems to pick the nearest element as a drop area instead of giving a proper message. I could be wrong though !
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom