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.

35 lines
836 B

using Avalonia;
using Avalonia.Controls;
using Avalonia.Input;
namespace StabilityMatrix.Avalonia.Views.Dialogs;
public partial class ImageViewerDialog : UserControl
{
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();
}
/// <inheritdoc />
protected override void OnKeyDown(KeyEventArgs e)
{
// Handle up/down presses for navigation
base.OnKeyDown(e);
}
}