Forum > Coding >

[Question] Tabs

F34R

Fear

Posts: 216

Threads: 34

Joined: Apr, 2021

Reputation: 10

Posted

https://cdn.discordapp.com/attachments/744949330087247908/937414782175293460/unknown.png

 

i dont know whats going on i tried everything nothing worked

 

my code is


public TextEditor lolTextEditor()

        {

            return (TextEditor)this.AvalonTabs.SelectedContent;

        }


can someone help me out? i will be thankful.

  • 0

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

MainDab

Main_EX

Posts: 327

Threads: 29

Joined: Sep, 2020

Reputation: 10

Replied

return AvalonTabs.SelectedContent as TextEditor;

 

// Example usage 
string Textbox Contents = lolTextEditor().Text;

// I think this should work 

 

am not the most competent dev here but this should work...

 

please reply if it worked or not idk 

  • 0

Posts: 1658

Threads: 10

Joined: Sep, 2020

Reputation: 59

Replied

@MainDab That's basically the same thing lol

  • 0

Discord : Doctor Doom#0550

Posts: 166

Threads: 9

Joined: Feb, 2021

Reputation: 9

Replied

theres is a grid in your tabitem content. the solutions is just delete the grid from ur tabitem content and just place texteditor there. or...

return ((TextEditor)((Grid)this.AvalonTabs.SelectedContent)).Children[0])
  • 1

Im netral, not evil, not too kind either.

F34R

Fear

Posts: 216

Threads: 34

Joined: Apr, 2021

Reputation: 10

Replied

Ohh i see so the grid was the problem thanks everyone

  • 0

https://cdn.discordapp.com/attachments/1088161134621773975/1088481077401751552/Untitled.png

MainDab

Main_EX

Posts: 327

Threads: 29

Joined: Sep, 2020

Reputation: 10

Replied

@0x777_ I assumed something screwed code up

 

didn't really think grid would cause issue 

  • 0

Posts: 673

Threads: 30

Joined: Aug, 2020

Reputation: 6

Replied

pov skid:

 

lol

  • 0

Users viewing this thread:

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