C# Класс LearnLanguages.Common.ViewModelBases.ViewModelBase

Наследование: Caliburn.Micro.Screen, IViewModelBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
GetCoreViewModelName ( string viewModelTypeName, bool withSpaces = false ) : string

Описание методов

GetCoreViewModelName() публичный статический Метод

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
Результат string

LoadFromUri() публичный Метод

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
Результат bool

OnImportsSatisfied() публичный Метод

public OnImportsSatisfied ( ) : void
Результат void

ViewModelBase() публичный Метод

public ViewModelBase ( ) : System
Результат System