Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, December 10, 2008 10:21:44 AM(UTC)

jigar  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

This project shows you how to host an ActiveX control, like ltmmPlayCtrl, ltmmConvertCtrl, or ltmmCaptureCtrl, in a WPF application.  WPF does not directly allow hosting of ActiveX controls, so you must first create a WinForms User Control, and host the ActiveX control in there.  Then you can host the WinForms User Control in the WPF application.  This is outlined in Walkthrough: Hosting an ActiveX Control in Windows Presentation Foundation here http://msdn.microsoft.co...us/library/ms742735.aspx

In the attached zip file, there are two projects, and they are part of one solution.  You will need Visual Studio 2008 and LEADTOOLS Multimedia SDK v16.

Steps:

1.  Extract zip, and open the solution.
2.  Add a reference to C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsFormsIntegration.dll in WpfMain project.
3.  Add a reference to System.Windows.Forms in WpfMain project.
4.  Edit the Window1.xaml.cs file and change the sourcefile property to a valid file or URL.
5.  Run the project.
File Attachment(s):
WpfMain.zip (27kb) downloaded 388 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, April 5, 2011 12:58:45 PM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 367

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

I've updated this sample project to use the newer Leadtools v17 SDK binaries. The project is still a VS 2008 solution.
File Attachment(s):
WpfMain_v17.zip (27kb) downloaded 382 time(s).
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#3 Posted : Tuesday, July 5, 2011 7:00:46 AM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 367

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

I've updated this project to use the v17.5 (Win32) binaries.
File Attachment(s):
WpfMain_v175.zip (29kb) downloaded 385 time(s).
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
#4 Posted : Monday, October 9, 2017 4:49:08 PM(UTC)
Anthony Northrup

Groups: Registered, Tech Support, Administrators
Posts: 199

Was thanked: 27 time(s) in 27 post(s)

Updated to LEADTOOLS v19 with Visual Studio 2017. Also changed project to automatically select dll's for running in 32-bit and 64-bit.
Extract folder to "C:\LEADTOOLS 19\Examples\DotNet\CS\" to use the example.
File Attachment(s):
CS_PlayCtrlWPF.zip (17kb) downloaded 185 time(s).
Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#5 Posted : Wednesday, July 3, 2019 11:01:40 AM(UTC)

Blaise  
Blaise

Groups: Registered, Tech Support, Administrators
Posts: 10

Was thanked: 1 time(s) in 1 post(s)

Updated to LEADTOOLS v20 with Visual Studio 2017.
Extract folder to "C:\LEADTOOLS 20\Examples\DotNet\CS\" to use this example.
Certain permissions may require you to go into the properties of "C:\LEADTOOLS 20\Examples\DotNet\CS\CS_PlayCtrlWPF\CS_PlayCtrlWPF_Control\Player.resx" and check mark "Unblock".
File Attachment(s):
CS_PlayCtrlWPF.zip (350kb) downloaded 19 time(s).
Blaise Kress
Developer Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.071 seconds.