mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-14 01:25:45 -05:00
* Applied some code conventions, used more current language features which should improve readability and making it easier to re-factor / modify. Also fixed some typos in documentation. * Changes based on PR conversation for the SystemInfo * Some modifications due to conversations on the PR, especially I removed the FlagsAttribute on the BalloonFlags. * Removed Silverlight targeting in code.
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using System.Windows;
|
|
|
|
namespace Samples
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for FancyToolTip.xaml
|
|
/// </summary>
|
|
public partial class FancyToolTip
|
|
{
|
|
#region InfoText dependency property
|
|
|
|
/// <summary>
|
|
/// The tooltip details.
|
|
/// </summary>
|
|
public static readonly DependencyProperty InfoTextProperty =
|
|
DependencyProperty.Register(nameof(InfoText),
|
|
typeof (string),
|
|
typeof (FancyToolTip),
|
|
new FrameworkPropertyMetadata(string.Empty));
|
|
|
|
/// <summary>
|
|
/// A property wrapper for the <see cref="InfoTextProperty"/>
|
|
/// dependency property:<br/>
|
|
/// The tooltip details.
|
|
/// </summary>
|
|
public string InfoText
|
|
{
|
|
get { return (string) GetValue(InfoTextProperty); }
|
|
set { SetValue(InfoTextProperty, value); }
|
|
}
|
|
|
|
#endregion
|
|
|
|
public FancyToolTip()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
}
|
|
} |