Hi Germano,
It helps to look at the full exception and stack trace, not just the exception type. In this case you probably got this error "System.InvalidOperationException: The calling thread must be STA, because many UI components require this." which tells you that the main thread you're calling Application.Run from is not an STA thread.
The following code shows how to create and show a WPF Window.
Regards,
Tony
import clr
clr.AddReference(r"wpf\PresentationFramework")
from System.IO import StreamReader
from System.Windows.Markup import XamlReader
from System.Windows import Application, Window
from System.Threading import Thread, ThreadStart, ApartmentState
def app_thread():
stream = StreamReader("window.xaml")
window = XamlReader.Load(stream.BaseStream)
Application().Run(window)
thread = Thread(ThreadStart(app_thread))
thread.SetApartmentState(ApartmentState.STA)
thread.Start()
thread.Join()