You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
140 lines
5.8 KiB
140 lines
5.8 KiB
<controls:UserControlBase |
|
x:Class="StabilityMatrix.Avalonia.Views.InferenceTextToImageView" |
|
xmlns="https://github.com/avaloniaui" |
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls" |
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
xmlns:mocks="clr-namespace:StabilityMatrix.Avalonia.DesignData" |
|
xmlns:vmInference="using:StabilityMatrix.Avalonia.ViewModels.Inference" |
|
x:Name="RootControl" |
|
d:DataContext="{x:Static mocks:DesignData.InferenceTextToImageViewModel}" |
|
d:DesignHeight="800" |
|
d:DesignWidth="1000" |
|
x:DataType="vmInference:InferenceTextToImageViewModel" |
|
Focusable="True" |
|
mc:Ignorable="d"> |
|
|
|
<controls:UserControlBase.Styles> |
|
|
|
<!-- Default grid splitter style --> |
|
<Style Selector="GridSplitter"> |
|
<Setter Property="Opacity" Value="0.6" /> |
|
<Setter Property="Background" Value="{DynamicResource ScrollBarTrackStroke}" /> |
|
<!--<Setter Property="Background" Value="{DynamicResource ScrollBarTrackStroke}" />--> |
|
<Setter Property="BorderThickness" Value="6" /> |
|
<Setter Property="CornerRadius" Value="4" /> |
|
</Style> |
|
|
|
</controls:UserControlBase.Styles> |
|
|
|
<Grid> |
|
<DockControl |
|
x:Name="Dock" |
|
InitializeFactory="True" |
|
InitializeLayout="True"> |
|
<DockControl.Factory> |
|
<Factory /> |
|
</DockControl.Factory> |
|
|
|
<RootDock |
|
x:Name="Root" |
|
DefaultDockable="{Binding #MainLayout}" |
|
Id="Root" |
|
IsCollapsable="False"> |
|
|
|
<!-- Windows --> |
|
<!--<RootDock.Windows> |
|
<DockWindow |
|
x:Name="DockWindow" |
|
Width="250" |
|
Height="400" |
|
Id="DockWindow" |
|
Topmost="True" |
|
X="281" |
|
Y="233"> |
|
<RootDock ActiveDockable="{Binding #ToolDock}" Window="{Binding #DockWindow}"> |
|
<ToolDock x:Name="ToolDock"> |
|
<Tool |
|
x:Name="ToolWindow" |
|
Title="Tool Window" |
|
x:DataType="Tool" |
|
Id="ToolWindow"> |
|
<TextBlock Text="{Binding Title}" /> |
|
</Tool> |
|
</ToolDock> |
|
</RootDock> |
|
</DockWindow> |
|
</RootDock.Windows>--> |
|
|
|
<ProportionalDock |
|
x:Name="MainLayout" |
|
Id="MainLayout" |
|
Orientation="Horizontal"> |
|
|
|
<!-- Left Pane --> |
|
<ToolDock |
|
x:Name="ConfigPane" |
|
Alignment="Left" |
|
Id="ConfigPane" |
|
Proportion="0.25"> |
|
<Tool |
|
x:Name="ConfigTool" |
|
Title="Config" |
|
x:DataType="Tool" |
|
Id="ConfigTool"> |
|
<controls:StackCard |
|
DataContext="{ReflectionBinding ElementName=Dock, Path=DataContext.StackCardViewModel}"/> |
|
</Tool> |
|
</ToolDock> |
|
|
|
<ProportionalDockSplitter x:Name="LeftSplitter" Id="LeftSplitter" /> |
|
|
|
<!-- Prompt Pane --> |
|
<ToolDock |
|
x:Name="PromptPane" |
|
Alignment="Right" |
|
Id="PromptPane" |
|
Proportion="0.3"> |
|
<Tool |
|
x:Name="PromptTool" |
|
Title="Prompt" |
|
x:DataType="Tool" |
|
Id="PromptTool"> |
|
<controls:PromptCard DataContext="{ReflectionBinding ElementName=Dock, Path=DataContext.PromptCardViewModel}" /> |
|
</Tool> |
|
</ToolDock> |
|
|
|
<ProportionalDockSplitter x:Name="RightSplitter" Id="RightSplitter" /> |
|
|
|
<!-- Right Pane --> |
|
<ToolDock |
|
x:Name="ImageGalleryPane" |
|
Alignment="Right" |
|
Id="ImageGalleryPane" |
|
Proportion="0.3"> |
|
<Tool |
|
x:Name="ImageGalleryTool" |
|
Title="Image Output" |
|
x:DataType="Tool" |
|
Id="ImageGalleryTool"> |
|
<ExperimentalAcrylicBorder> |
|
<ExperimentalAcrylicBorder.Material> |
|
<ExperimentalAcrylicMaterial |
|
FallbackColor="{DynamicResource ThemeBackgroundColor}" |
|
TintColor="Black" |
|
TintOpacity="0.6" |
|
MaterialOpacity="0.8" |
|
BackgroundSource="Digger" /> |
|
</ExperimentalAcrylicBorder.Material> |
|
<controls:ImageGalleryCard DataContext="{ReflectionBinding ElementName=Dock, Path=DataContext.ImageGalleryCardViewModel}" /> |
|
</ExperimentalAcrylicBorder> |
|
</Tool> |
|
</ToolDock> |
|
|
|
</ProportionalDock> |
|
</RootDock> |
|
|
|
</DockControl> |
|
</Grid> |
|
</controls:UserControlBase>
|
|
|