Skip to content

Commit

Permalink
Added simple form controls
Browse files Browse the repository at this point in the history
  • Loading branch information
PProvost committed Jan 25, 2010
1 parent 88f1066 commit 3f481b1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions GitDemo.csproj
Expand Up @@ -38,6 +38,7 @@
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
Expand All @@ -46,6 +47,8 @@
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="UIAutomationProvider" />
<Reference Include="UIAutomationTypes" />
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
Expand Down
3 changes: 2 additions & 1 deletion MainWindow.xaml
Expand Up @@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>

<ListBox Height="311" HorizontalAlignment="Left" Name="listBox1" VerticalAlignment="Top" Width="210" />
<Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="226,12,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
</Grid>
</Window>
5 changes: 5 additions & 0 deletions MainWindow.xaml.cs
Expand Up @@ -23,5 +23,10 @@ public MainWindow()
{
InitializeComponent();
}

private void button1_Click(object sender, RoutedEventArgs e)
{
MessageBoxResult result = MessageBox.Show("Hello world!");
}
}
}

0 comments on commit 3f481b1

Please sign in to comment.