Table of Contents

Class MainWindowBase

Namespace
HeBianGu.General.WpfControlLib
Assembly
HeBianGu.General.WpfControlLib.dll
[TemplatePart(Name = "PART_NotifyIcon", Type = typeof(NotifyIcon))]
public abstract class MainWindowBase : WindowBase, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IWindowBase, IMainWindow
Inheritance
MainWindowBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

MainWindowBase()

public MainWindowBase()

Fields

NotifyIconSourceProperty

public static readonly DependencyProperty NotifyIconSourceProperty

Field Value

DependencyProperty

ViewBoxHeightProperty

public static readonly DependencyProperty ViewBoxHeightProperty

Field Value

DependencyProperty

ViewBoxWidthProperty

public static readonly DependencyProperty ViewBoxWidthProperty

Field Value

DependencyProperty

Properties

NotifyIconSource

public ImageSource NotifyIconSource { get; set; }

Property Value

ImageSource

NotifyWindowCommand

public ICommand NotifyWindowCommand { get; protected set; }

Property Value

ICommand

ViewBoxHeight

public double ViewBoxHeight { get; set; }

Property Value

double

ViewBoxWidth

public double ViewBoxWidth { get; set; }

Property Value

double

Methods

AddSnackMessage(object)

public abstract void AddSnackMessage(object message)

Parameters

message object

AddSnackMessage(object, object, Action)

public abstract void AddSnackMessage(object message, object actionContent, Action actionHandler)

Parameters

message object
actionContent object
actionHandler Action

AddSnackMessage<TArgument>(object, object, Action<TArgument>, TArgument)

public abstract void AddSnackMessage<TArgument>(object message, object actionContent, Action<TArgument> actionHandler, TArgument actionArgument)

Parameters

message object
actionContent object
actionHandler Action<TArgument>
actionArgument TArgument

Type Parameters

TArgument

CloseContainer()

public abstract void CloseContainer()

GetAdornerElement()

public FrameworkElement GetAdornerElement()

Returns

FrameworkElement

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

OnCloseAnimation()

protected override void OnCloseAnimation()

ShowContainer(FrameworkElement, Predicate<Panel>)

public abstract void ShowContainer(FrameworkElement element, Predicate<Panel> predicate = null)

Parameters

element FrameworkElement
predicate Predicate<Panel>

ShowNotify(string, string, NotifyBalloonIcon, int)

public void ShowNotify(string tipTitle, string tipText, NotifyBalloonIcon tipIcon = NotifyBalloonIcon.Info, int timeout = 1000)

Parameters

tipTitle string
tipText string
tipIcon NotifyBalloonIcon
timeout int

ShowWindowNotifyMessage(INotifyMessageItem)

public abstract void ShowWindowNotifyMessage(INotifyMessageItem message)

Parameters

message INotifyMessageItem