Share via


WindowViewModel Class

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.MVVM.NotifyPropertyChangedDispatcherObject
    Microsoft.TeamFoundation.MVVM.ViewModelBase
      Microsoft.TeamFoundation.MVVM.ValidatingViewModelBase
        Microsoft.TeamFoundation.MVVM.WindowViewModel

Namespace:  Microsoft.TeamFoundation.MVVM
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)

Syntax

'Declaration
Public Class WindowViewModel _
    Inherits ValidatingViewModelBase
public class WindowViewModel : ValidatingViewModelBase
public ref class WindowViewModel : public ValidatingViewModelBase
type WindowViewModel =  
    class 
        inherit ValidatingViewModelBase 
    end
public class WindowViewModel extends ValidatingViewModelBase

The WindowViewModel type exposes the following members.

Constructors

  Name Description
Public method WindowViewModel(ViewModelBase)
Public method WindowViewModel(Dispatcher, ViewModelBase)

Top

Properties

  Name Description
Public property DialogResult
Public property Dispatcher Dispatcher associated with this object. (Inherited from NotifyPropertyChangedDispatcherObject.)
Public property MessageBoxService (Inherited from ViewModelBase.)
Public property ParentViewModel (Inherited from ViewModelBase.)
Public property UIHostService (Inherited from ViewModelBase.)
Public property ValidationRules A collection of validation rules. (Inherited from ValidatingViewModelBase.)
Public property WindowDisplayService (Inherited from ViewModelBase.)

Top

Methods

  Name Description
Protected method AddDependencySource(String, INotifyCollectionChanged) (Inherited from NotifyPropertyChangedDispatcherObject.)
Protected method AddDependencySource(String, INotifyPropertyChanged) (Inherited from NotifyPropertyChangedDispatcherObject.)
Public method CheckAccessBeginExecute Executes the specified action on a thread associated with object's dispatcher. This invokes a BeginInvoke on the Dispatcher, does not wait for the action to complete -- returns immediately. (Inherited from NotifyPropertyChangedDispatcherObject.)
Public method CheckAccessExecute(Action) Executes the specified action on a thread associated with object's dispatcher. (Inherited from NotifyPropertyChangedDispatcherObject.)
Public method CheckAccessExecute<TResult>(Func<TResult>) (Inherited from NotifyPropertyChangedDispatcherObject.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetDependencySourceName(INotifyCollectionChanged) (Inherited from NotifyPropertyChangedDispatcherObject.)
Protected method GetDependencySourceName(INotifyPropertyChanged) (Inherited from NotifyPropertyChangedDispatcherObject.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetWaitCursor (Inherited from ViewModelBase.)
Public method HasErrors Checks if at least one validation rule is broken. (Inherited from ValidatingViewModelBase.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnWindowActivated Allows Window.Activated hook
Protected method OnWindowClosed Allows Window.Closed hook
Protected method OnWindowClosing Allows Window.OnClosing hook
Protected method OnWindowDeactivated Allows Window.Deactivated hook
Protected method OnWindowLoaded Allows Window.Loaded/UserControl.Loaded hook
Protected method OnWindowUnloaded Allows Window.Unloaded/UserControl.Unloaded hook
Protected method RaisePropertyChanged (Inherited from ViewModelBase.)
Protected method ReceiveWeakEvent (Inherited from NotifyPropertyChangedDispatcherObject.)
Public method RegisterService (Inherited from ViewModelBase.)
Public method RegisterServices (Inherited from ViewModelBase.)
Protected method RemoveDependencySource(String, INotifyCollectionChanged) (Inherited from NotifyPropertyChangedDispatcherObject.)
Protected method RemoveDependencySource(String, INotifyPropertyChanged) (Inherited from NotifyPropertyChangedDispatcherObject.)
Public method RequestClose
Public method ResolveService<TService> Resolves the service. (Inherited from ViewModelBase.)
Protected method SetAndRaisePropertyChanged(Boolean%, Boolean, String) A helper method that sets property value and raises PropertyChanged event if the value has changed. Optimized implementation for System.Boolean type. (Inherited from NotifyPropertyChangedDispatcherObject.)
Protected method SetAndRaisePropertyChanged(Int32%, Int32, String) A helper method that sets property value and raises PropertyChanged event if the value has changed. Optimized implementation for System.Int32 type. (Inherited from NotifyPropertyChangedDispatcherObject.)
Protected method SetAndRaisePropertyChanged(String%, String, String) A helper method that sets property value and raises PropertyChanged event if the value has changed. Optimized implementation for string type. (Inherited from NotifyPropertyChangedDispatcherObject.)
Protected method SetAndRaisePropertyChanged<T>(T%, T, String) A helper method that sets property value and raises PropertyChanged event if the value has changed. (Inherited from NotifyPropertyChangedDispatcherObject.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryResolveService(Type) (Inherited from ViewModelBase.)
Public method TryResolveService<TService>() (Inherited from ViewModelBase.)
Public method UnRegisterService (Inherited from ViewModelBase.)
Public method UnRegisterServices (Inherited from ViewModelBase.)
Protected method VerifyAccess Enforces that the calling thread has access to this object. (Inherited from NotifyPropertyChangedDispatcherObject.)

Top

Events

  Name Description
Public event PropertyChanged Occurs when a property value changes. (Inherited from NotifyPropertyChangedDispatcherObject.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property IDataErrorInfo.Error Gets an error message indicating what is wrong with this object. (Inherited from ValidatingViewModelBase.)
Explicit interface implemetationPrivate property IDataErrorInfo.Item Gets the error message for the property that has the given name. (Inherited from ValidatingViewModelBase.)
Explicit interface implemetationPrivate method IWeakEventListener.ReceiveWeakEvent (Inherited from NotifyPropertyChangedDispatcherObject.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.MVVM Namespace