MVVM e Caliburn Micro for Windows Phone applications

612 views

Published on

The MVVM pattern applied to a Windows Phone application and how to implement it using the Caliburn Micro framework

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
612
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

MVVM e Caliburn Micro for Windows Phone applications

  1. 1. Code private string name; public string Name { get { return name; } set { name = value; NotifyOfPropertyChange(() => Name); } } XAML <TextBlock Text="{Binding Path=Name}" />
  2. 2. Code private ICommand _pinToStart; public ICommand PinToStart { get { return _pinToStart ?? (_pinToStart = new RelayCommand( () => taskService.PinToStart(CurrentItem), () => canPin)); } } XAML <Button Content="Pin to start" Command="{Binding Path=PinToStart}" />
  3. 3. http://mvvmlight.codeplex.com/
  4. 4. http://caliburnmicro.codeplex.com
  5. 5. navigationService.UriFor<DetailPageViewModel>() .WithParam(x => x.SelectedId, 5) .Navigate();
  6. 6. <Button micro:Message.Attach="[Event DoubleTap] = [Action ShowMessage]" />
  7. 7. http://s.qmatteoq.com/CaliburnTutorial http://s.qmatteoq.com/CaliburnTutorialIT http://caliburnmicro.codeplex.com

×