Class MainViewModel
MainViewModel implements the UI functions joins them with data and files.
Inheritance
MainViewModel
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
|
Edit this page
View Source
GuiZoomFactor
Declaration
public double GuiZoomFactor { get; set; }
Property Value
|
Edit this page
View Source
GuiZoomInCommand
Declaration
public ICommand GuiZoomInCommand { get; }
Property Value
|
Edit this page
View Source
GuiZoomOutCommand
Declaration
public ICommand GuiZoomOutCommand { get; }
Property Value
|
Edit this page
View Source
Items
Declaration
public ProviderCollection Items { get; }
Property Value
|
Edit this page
View Source
LoadRouteCommand
Declaration
public ICommand LoadRouteCommand { get; }
Property Value
|
Edit this page
View Source
RemoveRouteCommand
Declaration
public ICommand RemoveRouteCommand { get; }
Property Value
|
Edit this page
View Source
SaveRouteCommand
Declaration
public ICommand SaveRouteCommand { get; }
Property Value
|
Edit this page
View Source
SelectedMap
Declaration
public string SelectedMap { get; set; }
Property Value
|
Edit this page
View Source
SetCacheRootCommand
Declaration
public ICommand SetCacheRootCommand { get; }
Property Value
|
Edit this page
View Source
StatusLine
Declaration
public string StatusLine { get; set; }
Property Value
|
Edit this page
View Source
WindowTitle
Declaration
public string WindowTitle { get; set; }
Property Value
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
|
Edit this page
View Source
GuiZoomOut()
UI Button function to make the UI smaller.
Declaration
|
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
Implements