-1

I'm actually learning about creating a new WPF Application via Microsoft Visual Studio Express 2013 for windows desktop. After selecting WPF Application and give it a name for the new project, I received two tabs - MainWindow.xaml and MainWindow.xaml.cs.

However, I didn't get to see a dialogbox (or Canvas) where I can insert buttons, labels, etc but the following code in MainWindow.xaml.

<Window x:Class="WpfEvents.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>

    </Grid>
</Window>

And that's about it. I also noticed that there is no option in the toolbox where I can drag buttons or labels or other controls to make up a form.

I'm not sure if I don't get those features simply because I didn't pay for it. I actually just installed the Visual Studio Express from Microsoft site onto my Windows 7 Pro. It looks like a freeware to me.

Thank you in advance

magicrock
  • 61
  • 2
  • 7
  • Stackoverflow is not where you find tutorials. There are many sites that provide tutorial such as microsoft, code project etc. – TYY Aug 27 '15 at 14:57
  • There's no such thing as a dialogbox. You may mean a toolbox. Xaml isn't that hard, and often gives you better outcomes than dragging/dropping crap onto the UI. A little experimentation will go a long way to learning controls and how containers control their position and size. –  Aug 27 '15 at 15:10

1 Answers1

1

There should be a tab to switch between XAML and Design Mode at the bottom or side of the window:

enter image description here

If the toolbox is not open, you can simply open it from View => Toolbox. That being said, working directly with XAML is very common in WPF and I'm not sure if creating more complex layouts with nested controls or custom templates is even possible with the Designer itself. I think it's possible with Blend but I don't know if it's shipped with the free version.

Lennart
  • 9,657
  • 16
  • 68
  • 84