<Window x:Class="FlexSheetSample.SelectedRangeWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Create SparkLines" 
        WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" Topmost="True"
        MinHeight="200" MinWidth="330"
        Height="200" Width="330"
        >
    <Window.Resources>
        <!--<ControlTemplate x:Key="imageBtn" TargetType="{x:Type Button}">
            <Grid>
                <Rectangle HorizontalAlignment="Right" Width="20" Height="20">
                    <Rectangle.Fill>
                        <ImageBrush   ImageSource=".\Resources\ico_up.png" ></ImageBrush>
                    </Rectangle.Fill>
                </Rectangle>

            </Grid>
        </ControlTemplate>-->
    </Window.Resources>
    <Grid Margin="5" x:Name="_root">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        
        <Grid Grid.Row="0" x:Name="_gridDataRange" Margin="0,3,0,10">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">Choose the data that you want</TextBlock>
            <TextBlock Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center">Data Range:</TextBlock>
            <Grid Grid.Row="1" Grid.Column="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBox Grid.Column="0" x:Name="_tbTextRange" Height="20"></TextBox>
                <Button Grid.Column="1" x:Name="_btnTextRange" Width="20" Height="20" Click="_btnTextRange_Click"></Button>
            </Grid>
        </Grid>

        <Grid Grid.Row="1" x:Name="_gridLocationRange" Margin="0,12,0,0">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">Choose where you want the sparklines to be placed</TextBlock>
            <TextBlock Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center">Location Range:</TextBlock>
            <Grid Grid.Row="1" Grid.Column="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBox Grid.Column="0" x:Name="_tbLocationRange" Height="20"></TextBox>
                <Button Grid.Column="1" Width="20" Height="20" x:Name="_btnLocationRange" Click="_btnLocationRange_Click"></Button>
            </Grid>
        </Grid>

        <Grid Grid.Row="2" x:Name="_gridResult">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition Width="70"></ColumnDefinition>
            </Grid.ColumnDefinitions>
           
            <Button Width="70" Height="25" x:Name="_btnCancel" Grid.Column="1"  
                    VerticalAlignment="Bottom" Click="_btnCancel_Click" Margin="0,20,0,0">Cancel</Button>
            <Button Width="70" Height="25" x:Name="_btnOK" Grid.Column="0"
                    Margin="0,20,10,0" HorizontalAlignment="Right" VerticalAlignment="Bottom" Click="_btnOK_Click">OK</Button>

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