C# Class withSIX.Core.Presentation.Wpf.Extensions.ActivationHelper

显示文件 Open project: SIXNetworks/withSIX.Desktop

Public Methods

Method Description
GetActivationForView ( this fe ) : IObservable>.Tuple
WhenControlActivated ( this This, Action block ) : IDisposable

Use this on any aribrary framework element to register to Loaded and Unloaded to activate and deactivate observables The returned disposable should only be disposed if you want to manually deregister this operation

WhenControlActivated ( this This, Func block ) : IDisposable

Use this on any aribrary framework element to register to Loaded and Unloaded to activate and deactivate observables The returned disposable should only be disposed if you want to manually deregister this operation

handleViewActivation ( Func block, Tuple activation ) : IDisposable

Method Details

GetActivationForView() public static method

public static GetActivationForView ( this fe ) : IObservable>.Tuple
fe this
return IObservable>.Tuple

WhenControlActivated() public static method

Use this on any aribrary framework element to register to Loaded and Unloaded to activate and deactivate observables The returned disposable should only be disposed if you want to manually deregister this operation
public static WhenControlActivated ( this This, Action block ) : IDisposable
This this
block Action
return IDisposable

WhenControlActivated() public static method

Use this on any aribrary framework element to register to Loaded and Unloaded to activate and deactivate observables The returned disposable should only be disposed if you want to manually deregister this operation
public static WhenControlActivated ( this This, Func block ) : IDisposable
This this
block Func
return IDisposable

handleViewActivation() public static method

public static handleViewActivation ( Func block, Tuple activation ) : IDisposable
block Func
activation Tuple
return IDisposable