![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Control.Handle - How do I get a handle to a control with WinFX I've been playing with WinFX and maybe I'm missing something here but I don't see a "Control.Handle" type function anywhere. Is there some way to do this under WinFX. I want to use DirectShow with a WinFX Panel. Maybe I'm going about this the wrong way. I am totally new to this (1 - 2 hour looking over it so far) Any help or guidance would be great Shane |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Control.Handle - How do I get a handle to a control with WinFX iNSaNey wrote: > I've been playing with WinFX and maybe I'm missing something here but > I don't see a "Control.Handle" type function anywhere. > > Is there some way to do this under WinFX. I want to use DirectShow > with a WinFX Panel. > > Maybe I'm going about this the wrong way. I am totally new to this (1 > - 2 hour looking over it so far) > > Any help or guidance would be great > > Shane WPF Controls do not have Handles. They are entirely implemented by the API - they are not wrappers for traditional windows controls. There is an interop api (ElementHost) for hosting Win32 controls in a WPF application (see Migration and Interoperability in the SDK docs) or maybe you could use the WinFx multimedia API instead of DirectShow (see Graphics And Multimedia / Audio and Video in the SDK Docs) WPF is not a another set of wrappers for the old Win32 API. It really is a whole new game. -- Martin |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Control.Handle - How do I get a handle to a control with WinFX Hi, >From what I can tell the muiltimedia API in WPF doesn't cut it for recording and has a lack of filter support. All I'm really trying to do is get directshow playback working in a panel (something that wasn't that hard in win32). I will take a look at ElementHost. Though I would prefer not to use win32 controls if it's possible. Thanks for the info Shane |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| invalid handle | Vista performance & maintenance | |||
| Easy to get handle from listbox. How to get listbox from handle? | .NET General | |||