Use WPF from Windows Forms projects in Visual Studio 2008
- Posted: Oct 17, 2007 at 3:32 AM
- 25,122 Views
- 10 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
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
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
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