|
@@ -8,23 +8,37 @@
|
|
|
x:Class="Neptune.View.Controls.EditorHost"
|
|
x:Class="Neptune.View.Controls.EditorHost"
|
|
|
DataContext="{mvvm:DataContextSource vm:EditorHostViewModel}">
|
|
DataContext="{mvvm:DataContextSource vm:EditorHostViewModel}">
|
|
|
<Grid>
|
|
<Grid>
|
|
|
- <ContentPresenter HorizontalAlignment="Stretch"
|
|
|
|
|
- VerticalAlignment="Stretch"
|
|
|
|
|
- HorizontalContentAlignment="Stretch"
|
|
|
|
|
- VerticalContentAlignment="Stretch"
|
|
|
|
|
- Background="{StaticResource NeptuneDarkBackgroundBrush}"
|
|
|
|
|
- Content="{Binding $parent[controls:EditorHost].DataContext.CurrentConfigEditor}"
|
|
|
|
|
- IsVisible="{Binding $parent[controls:EditorHost].DataContext.IsEditorAvailable}">
|
|
|
|
|
- <ContentPresenter.DataTemplates>
|
|
|
|
|
- <DataTemplate DataType="vme:XteaKeysEditorViewModel">
|
|
|
|
|
- <editors:XteaKeysEditor />
|
|
|
|
|
- </DataTemplate>
|
|
|
|
|
|
|
+ <HeaderedContentControl Classes="PanelContainer"
|
|
|
|
|
+ IsVisible="{Binding IsEditorAvailable}">
|
|
|
|
|
+ <HeaderedContentControl.Header>
|
|
|
|
|
+ <Grid ColumnDefinitions="Auto,Auto">
|
|
|
|
|
+ <TextBlock Grid.Column="0"
|
|
|
|
|
+ Margin="6"
|
|
|
|
|
+ Text="{Binding SelectedConfigMember.FriendlyName}"
|
|
|
|
|
+ FontSize="15" />
|
|
|
|
|
|
|
|
- <DataTemplate DataType="{x:Null}">
|
|
|
|
|
|
|
+ <TextBlock Grid.Column="1"
|
|
|
|
|
+ Margin="0,6,6,6"
|
|
|
|
|
+ Text="{Binding SelectedConfigMember.JsonFilePath}"
|
|
|
|
|
+ FontSize="15"
|
|
|
|
|
+ Opacity="0.5" />
|
|
|
|
|
+ </Grid>
|
|
|
|
|
+ </HeaderedContentControl.Header>
|
|
|
|
|
|
|
|
- </DataTemplate>
|
|
|
|
|
- </ContentPresenter.DataTemplates>
|
|
|
|
|
- </ContentPresenter>
|
|
|
|
|
|
|
+ <ContentPresenter Margin="0,2,2,2"
|
|
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
|
|
+ VerticalAlignment="Stretch"
|
|
|
|
|
+ HorizontalContentAlignment="Stretch"
|
|
|
|
|
+ VerticalContentAlignment="Stretch"
|
|
|
|
|
+ Background="{StaticResource NeptuneDarkBackgroundBrush}"
|
|
|
|
|
+ Content="{Binding $parent[controls:EditorHost].DataContext.CurrentConfigEditor}">
|
|
|
|
|
+ <ContentPresenter.DataTemplates>
|
|
|
|
|
+ <DataTemplate DataType="vme:XteaKeysEditorViewModel">
|
|
|
|
|
+ <editors:XteaKeysEditor />
|
|
|
|
|
+ </DataTemplate>
|
|
|
|
|
+ </ContentPresenter.DataTemplates>
|
|
|
|
|
+ </ContentPresenter>
|
|
|
|
|
+ </HeaderedContentControl>
|
|
|
|
|
|
|
|
<Grid ColumnDefinitions="Auto,Auto,Auto"
|
|
<Grid ColumnDefinitions="Auto,Auto,Auto"
|
|
|
RowDefinitions="Auto,Auto"
|
|
RowDefinitions="Auto,Auto"
|