Show / Hide Table of Contents

Class MainViewModel

MainViewModel implements the UI functions joins them with data and files.

Inheritance
object
MainViewModel
Implements
INotifyPropertyChanged
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OffRouteMap
Assembly: OffRouteMap.dll
Syntax
public class MainViewModel : INotifyPropertyChanged

Constructors

| Edit this page View Source

MainViewModel(IGMapControl)

The Model Constructor needs the map control object.

Declaration
public MainViewModel(IGMapControl gmapControl)
Parameters
Type Name Description
IGMapControl gmapControl

most functions of the UI are focused on the MapControl

Properties

| Edit this page View Source

BeforeClosingCommand

Declaration
public ICommand BeforeClosingCommand { get; }
Property Value
Type Description
ICommand
| Edit this page View Source

GuiZoomFactor

Declaration
public double GuiZoomFactor { get; set; }
Property Value
Type Description
double
| Edit this page View Source

GuiZoomInCommand

Declaration
public ICommand GuiZoomInCommand { get; }
Property Value
Type Description
ICommand
| Edit this page View Source

GuiZoomOutCommand

Declaration
public ICommand GuiZoomOutCommand { get; }
Property Value
Type Description
ICommand
| Edit this page View Source

Items

Declaration
public ProviderCollection Items { get; }
Property Value
Type Description
ProviderCollection
| Edit this page View Source

LoadRouteCommand

Declaration
public ICommand LoadRouteCommand { get; }
Property Value
Type Description
ICommand
| Edit this page View Source

RemoveRouteCommand

Declaration
public ICommand RemoveRouteCommand { get; }
Property Value
Type Description
ICommand
| Edit this page View Source

SaveRouteCommand

Declaration
public ICommand SaveRouteCommand { get; }
Property Value
Type Description
ICommand
| Edit this page View Source

SelectedMap

Declaration
public string SelectedMap { get; set; }
Property Value
Type Description
string
| Edit this page View Source

SetCacheRootCommand

Declaration
public ICommand SetCacheRootCommand { get; }
Property Value
Type Description
ICommand
| Edit this page View Source

StatusLine

Declaration
public string StatusLine { get; set; }
Property Value
Type Description
string
| Edit this page View Source

WindowTitle

Declaration
public string WindowTitle { get; set; }
Property Value
Type Description
string

Methods

| Edit this page View Source

AddRoutePoint()

Used by UI event on mapControl object and add a point in _routePoints

Declaration
public void AddRoutePoint()
| Edit this page View Source

GuiZoomIn()

UI Button function to make the UI bigger.

Declaration
public void GuiZoomIn()
| Edit this page View Source

GuiZoomOut()

UI Button function to make the UI smaller.

Declaration
public void GuiZoomOut()
| Edit this page View Source

OnPropertyChanged(string)

Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
Type Name Description
string propertyName
| Edit this page View Source

RemoveLastRoutePoint()

Used by UI event on mapControl object and remove a point in _routePoints

Declaration
public void RemoveLastRoutePoint()
| Edit this page View Source

SetCacheRoot()

UI Button function to set the path, where the map tile cache has to store the tiles for each map provider.

Declaration
public void SetCacheRoot()
| Edit this page View Source

UpdateMousePositionFrom(Point)

Used by UI events to store the map positon on earth in _mouseDownPos

Declaration
public void UpdateMousePositionFrom(Point point)
Parameters
Type Name Description
Point point

Events

| Edit this page View Source

PropertyChanged

Occurs when a property value changes.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
PropertyChangedEventHandler

Implements

INotifyPropertyChanged
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX