Re: WPF apps using .NET 2.0 assemblies? Can it be done?



On Feb 15, 6:59 am, "RobinS" <rob...@xxxxxxxxxxxxxxxx> wrote:
"Damien" <Damien_The_Unbelie...@xxxxxxxxxxx> wrote in message

news:098ddb2f-fbc1-40d0-a4a2-4508816f285a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Feb 9, 4:06 am, eljainc <elja...@xxxxxxxxxxxxx> wrote:

Hello,

I am writing some basic WPF applications using VS 2005 with the WPF
extensions. I am building a specific WPF application which uses WPF
Windows (not Winforms). I notice that .NET 2.0 components cannot be
used on these forms. Is there any way to shoehorn the .NET 2.0
components on to a WPF form? If I had the source code to these
assemblies, could they be published to a .NET 3.0/3.5 assembly so that
it would work on the WPF Window?

Thanks.
Mike

Hi Mike,

Have you looked at the WindowsFormsHost from
System.Windows.Forms.Integration? It lets you put the WinForms
controls inside WPF, which I think is what you're asking for.

Damien

==========================

Damien,

What about the other way around? Will it let you put WPF controls on a
Windows form?

RobinS.

There is a similar control that lets you do that. Typing "host wpf
winforms" into google found an MSDN walkthrough as the first link.

Damien
.



Relevant Pages

  • Re: Message Routing in Winform-Applikationen
    ... Bei der IMessage-Schnittstelle funktioniert das! ... Controls selber, aber eben auch bei den anderen, "offensichtlichen" ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: VB.NET 2008 not backward compatable?
    ... If you're making proper n-tier business applications you're going to be needing to partition code up into libraries, and VB6 sends you straight to DLL hell in that case. ... Windows Vista is pretty perfect, ... I'm not sure if you're still so stuck in the dark ages of VB6 that you haven't heard, but have you even looked into WPF? ... the intrinsic WPF controls are still a rather bad remake of the old Win32 controls. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Wer verwendet WPF wirklich in seinen Programmen?
    ... Ich möchte auf Benuteraktionen auf diese Controls ... um diesen auch unter WPF weiterzuverwenden und weiterentwickeln zu können. ... seinen Sinn & Potential nahezu verlieren. ... Windows Forms Syntax voll entfalten können... ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: Is there any hope for Microsoft ?
    ... But WPF isnt really about controls, ... Tell me again how it's gonna deliver a very WinForms like option with the current library of only "basic" controls, maybe with WPF version 2 they will flesh out the controls library. ... In the mean time I just don't think most developers will share your exuberant enthusiasm to completely abandon WinForms and switch to WPF but they will stick with WinForms when WinForms will do the job and they will enhance and extend their WinForms apps with WPF where graphical elements are desirable. ...
    (borland.public.delphi.non-technical)
  • Re: WPF--a threat to WinForms?
    ... In my opinon Enterprise desktop applications already ... see WPF having a lot to offer over WinForms to most enterprise desktop ... Windows Presentation Foundation (WPF) ...
    (microsoft.public.dotnet.languages.csharp)

Quantcast