using System.Windows; namespace Samples { /// /// Interaction logic for FancyToolTip.xaml /// public partial class FancyToolTip { #region InfoText dependency property /// /// The tooltip details. /// public static readonly DependencyProperty InfoTextProperty = DependencyProperty.Register(nameof(InfoText), typeof (string), typeof (FancyToolTip), new FrameworkPropertyMetadata(string.Empty)); /// /// A property wrapper for the /// dependency property:
/// The tooltip details. ///
public string InfoText { get { return (string) GetValue(InfoTextProperty); } set { SetValue(InfoTextProperty, value); } } #endregion public FancyToolTip() { InitializeComponent(); } } }