39 lines
2.2 KiB
XML
39 lines
2.2 KiB
XML
<UserControl x:Class="JD.TplEditor.Document.TplDocumentView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:view="clr-namespace:JD.PropertyEditor.View;assembly=JD.PropertyEditor"
|
|
xmlns:document="clr-namespace:JD.TplEditor.Document"
|
|
xmlns:syntaxeditor="http://schemas.actiprosoftware.com/winfx/xaml/syntaxeditor"
|
|
xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800"
|
|
d:DataContext="{d:DesignInstance document:TplDocumentViewModel}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="Auto"></ColumnDefinition>
|
|
<!--<ColumnDefinition Width="*"></ColumnDefinition>-->
|
|
</Grid.ColumnDefinitions>
|
|
<view:PropertyEditorControl x:Name="PropertyEditorControl"
|
|
Grid.Column="0"
|
|
SelectedObject="{Binding Document.Content}"
|
|
ArePropertiesAutoExpanded="True"
|
|
CollectionPropertyDisplayMode="EditableInline">
|
|
</view:PropertyEditorControl>
|
|
<shared:AnimatedExpander Grid.Column="1" Header="File content" ExpandDirection="Left">
|
|
<syntaxeditor:SyntaxEditor Width="500"
|
|
Text="{Binding ContentAsString}"
|
|
Document="{Binding}">
|
|
</syntaxeditor:SyntaxEditor>
|
|
</shared:AnimatedExpander>
|
|
|
|
<!--<syntaxeditor:SyntaxEditor Grid.Column="2" x:Name="SyntaxEditorControl"
|
|
Text="{Binding OriginalContentAsString}"
|
|
Document="{Binding}"
|
|
>
|
|
|
|
</syntaxeditor:SyntaxEditor>-->
|
|
</Grid>
|
|
</UserControl>
|