<Window x:Class="TwitterClient.InfoDialogBox"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Informacje o programie" Height="492" Width="432" ShowInTaskbar="False"
        AllowsTransparency="True" WindowStyle="None" Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown">
    <Grid Background="Transparent" >
        <Rectangle  RadiusX="40" RadiusY="40">
            <Rectangle.Fill>
                <ImageBrush ViewportUnits="Absolute" TileMode="Tile" Viewport="0,0,20,20">
                    <ImageBrush.ImageSource>
                        <BitmapImage UriSource="Images\TwitterClientIconSmall.png"/>
                    </ImageBrush.ImageSource>
                </ImageBrush>

            </Rectangle.Fill>
        </Rectangle>
        <Grid Background="Transparent" Margin="20">
            <Grid.RowDefinitions>
                <RowDefinition Height="49*" />
                <RowDefinition Height="200*" />
            </Grid.RowDefinitions>
            <Grid Margin="5" Grid.Row="0">
                <Rectangle Fill="White" Opacity="0.5" RadiusX="20" RadiusY="20"/>
                <DockPanel >
                    <Image Margin="10,5,0,5" DockPanel.Dock="Left" MaxHeight="81" MaxWidth="81" Source="Images/TwitterClientIcon.png" Stretch="Uniform" />
                    <StackPanel Margin="15,0,0,0" Orientation="Horizontal">
                        <TextBlock VerticalAlignment="Center" Style="{DynamicResource HeaderStyle}" TextAlignment="Right">
                       <Run Text="TwitterClient" />
                        </TextBlock>
                    </StackPanel>
                </DockPanel>
            </Grid>
            <DockPanel Grid.Row="2">
                <Button DockPanel.Dock="Bottom" Style="{DynamicResource RoundedButtonStyle}" Margin="5,15,5,5" Height="23" Opacity="0.95" Click="Button_Click">
                    <Viewbox >
                        <Path HorizontalAlignment="Center" Data="M50.0625,6.75 L32.263,23.2625 20.013845,10.512614 25.95158,4.7624397 32.451289,11.887963 44.450751,0.82542674 z"  Stretch="Fill" />
                    </Viewbox>
                </Button>
                <Grid DockPanel.Dock="Bottom" Margin="5">
                    <Rectangle Fill="{DynamicResource GrayColorBrush}" Opacity="0.95" RadiusX="20" RadiusY="20"/>
                    <FlowDocumentReader Margin="5">
                        <FlowDocument>
                            <Paragraph >
                                <Run Style="{DynamicResource SubHeaderStyle}">TwitterClient</Run>
                                <Run Style="{DynamicResource TextStyle}">to prosta aplikacja, za pomocą której można odczytywać i wysyłać wiadomości z i do serwisu Twitter. Do komunikacji z serwisem Twitter wykorzystana została biblioteka Twitterizer. Poniżej została zamieszczona licencja umożliwiająca korzystanie z niej.</Run>
                            </Paragraph>
                            <Paragraph Style="{DynamicResource LicenceTextStyle}">
                                Copyright (c) 2010, Patrick "Ricky" Smith
                                &lt;ricky@digitally-born.com>
                                <LineBreak/>
                                All rights reserved.
                                <LineBreak/>
                                Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
                            </Paragraph>
                            <List Style="{DynamicResource LicenceTextStyle}">
                                <ListItem>
                                    <Paragraph>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</Paragraph>
                                </ListItem>
                                <ListItem>
                                    <Paragraph>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</Paragraph>
                                </ListItem>
                                <ListItem>
                                    <Paragraph>Neither the name of the Twitterizer nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</Paragraph>
                                </ListItem>
                            </List>
                            <Paragraph Style="{DynamicResource LicenceTextStyle}">THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE</Paragraph>
                        </FlowDocument>
                    </FlowDocumentReader>
                </Grid>

            </DockPanel>
        </Grid>
    </Grid>
</Window>
