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

    <Border Style="{StaticResource PageContentContainerStyle}">
        <telerik:RadDockPanel>
            <telerik:RadDockPanel Style="{StaticResource ToolbarContainerStyle}" telerik:RadDockPanel.Dock="Top">
                <CustomControls:ImageButton Content="{Binding ResourceCommandSave}" Command="{Binding SaveNoteCommand}" CommandParameter="{Binding NoteEntityType}" ImageSource="{Binding IconSaveUri}"/>
                <CustomControls:ImageButton Content="{Binding ResourceCommandBack}" Command="{Binding BackToNoteListCommand}" ImageSource="{Binding IconBackUri}" HorizontalAlignment="Right"/>
            </telerik:RadDockPanel>
            <CustomControls:ClippingBorder Style="{StaticResource PageContentInnerContainerStyle}" Padding="8" telerik:RadDockPanel.Dock="Bottom">
                <telerik:RadDockPanel Infrastructure:ValidationScope.Errors="{Binding ValidationErrors}">
                    <TextBlock Text="{Binding ResourceFormLabelNoteText}" HorizontalAlignment="Left" telerik:RadDockPanel.Dock="Top"/>
                    <TextBox x:Name="txtNote" Text="{Binding SelectedNote.Text, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnExceptions=True}" Width="Auto" Height="Auto" Margin="0,8,0,0" telerik:RadDockPanel.Dock="Bottom"/>
                    <!--<telerikEditor:RadEditor Html="{Binding SelectedNote.Text, Mode=TwoWay}"/>-->
                </telerik:RadDockPanel>
            </CustomControls:ClippingBorder>
        </telerik:RadDockPanel>
    </Border>

</UserControl>
