<Window x:Class="TwitterClient.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:TwitterClient.ViewModel"
		xmlns:local="clr-namespace:TwitterClient"
        Title="TwitterClient" Height="596" Width="408"
        Icon="/TwitterClient;component/Images/TwitterClientIconSmall.png">
    <Window.DataContext>
        <vm:TwitterViewModel/>
    </Window.DataContext>
    <Grid Background="{DynamicResource AppBackgroundBrush}">
        <Button Style="{DynamicResource ResourceKey=RoundedButtonStyle}" Height="28" HorizontalAlignment="Right" Margin="0,37,12,0" Name="button1" VerticalAlignment="Top" Width="41" Click="button1_Click" BorderBrush="{StaticResource ActiveColorBrush}">
            <Viewbox >
                <Path Margin="7" Data="M0,40 L24.499999,40.083996 12.083667,55.75 z M45.667,0 C67.758393,8.2635896E-07 85.667,17.908609 85.667,40 85.667,62.091392 67.758393,80 45.667,80 L45.667,67 C60.57869,67 72.667,54.91169 72.667,40 72.667,25.088314 60.57869,13.000001 45.667,13 30.755314,13.000001 18.667001,25.088314 18.667001,40 L5.6670005,40 C5.6670012,17.908609 23.57561,8.2635896E-07 45.667,0 z"     StrokeThickness="0" />
            </Viewbox>
        </Button>
        <ListBox Background="Transparent"
			ScrollViewer.CanContentScroll="True"
            ScrollViewer.HorizontalScrollBarVisibility="Disabled"
            ScrollViewer.VerticalScrollBarVisibility="Disabled"
			Margin="12,71,12,113" 
			Name="listBox1" 
            DisplayMemberPath="ScreenName"
			ItemsSource="{Binding Path=Tweets}"
                 BorderBrush="{x:Null}">
            <ListBox.ItemContainerStyle>
                <StaticResourceExtension ResourceKey="ListBoxItemStyle"/>
            </ListBox.ItemContainerStyle>
            <ListBox.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="O programie" Click="MenuItem_Click" />
                </ContextMenu>
            </ListBox.ContextMenu>
        </ListBox>
        <TextBox Background="{DynamicResource TweetMessageBoxBackground}" BorderBrush="{x:Null}" TextWrapping="Wrap" Height="80" Margin="12,0,86,27" Name="textBox1" VerticalAlignment="Bottom" MaxLength="140" IsEnabled="True" Text="{Binding Path=TweetText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
        <Button  Style="{DynamicResource RoundedButtonStyle}"  Height="80" HorizontalAlignment="Right" Margin="0,0,12,27" Name="button2" VerticalAlignment="Bottom" Width="70" Click="button2_Click" BorderBrush="{DynamicResource ActiveColorBrush}" >
            <Grid>
                <Rectangle Width="6" Height="22"/>
                <Rectangle Width="22" Height="6" />
            </Grid>
        </Button>
        <Label  Height="21" Margin="12,0" Name="label1" VerticalAlignment="Bottom" Content="{Binding  Path=Text.Length, ElementName=textBox1}" Foreground="#F0867878" FontSize="10" BorderBrush="Black"/>
        <TextBlock Height="19" HorizontalAlignment="Left" Margin="12,12,0,0" Text="{Binding StringFormat={}{0}  , Path=Tweets.Count}" VerticalAlignment="Top" Width="115" />
    </Grid>
</Window>
