Click here to Skip to main content
15,889,706 members
Home / Discussions / WPF
   

WPF

 
QuestionThoughts On Building My Own Framework Pin
Kevin Marois10-Jun-15 4:42
professionalKevin Marois10-Jun-15 4:42 
AnswerRe: Thoughts On Building My Own Framework Pin
Mycroft Holmes10-Jun-15 13:02
professionalMycroft Holmes10-Jun-15 13:02 
QuestionWPF Button Style quirks Pin
Bernhard Hiller3-Jun-15 2:55
Bernhard Hiller3-Jun-15 2:55 
AnswerRe: WPF Button Style quirks Pin
Richard Deeming3-Jun-15 3:22
mveRichard Deeming3-Jun-15 3:22 
GeneralRe: WPF Button Style quirks Pin
Bernhard Hiller3-Jun-15 3:34
Bernhard Hiller3-Jun-15 3:34 
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 

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.