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.
52 lines
1.5 KiB
52 lines
1.5 KiB
// Author: Gockner, Simon
|
|
// Created: 2021-04-06
|
|
// Copyright(c) 2021 SimonG. All Rights Reserved.
|
|
|
|
using System;
|
|
using Avalonia.Controls;
|
|
|
|
namespace Lib.NotifyIcon
|
|
{
|
|
public interface INotifyIcon
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the path for the notify icon
|
|
/// </summary>
|
|
public string IconPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the tooltip text for the notify icon
|
|
/// </summary>
|
|
public string ToolTipText { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the context menu for the notify icon
|
|
/// </summary>
|
|
public ContextMenu ContextMenu { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets if the notify icon is visible in the taskbar notification area or not
|
|
/// </summary>
|
|
public bool Visible { get; set; }
|
|
|
|
/// <summary>
|
|
/// Removes the notify icon from the taskbar notification area
|
|
/// </summary>
|
|
public void Remove();
|
|
|
|
/// <summary>
|
|
/// This event is raised when a user clicks on the notification icon
|
|
/// </summary>
|
|
public event EventHandler<EventArgs> Click;
|
|
|
|
/// <summary>
|
|
/// This event is raised when a user double clicks on the notification icon
|
|
/// </summary>
|
|
public event EventHandler<EventArgs> DoubleClick;
|
|
|
|
/// <summary>
|
|
/// This event is raised when a user right clicks on the notification icon
|
|
/// </summary>
|
|
public event EventHandler<EventArgs> RightClick;
|
|
}
|
|
} |