void EditSlideshowDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == "SlideShow") { Click = new DelegateCommand(() => SlideShow.OnEdit()); } }
public FullScreen() { isInFullScreen = false; Description = "Show in fullscreen"; Click = new DelegateCommand(() => { var fullScreenService = this.GetDependency<IFullScreenService>(); if (isInFullScreen) { fullScreenService.GoOutFromFullScreen(); isInFullScreen = false; Description = "Show in fullscreen"; } else { fullScreenService.GoIntoFullScreen(); isInFullScreen = true; Description = "Exit fullscreen"; } }); #if SILVERLIGHT Icon = new FullScreenIcon(); #endif }
void AddWidgetDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == "SlideShow") { Click = new DelegateCommand(() => SlideShow.OnAddSlide()); } }
void WidgetDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == "Widget") { Click = new DelegateCommand(() => dialogService.Show( new WidgetDialog{ Widget = Widget , Progressbar = Widget.ViewProgressbar}, (result) => { })); } }
public BeerOMeterViewModel() { Reset = new DelegateCommand(); AnimationCompleted = new DelegateCommand(); Save = new DelegateCommand(); OnInitialize(); ApplyConvention(new BindCommandsDelegatesToMethods()); }
public TeamPictureViewModel() { Delete = new DelegateCommand(); Save = new DelegateCommand(); TakePicture = new DelegateCommand(); ToggleWebcamOnOff = new DelegateCommand(); Refresh = new DelegateCommand(); OnInitialize(); ApplyConvention(new BindCommandsDelegatesToMethods()); }
public NoteViewModel() { Delete = new DelegateCommand(); MoveUp = new DelegateCommand(); MoveDown = new DelegateCommand(); OnInitialize(); ApplyConvention(new BindCommandsDelegatesToMethods()); }
public CorkboardSettingsViewModel() { AddPositiveNote = new DelegateCommand(); AddNegativeNote = new DelegateCommand(); OnInitialize(); ApplyConvention(new BindCommandsDelegatesToMethods()); }