<UserControl x:Class="TaskIt.Modules.Tasks.Views.ContextDetails"
    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:CustomControls="clr-namespace:CustomControls;assembly=CustomControls"     
    xmlns:Infrastructure="clr-namespace:TaskIt.Infrastructure;assembly=TaskIt.Infrastructure" 
    xmlns:Views="clr-namespace:TaskIt.Modules.Tasks.Views" 
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    mc:Ignorable="d"    
    d:DesignWidth="800" d:DesignHeight="600">

    <telerik:RadDockPanel>
        <telerik:RadDockPanel Style="{StaticResource ToolbarContainerStyle}" telerik:RadDockPanel.Dock="Top">
            <CustomControls:ImageButton Content="{Binding ResourceCommandSave}" Command="{Binding SaveCommand}" CommandParameter="{Binding EntityType}" ImageSource="{Binding IconSaveUri}"/>
            <Rectangle Style="{StaticResource StandardSpacerStyle}"/>
            <CustomControls:ImageButton Content="{Binding ResourceCommandDelete}" Command="{Binding DeleteCommand}" CommandParameter="{Binding SelectedItem, Mode=TwoWay}" ImageSource="{Binding IconDeleteUri}" Visibility="{Binding IsDeleteCommandAvailable, Converter={StaticResource BooleanToVisibilityConverter}}"/>
            <CustomControls:ImageButton Content="{Binding ResourceCommandBack}" Command="{Binding BackCommand}" ImageSource="{Binding IconBackUri}" HorizontalAlignment="Right"/>
        </telerik:RadDockPanel>
        <Border Style="{StaticResource PageContentContainerStyle}">
            <telerik:RadDockPanel>
                <Grid Style="{StaticResource PageContentHeaderStyle}" telerik:RadDockPanel.Dock="Top"/>
                <CustomControls:ClippingBorder Style="{StaticResource PageContentInnerContainerStyle}" Padding="8" telerik:RadDockPanel.Dock="Bottom">
                    <telerik:RadDockPanel>
                        <CustomControls:FormPanel Infrastructure:ValidationScope.Errors="{Binding ValidationErrors}" telerik:RadDockPanel.Dock="Top">
                            <CustomControls:FormLabel Text="{Binding ResourceFormLabelName}"/>
                            <TextBox x:Name="txtName" Text="{Binding SelectedItem.Name, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}"/>
                        </CustomControls:FormPanel>
                        <Views:RowDetailTabs telerik:RadDockPanel.Dock="Bottom" Margin="0,8,0,0"/>
                    </telerik:RadDockPanel>
                </CustomControls:ClippingBorder>
            </telerik:RadDockPanel>
        </Border>
    </telerik:RadDockPanel>

</UserControl>