<Window x:Class="FeedCenter.Options.CategoryWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Properties="clr-namespace:FeedCenter.Properties"
        Title="CategoryWindow"
        Height="119"
        Width="339"
        WindowStartupLocation="CenterOwner"
        Icon="/FeedCenter;component/Resources/Application.ico"
        FocusManager.FocusedElement="{Binding ElementName=nameTextBox}" >
    <Grid Name="mainGrid">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="367*" />
        </Grid.ColumnDefinitions>
        <Label Content="{x:Static Properties:Resources.feedCategoryLabel}" 
               HorizontalAlignment="Left" Name="urlLabel" 
               Target="{Binding ElementName=nameTextBox}" 
               VerticalAlignment="Top" 
               VerticalContentAlignment="Center" 
               Margin="12,12,0,0"  />
        <TextBox Margin="7,14,12,0" 
                 Name="nameTextBox" 
                 Text="{Binding Path=Name, UpdateSourceTrigger=Explicit, ValidatesOnExceptions=True}" 
                 VerticalAlignment="Top" 
                 Grid.Column="1" />
        <Button Content="{x:Static Properties:Resources.OkayButton}"
                Height="23"
                HorizontalAlignment="Right"
                Name="okButton"
                VerticalAlignment="Bottom"
                Width="75"
                IsDefault="True"
                Margin="0,0,93,12"
                Click="HandleOkayButtonClick" Grid.Column="1" />
        <Button Content="{x:Static Properties:Resources.CancelButton}"
                Height="23"
                HorizontalAlignment="Right"
                Name="cancelButton"
                VerticalAlignment="Bottom"
                Width="75"
                IsCancel="True"
                Margin="0,0,12,12" Grid.Column="1" />
    </Grid>
</Window>
