Skip to content

Instantly share code, notes, and snippets.

@eternaltung
Created February 27, 2015 15:34
Show Gist options
  • Save eternaltung/ac94c6e76ba662bda8b7 to your computer and use it in GitHub Desktop.
Save eternaltung/ac94c6e76ba662bda8b7 to your computer and use it in GitHub Desktop.
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApplication1"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<TextBlock x:Name="textBlock" HorizontalAlignment="Left" Height="47" Margin="110,63,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="159"/>
<Button x:Name="button" Content="Button" HorizontalAlignment="Left" Height="38" Margin="110,110,0,0" VerticalAlignment="Top" Width="96"/>
<Rectangle Fill="#FF3B3BDC" HorizontalAlignment="Left" Height="46" Margin="90,171,0,0" Stroke="Black" VerticalAlignment="Top" Width="126"/>
<ListBox Name="TestListBox" Width="70" Margin="274,50,193,0">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment