Click or drag to resize

AbstractViewContent Class

Provides a default implementation for the IViewContent interface. It provides a files collection that, by default, automatically registers the view with the files added to it. Several properties have default implementation that depend on the contents of the files collection, e.g. IsDirty is true when at least one of the files in the collection is dirty. To support the changed event, this class registers event handlers with the members of the files collection. When used with an empty Files collection, IsViewOnly will return true and this class can be used as a base class for view contents not using files.
Inheritance Hierarchy

Namespace: Altaxo.Gui.Workbench
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public abstract class AbstractViewContent : IViewContent, 
	IWorkbenchContent, IMVCController, IDisposable, INotifyPropertyChanged, IServiceProvider, 
	ICanBeDirty

The AbstractViewContent type exposes the following members.

Constructors
 NameDescription
Protected methodAbstractViewContentInitializes a new instance of the AbstractViewContent class
Top
Properties
 NameDescription
Public propertyCloseCommand 
Public propertyCloseWithSolution 
Public propertyContentId Gets or sets the content identifier. Here, the content identifier is calculated of the reference hash of the document. Setting is not implemented here.
Public propertyIconSource 
Public propertyInfoTip 
Public propertyInitiallyFocusedControl 
Public propertyIsActive Gets or sets a value indicating whether the view of this instance is active in the UI.
Public propertyIsContentVisible Gets a value indicating whether the content of this document window is visible (it is if either IsActive or IsSelected is visible.
Public propertyIsDirty 
Public propertyIsDisposed 
Public propertyIsDisposeInProgress 
Public propertyIsReadOnly Gets if the view content is read-only (can be saved only when choosing another file name).
Public propertyIsSelected Gets or sets a value indicating whether the view of this instance is selected (e.g. inside its container).
Public propertyIsViewOnly Gets if the view content is view-only (cannot be saved at all).
Public propertyIsVisible Gets or sets the visibility of the document. If false, the document tab header is not visible (but the document itself maybe visible !). If true, the document tab header is visible (if it fits in the bar), and the document is visible, if it is selected, too.
Public propertyModelObject 
Public propertyServices 
Public propertyTitle Gets/Sets the title of the current tab page. This value will be passed through the string parser before being displayed.
Public propertyViewObject 
Top
Methods
 NameDescription
Public methodBuildNavPoint 
Protected methodCanClose 
Public methodClearIsDirty 
Public methodDisposeReleases all resources used by the AbstractViewContent
Protected methodEhTitleLocalizationChanged 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetService(Type) 
Public methodGetServiceT 
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNotifyContentIdChanged Can be used to notify the view content that the ContentId maybe has changed.
Protected methodOnClose 
Public methodOnIsDirtyChanged 
Protected methodOnPropertyChanged 
Public methodSetDirty 
Public methodSetDisposeInProgress Announces that this view content is about to be disposed very soon. The view content should remain passiv (e.g. should not react to events any more), but should not release its resources yet (this is done later in Dispose).
Protected methodSetLocalizedInfoTip Sets a localized info tip that will update automatically when the language changes.
Protected methodSetLocalizedTitle Sets a localized title that will update automatically when the language changes.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
Fields
See Also