Laden...

System.Drawing.Point in WPF nutzen

Erstellt von bl4ckY vor 12 Jahren Letzter Beitrag vor 12 Jahren 1.319 Views
B
bl4ckY Themenstarter:in
193 Beiträge seit 2009
vor 12 Jahren
System.Drawing.Point in WPF nutzen

Hallo,

ich binde eine externe Apllikation (Putty) in mein WPF Programm ein. Nun will ich die Location setzen brauche dafür aber einen System.Drawing.Point. Leider lässt sich die Assembly nicht in das Projekt einbinden. Gibts da irgendeine andere Möglichkeit?

this.applicationwrapper = new ApplicationPanel();
            var d = this.Dispatcher.DisableProcessing();
            this.applicationwrapper.Dock = System.Windows.Forms.DockStyle.Fill;
            this.applicationwrapper.ApplicationName = "\\\\Godbla06\\molis\\Programme\\Molis\\Putty\\putty.exe";
            this.applicationwrapper.Location = //Hier brauch ich den Point;
            this.applicationwrapper.ApplicationParameters = this.ApplicationParameters;
            this.applicationwrapper.TabIndex = 0;
            this.applicationwrapper.m_CloseCallback = this.m_ApplicationExit;
            host.Child = applicationwrapper;
            this.Content = this.host;
            d.Dispose();

Ziel des ganzen ist das der Fensterrahmen ausgeblendet wird.

1.378 Beiträge seit 2006
vor 12 Jahren

Warum kannst du die Assembly nicht einbinden?

Lg XXX

//EDIT: System.Windows.Forms hast du doch auch schon eingebunden, was hindert dich dann noch System.Drawing einzubinden?

B
bl4ckY Themenstarter:in
193 Beiträge seit 2009
vor 12 Jahren

Ok Problem hat sich erledigt. Irgendwie hat das Assembly ärger gemacht. Ist aber jetzt gelöst.