Results 1 to 2 of 2

Thread: wpf and windows form

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2014
    Posts
    169

    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?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    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
  •  



Click Here to Expand Forum to Full Width