-
Oct 15th, 2016, 04:12 PM
#1
Thread Starter
Addicted Member
wpf and windows form
friends;
i using windows forms with visual stdio
i using drag and drop with windows form to add controls like button text box and so on
i find a new way to do that in wpf is column and row
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
my question is:
1. why should i use this the code above?
2. what difference between drag and drop and this code?
3. what is benefit of using this code?
4. can i use drag and drop control in wpf and work like windows forms?
-
Oct 15th, 2016, 07:26 PM
#2
Re: wpf and windows form
Your question doesn't really make sense. The difference between that code and drag and drop is that one is about dragging and dropping and the other isn't. The XAML you've shown is simply about laying things out in a grid. If you want to know how to perform drag and drop in WPF then why have you not already typed "wpf drag and drop" into a Google search?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|