Guten Tag,
ich würde gerne eine .c Datei in meinem WPF-Tool mit c# anzeigen lassen. Dies funktioniert auch super mit
C#-Quelltext
1:
| Process.Start("notepad.exe",@"C:\..\test.c"); |
Es öffnet sich dann Notepad.exe mit der Datei.
NUn meine Frage: Gibt es eine Möglichkeit, wie ich die Test.c innerhalb meiner wpf-anwendung in einem neuen Tab vom Tab Control öffnen lassen kann?
Grüße
PS: Was mir dazu nur einfallen würde ist File.ReadallLines in einer Textbox abspeichern --> falls änderungen gespeichert werden sollen einfach den text aus der textdatei abspeichern als .c.
Gibt aber bestimmt eine bessere Lösung?
Moderiert von Th69: C#-Tags hinzugefügt