C# Class LearnLanguages.Common.ViewModelBases.ViewModelBase

Inheritance: Caliburn.Micro.Screen, IViewModelBase
Mostra file Open project: ibgib/LearnLanguages

Public Methods

Method Description
GetCoreViewModelName ( Type viewModelType, bool withSpaces = false ) : string

Retrieves core test of ViewModel's type name, using convention "[CoreText]ViewModel". Returns [Text], optionally inserting spaces before any capital letters if withSpaces == true. E.g. AddNewViewModel, withSpaces = false returns "AddNew". AddNewViewModel, withSpaces = true returns "Add New".

LoadFromUri ( Uri uri ) : bool

Use this to configure the ViewModel's properties. The intended format (I haven't implemented it yet) is key= property name, value = property value as string. Return true if query string was loaded correctly. Default base implementation just returns true, ignoring the queryString parameter.

OnImportsSatisfied ( ) : void
ViewModelBase ( ) : System

Private Methods

Method Description
GetCoreViewModelName ( string viewModelTypeName, bool withSpaces = false ) : string

Method Details

GetCoreViewModelName() public static method

Retrieves core test of ViewModel's type name, using convention "[CoreText]ViewModel". Returns [Text], optionally inserting spaces before any capital letters if withSpaces == true. E.g. AddNewViewModel, withSpaces = false returns "AddNew". AddNewViewModel, withSpaces = true returns "Add New".
public static GetCoreViewModelName ( Type viewModelType, bool withSpaces = false ) : string
viewModelType System.Type
withSpaces bool
return string

LoadFromUri() public method

Use this to configure the ViewModel's properties. The intended format (I haven't implemented it yet) is key= property name, value = property value as string. Return true if query string was loaded correctly. Default base implementation just returns true, ignoring the queryString parameter.
public LoadFromUri ( Uri uri ) : bool
uri System.Uri
return bool

OnImportsSatisfied() public method

public OnImportsSatisfied ( ) : void
return void

ViewModelBase() public method

public ViewModelBase ( ) : System
return System