Search Results for

    Show / Hide Table of Contents

    Class ViewModelBase

    Base view model for all MVC-Based windows in the Simplic UI Framework

    Inheritance
    System.Object
    ViewModelBase
    InstanceDataStackConnectionViewModel
    ItemBoxTypeViewModel
    ColumnConfigurationModel
    GridConfigurationModel
    GridVirtualGroupConfiguration
    RegexProperty
    ScheduleViewConfigurationModel
    Implements
    UI.MVC.IViewModelBase
    System.ComponentModel.INotifyPropertyChanged
    IAsyncViewModel
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.UI.MVC
    Assembly: Simplic.UI.dll
    Syntax
    public class ViewModelBase : IViewModelBase, INotifyPropertyChanged, IAsyncViewModel

    Constructors

    | Improve this Doc View Source

    ViewModelBase()

    Create new model base

    Declaration
    public ViewModelBase()

    Properties

    | Improve this Doc View Source

    ForceSave

    get or set a state which indicates if something has changed and needs to be saved. Passes the ForceSave value to the Parent Used by DefaultRibbonWindow to call the OnSave method

    Declaration
    [Browsable(false)]
    public bool ForceSave { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsBusy

    Gets or sets whether the view model is processing data

    Declaration
    [Browsable(false)]
    public bool IsBusy { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsDirty

    Get/Set wether the values has changed in the current ViewModel instance. The default-value is false

    Declaration
    [Browsable(false)]
    public bool IsDirty { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Parent

    gets or sets the parent ViewModel

    Declaration
    [Browsable(false)]
    public IViewModelBase Parent { get; set; }
    Property Value
    Type Description
    UI.MVC.IViewModelBase

    Methods

    | Improve this Doc View Source

    OnClose()

    Called when DefaultRibbonWindow closes used to clear locks

    Declaration
    public virtual void OnClose()
    | Improve this Doc View Source

    PropertySetter<T>(T, Action<T>, Boolean, Boolean, Boolean, String)

    Property setter wrapper to set property values and call CustomPropertySetter in one line

    Declaration
    protected void PropertySetter<T>(T value, Action<T> p, bool setIsDirty = true, bool raisePropertyChanged = true, bool raiseErrorsChanged = true, string propertyName = null)
    Parameters
    Type Name Description
    T value

    Property value

    System.Action<T> p

    Action to execute when setting the property

    System.Boolean setIsDirty

    Whether to set the IsDirty flag to true

    System.Boolean raisePropertyChanged
    System.Boolean raiseErrorsChanged
    System.String propertyName

    Name of the property

    Type Parameters
    Name Description
    T

    Type of the property

    | Improve this Doc View Source

    RaisePropertyChanged(String)

    Raise event for a property which value has changed

    Declaration
    public void RaisePropertyChanged(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the Property

    Events

    | Improve this Doc View Source

    PropertyChanged

    Event which will be raised if an property has changed (Setter)

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    IViewModelBase
    System.ComponentModel.INotifyPropertyChanged
    IAsyncViewModel
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx