Abstract |
public abstract class AbstractViewContent : IViewContent, IWorkbenchContent, IMVCController, IDisposable, INotifyPropertyChanged, IServiceProvider, ICanBeDirty
The AbstractViewContent type exposes the following members.
| Name | Description | |
|---|---|---|
| AbstractViewContent | Initializes a new instance of the AbstractViewContent class |
| Name | Description | |
|---|---|---|
| CloseCommand | Gets the command that closes the view content. | |
| CloseWithSolution | Gets whether this view content should be closed when the solution is closed. | |
| ContentId | Gets or sets the content identifier. Here, the content identifier is calculated of the reference hash of the document. Setting is not implemented here. | |
| IconSource | Gets or sets the icon source. | |
| InfoTip | Gets or sets the informational tooltip for the view content. | |
| InitiallyFocusedControl | Gets the control which has focus initially. | |
| IsActive | Gets or sets a value indicating whether the view of this instance is active in the UI. | |
| IsContentVisible | Gets a value indicating whether the content of this document window is visible (it is if either IsActive or IsSelected is visible. | |
| IsDirty | If this property returns true the content has changed since the last load/save operation. | |
| IsDisposed | Gets a value indicating whether the view content has been disposed. | |
| IsDisposeInProgress | Gets or sets a value indicating whether disposal is in progress. | |
| IsReadOnly | Gets if the view content is read-only (can be saved only when choosing another file name). | |
| IsSelected | Gets or sets a value indicating whether the view of this instance is selected (e.g. inside its container). | |
| IsViewOnly | Gets if the view content is view-only (cannot be saved at all). | |
| IsVisible | 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. | |
| ModelObject | Gets the model (document) that this controller manages. | |
| Services | Gets or sets the service container for the view content. | |
| Title | Gets/Sets the title of the current tab page. This value will be passed through the string parser before being displayed. | |
| ViewObject | Gets or sets the GUI element that shows the model to the user. |
| Name | Description | |
|---|---|---|
| BuildNavPoint | Builds an INavigationPoint for the current position. | |
| CanClose | Determines whether the view content can be closed. | |
| ClearIsDirty | Clears the dirty state. | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
| EhTitleLocalizationChanged | Updates the title when the localized title changes. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetService(Type) | Gets the service object of the specified type. | |
| GetServiceT | Gets a required service of the specified type. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| NotifyContentIdChanged | Can be used to notify the view content that the ContentId maybe has changed. | |
| OnClose | Closes the view content. | |
| OnIsDirtyChanged | Raises notifications that the dirty state has changed. | |
| OnPropertyChanged | Raises the PropertyChanged event. | |
| SetDirty | Sets the dirty state. | |
| SetDisposeInProgress | 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). | |
| SetLocalizedInfoTip | Sets a localized info tip that will update automatically when the language changes. | |
| SetLocalizedTitle | Sets a localized title that will update automatically when the language changes. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| Disposed | Occurs when the view content has been disposed. | |
| IsDirtyChanged | Occurs when the dirty state changes. | |
| PropertyChanged | Occurs when a property value changes. |
| Name | Description | |
|---|---|---|
| _isActive | Stores whether the view content is active. | |
| _isSelected | Stores whether the view content is selected. | |
| _isVisible | Stores whether the view content is visible. | |
| _title | Stores the current title. | |
| _titleToBeLocalized | Stores the localized title source. |