Multi-Platform Package Manager for Stable Diffusion
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.

63 lines
2.8 KiB

<controls:UserControlBase
x:Class="StabilityMatrix.Avalonia.Views.InferencePage"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:avaloniaEdit="clr-namespace:AvaloniaEdit;assembly=AvaloniaEdit"
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:icons="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mocks="clr-namespace:StabilityMatrix.Avalonia.DesignData"
xmlns:system="clr-namespace:System;assembly=System.Runtime"
xmlns:vmInference="using:StabilityMatrix.Avalonia.ViewModels.Inference"
xmlns:ui="using:FluentAvalonia.UI.Controls"
xmlns:vm="clr-namespace:StabilityMatrix.Avalonia.ViewModels"
d:DataContext="{x:Static mocks:DesignData.InferenceViewModel}"
d:DesignHeight="650"
d:DesignWidth="1000"
x:DataType="vm:InferenceViewModel"
mc:Ignorable="d">
<Grid>
<ui:TabView
Grid.Row="0"
VerticalAlignment="Stretch"
CanReorderTabs="True"
CloseButtonOverlayMode="Always"
TabStripHeader=""
AddTabButtonCommand="{Binding AddTabCommand}"
TabItems="{Binding Tabs}"
SelectedItem="{Binding SelectedTab, Mode=TwoWay}"
TabWidthMode="SizeToContent">
<ui:TabView.TabItemTemplate>
<DataTemplate DataType="{x:Type vmInference:InferenceTextToImageViewModel}">
<ui:TabViewItem Header="Project 1"
IconSource="Document"
Content="{Binding}">
</ui:TabViewItem>
</DataTemplate>
</ui:TabView.TabItemTemplate>
<ui:TabView.TabStripFooter>
<StackPanel
Orientation="Horizontal"
Margin="0,4,16,4"
Spacing="8"
HorizontalAlignment="Right"
VerticalAlignment="Top">
<Button
IsVisible="{Binding !IsConnected}"
Command="{Binding ConnectCommand}"
Classes="accent"
Content="Connect"/>
<Button
IsVisible="{Binding IsConnected}"
Command="{Binding DisconnectCommand}"
Content="Disconnect"/>
<TextBlock
Text="Inference"
Theme="{DynamicResource SubtitleTextBlockStyle}" />
</StackPanel>
</ui:TabView.TabStripFooter>
</ui:TabView>
</Grid>
</controls:UserControlBase>