Forum > General >

[HELP]WPF BUTTONS?

Posts: 1037

Threads: 78

Joined: Feb, 2021

Reputation: 75

Posted

So I Need Help Making One Buttons.

So I Need Help Making A Undo And Redo Button.

I Need Help With Tree Veiw Cause I Don't Know How To Use It.

 

Loves And Thanks

SpaceSpiffer.

  • 0

https://media.discordapp.net/attachments/1013939973671624917/1027279180192292944/unknown.png
https://media.discordapp.net/attachments/1010670716062007347/1108945330847883274/image.png

Posts: 1167

Threads: 72

Joined: Oct, 2019

Reputation: 89

Replied

If You Using Avalon It Has Functions For Redo And Undo So Just Make A Button And Use Avalon's Function For The Click Event On Each
For Undo Just Do AvalonName.Undo(); I Believe And The Opposite For Redo And Tree View I Couldn't Help With That Since I've Never Used Tree View

  • 0

Posts: 1037

Threads: 78

Joined: Feb, 2021

Reputation: 75

Replied

@50127Thank you so much this helped.It doesnt matter about tree view i will use list view or learn off of youtube how it works. Thank you alot.

  • 0

Added

@65993one button sorry i will change i had more buttons but i just didnt ask.

  • 0

https://media.discordapp.net/attachments/1013939973671624917/1027279180192292944/unknown.png
https://media.discordapp.net/attachments/1010670716062007347/1108945330847883274/image.png

Posts: 395

Threads: 20

Joined: Apr, 2021

Reputation: 24

Replied

@Hiroku what is tree view? sorry im a retard

  • 0

back lol

Posts: 1037

Threads: 78

Joined: Feb, 2021

Reputation: 75

Replied

@67353it like list view but it Each FIle Or Each iteam Can Have Sub iteams. 

  • 0

https://media.discordapp.net/attachments/1013939973671624917/1027279180192292944/unknown.png
https://media.discordapp.net/attachments/1010670716062007347/1108945330847883274/image.png

Posts: 540

Threads: 39

Joined: Feb, 2021

Reputation: 32

Replied

@Hiroku you could've asked me :cri:

  • 0

Why are you here

Posts: 395

Threads: 20

Joined: Apr, 2021

Reputation: 24

Replied

@Hiroku oh ok thanks!

  • 0

back lol

Posts: 3

Threads: 0

Joined: May, 2021

Reputation: 0

Replied

Adding a button is actually easy. The first thing you need to do is to look for WPF text boxes that can provide the standard undo and redo buttons. To make it easier for you, you just want to copy paste all of these. This is for the undo button -> private void Undo_Click(object sender, RoutedEventArgs e) { MyTextBox.Undo(); } ------ On the other hand, here is how you can do the redo button private void Redo_Click(object sender, RoutedEventArgs e) { MyTextBox.Redo(); } ... Of course, you just need to properly place these in your text box and you are good to go. I hope it helps.

  • 0

Posts: 1037

Threads: 78

Joined: Feb, 2021

Reputation: 75

Replied

@67994thanks this helped alot

  • 0

https://media.discordapp.net/attachments/1013939973671624917/1027279180192292944/unknown.png
https://media.discordapp.net/attachments/1010670716062007347/1108945330847883274/image.png

Users viewing this thread:

( Members: 0, Guests: 0, Total: 0 )