TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Arni Ingason
NA
29
3.8k
Window Media Player in WPF, Ctlcontrols problem
Feb 5 2011 11:43 AM
Hi
Mahesh Chand
and thank you for your reply.
I manage to delete my thread so I have to continue in a new one.
I us
ed the following article
http://msdn.microsoft.com/en-us/library/ms742735(v=vs.85).aspx
Then I used the WmpAxLib in my wpf application with the following code:
// Create the interop host control.
host = new WindowsFormsHost();
// Create the ActiveX control.
AxWMPLib.AxWindowsMediaPlayer axWmp = new AxWMPLib.AxWindowsMediaPlayer();
axWmp.Height = 500;
axWmp.Width = 600;
axWmp.StatusChange += new EventHandler(axWmp_StatusChange);
axWmp.PlayStateChange += new
AxWMPLib._WMPOCXEvents_PlayStateChangeEventHandler(axWmp_PlayStateChange);
axWmp.DeviceStatusChange += new
AxWMPLib._WMPOCXEvents_DeviceStatusChangeEventHandler(axWmp_DeviceStatusChange);
host.Child = axWmp;
axWmp.URL = @"F:\260.wma";
axWmp.Ctlcontrols.play();
this.grid1.Children.Add(host);
The problem is that I can not find the show methods under the axWmp.Ctlcontrols.
What could be the reason for that ?
Reply
Answers (
1
)
validation on textbox in wpf window project
CAD Drawing using WPF