Posted By: Daniel Moth | Oct 17th, 2007 @ 3:32 AM | 15,337 Views | 9 Comments
Author: Hi, I am Daniel Moth Smiley

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.
Rating:
0
0
jh71283
jh71283
Throw new System.Beverage. OutOfCoffeeException​()
It was only because I am particularly interested in this area that i put up with the appalling reliability of the streaming server on fullscreen mode, it would not last more than 2 minutes without losing the connection!
jh71283
jh71283
Throw new System.Beverage. OutOfCoffeeException​()
Oh c**p... I've just noticed the zip file option...
Well done, nicely paced.  Question: why did you disable the Visual Studio Hosting Process?
ChicagoBob
ChicagoBob
Still Codin

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?!

Microsoft Communities