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.
 
 
 

33 lines
845 B

using Avalonia;
using Avalonia.Input;
using Avalonia.Interactivity;
using StabilityMatrix.Avalonia.Controls;
namespace StabilityMatrix.Avalonia.Views.Dialogs;
public partial class ImageViewerDialog : UserControlBase
{
public static readonly StyledProperty<bool> IsFooterEnabledProperty = AvaloniaProperty.Register<
ImageViewerDialog,
bool
>("IsFooterEnabled");
/// <summary>
/// Whether the footer with file name / size will be shown.
/// </summary>
public bool IsFooterEnabled
{
get => GetValue(IsFooterEnabledProperty);
set => SetValue(IsFooterEnabledProperty, value);
}
public ImageViewerDialog()
{
InitializeComponent();
}
private void InfoButton_OnTapped(object? sender, TappedEventArgs e)
{
InfoTeachingTip.IsOpen ^= true;
}
}