C# (CSharp) Ch.Epyx.WindMobile.WP7.ViewModel Namespace

Nested Namespaces

Ch.Epyx.WindMobile.WP7.ViewModel.Converter

Classes

Name Description
ApplicationViewModel
ChartViewModel
DataViewModel
ExceptionViewModel
MainViewModel This class contains properties that the main View can data bind to.

Use the mvvminpc snippet to add bindable properties to this ViewModel.

You can also use Blend to data bind with the tool's support.

See http://www.galasoft.ch/mvvm/getstarted

MessageSentEventArgs
MessageSentEventArgs.SocialMessage
SettingsViewModel
SocialViewModel
SocialViewModel.SendMessageData
StationInfoViewModel This class contains properties that a View can data bind to.

Use the mvvminpc snippet to add bindable properties to this ViewModel.

You can also use Blend to data bind with the tool's support.

See http://www.galasoft.ch/mvvm/getstarted

ViewModelLocator This class contains static references to all the view models in the application and provides an entry point for the bindings.

Use the mvvmlocatorproperty snippet to add ViewModels to this locator.

In Silverlight and WPF, place the ViewModelLocatorTemplate in the App.xaml resources:

<Application.Resources> <vm:ViewModelLocatorTemplate xmlns:vm="clr-namespace:WindMobile_WP7.ViewModel" x:Key="Locator" /> </Application.Resources>

Then use:

DataContext="{Binding Source={StaticResource Locator}, Path=ViewModelName}"

You can also use Blend to do all this with the tool's support.

See http://www.galasoft.ch/mvvm/getstarted

In *WPF only* (and if databinding in Blend is not relevant), you can delete the Main property and bind to the ViewModelNameStatic property instead:

xmlns:vm="clr-namespace:WindMobile_WP7.ViewModel" DataContext="{Binding Source={x:Static vm:ViewModelLocatorTemplate.ViewModelNameStatic}}"