Use WPF from Windows Forms projects in Visual Studio 2008
- Posted: Oct 17, 2007 at 3:32 AM
- 22,557 Views
- 10 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
Author: Hi, I am
Daniel Moth 
Introduction: Windows Forms developers do not need to throw away their code and start from scratch in Windows Presentation Foundation, simply to get a stunning UI for a particular use case of their application. In this 17' video I demonstrate how to get started with interop between WPF and WinForms applications. For more please visit my blog post here.
Video download: Click on the image to play the video (from a streaming file). If you'd prefer to download the wmv packaged in a zip file, you may do so here.
Introduction: Windows Forms developers do not need to throw away their code and start from scratch in Windows Presentation Foundation, simply to get a stunning UI for a particular use case of their application. In this 17' video I demonstrate how to get started with interop between WPF and WinForms applications. For more please visit my blog post here.
Video download: Click on the image to play the video (from a streaming file). If you'd prefer to download the wmv packaged in a zip file, you may do so here.
Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
kriz, thanks for watching.
Cheers
Daniel
First THIS WAS great and addressed almost everything I needed.
I have an issue and dont know how to address it and it was not addressed in the video.
I hope you or someone can help.
I placed a UserControl onto my WinForm some of the Xaml is below. If you notice in my user control
there is a PlusButton_Click how do I attach that to the main form?
Or how to alter the Winform to be able to handle a click event on the controls? How do I forward this? Its a custom control.
<UserControl1>
........
<Grid>
<Slider Name="slider1" Width="21" Orientation="Vertical" TickFrequency="1" Maximum="5" TickPlacement="None" IsSnapToTickEnabled="True" Value="0" HorizontalAlignment="Left" Margin="1,23,0,17" />
<Button x:Name="PlusButton" HorizontalAlignment="Left" VerticalAlignment="Top" Width="25"
Content="+" Height="37" Style="{StaticResource NewUpButton}" Background="#FF1C96FF"
FontWeight="Black" FontFamily="Arial" FontSize="16"
Click="PlusButton_Click" />
</Grid>
</UserControl1>
HELP?!
Hi ChicagoBob
Glad the video was useful. May I suggest that you use the free online forums for WPF questions please:
http://social.msdn.microsoft.com/Forums/en-US/wpf/threads
Good luck!
Cheers
Daniel
Hey ChicoBob
I don't know if you got it figured out yet, but here's my suggestion:
In the XAML code behind:
Here you're creating 2 event handlers and then raising them on the click event.
In the code behind on the Windows Form:
Hope that helps...
Remove this comment
Remove this thread
close