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.
34 lines
866 B
34 lines
866 B
using Avalonia; |
|
using Avalonia.Input; |
|
using StabilityMatrix.Avalonia.Controls; |
|
using StabilityMatrix.Core.Attributes; |
|
|
|
namespace StabilityMatrix.Avalonia.Views.Dialogs; |
|
|
|
[Transient] |
|
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; |
|
} |
|
}
|
|
|