LEADTOOLS Support
Multimedia
Multimedia SDK Examples
HOWTO: Adding a ltmmPlayCtrl to a C# WPF application.
#1
Posted
:
Wednesday, December 10, 2008 10:21:44 AM(UTC)
Groups: Guests
Posts: 3,022
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.aspxIn 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.
#2
Posted
:
Tuesday, April 5, 2011 12:58:45 PM(UTC)
Groups: Tech Support
Posts: 366
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.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Tuesday, July 5, 2011 7:00:46 AM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
I've updated this project to use the v17.5 (Win32) binaries.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
#4
Posted
:
Monday, October 9, 2017 4:49:08 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 199
Was thanked: 28 time(s) in 28 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.
Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.
#5
Posted
:
Wednesday, July 3, 2019 11:01:40 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 15
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".
Blaise Kress
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Multimedia
Multimedia SDK Examples
HOWTO: Adding a ltmmPlayCtrl to a C# WPF application.
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.