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.3572.0 (4.8.3572.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 Gets the command that closes the view content.
Public propertyCloseWithSolution Gets whether this view content should be closed when the solution is closed.
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 Gets or sets the icon source.
Public propertyInfoTip Gets or sets the informational tooltip for the view content.
Public propertyInitiallyFocusedControl Gets the control which has focus initially.
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 If this property returns true the content has changed since the last load/save operation.
Public propertyIsDisposed Gets a value indicating whether the view content has been disposed.
Public propertyIsDisposeInProgress Gets or sets a value indicating whether disposal is in progress.
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 Gets the model (document) that this controller manages.
Public propertyServices Gets or sets the service container for the view content.
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 Gets or sets the GUI element that shows the model to the user.
Top
Methods
 NameDescription
Public methodBuildNavPoint Builds an INavigationPoint for the current position.
Protected methodCanClose Determines whether the view content can be closed.
Public methodClearIsDirty Clears the dirty state.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodEhTitleLocalizationChanged Updates the title when the localized title changes.
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)Gets the service object of the specified type.
Public methodGetServiceT Gets a required service of the specified type.
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 Closes the view content.
Public methodOnIsDirtyChanged Raises notifications that the dirty state has changed.
Protected methodOnPropertyChanged Raises the PropertyChanged event.
Public methodSetDirty Sets the dirty state.
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
 NameDescription
Public eventDisposed Occurs when the view content has been disposed.
Public eventIsDirtyChanged Occurs when the dirty state changes.
Public eventPropertyChangedOccurs when a property value changes.
Top
Fields
 NameDescription
Protected field_isActive Stores whether the view content is active.
Protected field_isSelected Stores whether the view content is selected.
Protected field_isVisible Stores whether the view content is visible.
Protected field_title Stores the current title.
Protected field_titleToBeLocalized Stores the localized title source.
Top
See Also