Click here to Skip to main content
15,919,358 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF Window Closing Event To Command Pin
Kevin Marois2-Jun-15 13:12
professionalKevin Marois2-Jun-15 13:12 
QuestionRe: WPF Window Closing Event To Command Pin
Richard Deeming2-Jun-15 21:53
mveRichard Deeming2-Jun-15 21:53 
QuestionWPF Stream Live Video Pin
Kevin Marois1-Jun-15 13:56
professionalKevin Marois1-Jun-15 13:56 
I'm working on an WinForms replacement app in WPF 4.5.

The current WinForms app streams video from a C++ component. The C# WinForms control has this code:
public void StartVideoStream(int iCamera)
{
    if (InvokeRequired)
    {
        delStartVideoStream del = new delStartVideoStream(StartVideoStream);
        Invoke(del, new object[] { iCamera });
    }
    else
    {
        if (!VideoPlaying)
        {
            int iSuccess = ClientComm.StartVideoStream(iCamera, ucVideoPlayer.Handle,
                (ClientComm.streaming_protocols)Properties.Settings.Default.VideoStreamProtocol,
                Properties.Settings.Default.VideoStreamFrameRate);

            if (iSuccess != 0)
            {
                Debug.WriteLine("[ucVideo] Could not play video.");
            }
        }
        else
        {
            ClientComm.SelectVideoStream(iCamera);
        }
        VideoPlaying = true;
    }
}

You can see that it passes its handle to the COM component which writes the video directly to it.

The problem is that in WPF controls do not have handles. How can I do this I WPF?

Thank you.
If it's not broken, fix it until it is

AnswerRe: WPF Stream Live Video Pin
Pete O'Hanlon1-Jun-15 20:41
mvePete O'Hanlon1-Jun-15 20:41 
GeneralRe: WPF Stream Live Video Pin
Kevin Marois2-Jun-15 4:06
professionalKevin Marois2-Jun-15 4:06 
GeneralRe: WPF Stream Live Video Pin
Pete O'Hanlon2-Jun-15 5:20
mvePete O'Hanlon2-Jun-15 5:20 
GeneralRe: WPF Stream Live Video Pin
Kevin Marois2-Jun-15 5:22
professionalKevin Marois2-Jun-15 5:22 
QuestionHow to change Window.Title property? Pin
econy28-May-15 3:13
econy28-May-15 3:13 
AnswerRe: How to change Window.Title property? Pin
Richard Deeming28-May-15 3:48
mveRichard Deeming28-May-15 3:48 
QuestionThe difference of Style on Button and TextBlock, Pin
econy27-May-15 10:15
econy27-May-15 10:15 
AnswerRe: The difference of Style on Button and TextBlock, Pin
Mycroft Holmes27-May-15 13:02
professionalMycroft Holmes27-May-15 13:02 
GeneralRe: The difference of Style on Button and TextBlock, Pin
econy28-May-15 3:10
econy28-May-15 3:10 
AnswerRe: The difference of Style on Button and TextBlock, Pin
Gerry Schmitz1-Jun-15 11:02
mveGerry Schmitz1-Jun-15 11:02 
QuestionWPF ListBoxItem Style Not Working Pin
Kevin Marois26-May-15 9:48
professionalKevin Marois26-May-15 9:48 
QuestionPost Publish Actions Pin
Mycroft Holmes21-May-15 16:32
professionalMycroft Holmes21-May-15 16:32 
QuestionRe: Post Publish Actions Pin
Kenneth Haugland22-May-15 10:08
mvaKenneth Haugland22-May-15 10:08 
AnswerRe: Post Publish Actions Pin
Mycroft Holmes22-May-15 13:42
professionalMycroft Holmes22-May-15 13:42 
QuestionNeed Entity Framework Video Tutorial using WPF Pin
Ashfaque Hussain21-May-15 1:09
Ashfaque Hussain21-May-15 1:09 
QuestionRe: Need Entity Framework Video Tutorial using WPF Pin
Richard MacCutchan21-May-15 1:29
mveRichard MacCutchan21-May-15 1:29 
AnswerRe: Need Entity Framework Video Tutorial using WPF Pin
Ashfaque Hussain21-May-15 1:50
Ashfaque Hussain21-May-15 1:50 
SuggestionWPF App for Tablet Pin
Member 1160551220-May-15 23:50
Member 1160551220-May-15 23:50 
Questionwindow set fontsize question Pin
econy20-May-15 4:09
econy20-May-15 4:09 
AnswerRe: window set fontsize question Pin
Richard Deeming20-May-15 4:48
mveRichard Deeming20-May-15 4:48 
GeneralRe: window set fontsize question Pin
econy20-May-15 5:13
econy20-May-15 5:13 
QuestionTreeview with check box binding in silverlight Pin
Member 1151284413-May-15 23:02
Member 1151284413-May-15 23:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.