Exemplo n.º 1
0
 void EditSlideshowDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "SlideShow")
     {
         Click = new DelegateCommand(() => SlideShow.OnEdit());
     }
 }
Exemplo n.º 2
0
        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     
            
        }
Exemplo n.º 3
0
 void AddWidgetDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "SlideShow")
     {
         Click = new DelegateCommand(() => SlideShow.OnAddSlide());
     }
 }
Exemplo n.º 4
0
 void WidgetDockBarItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "Widget")
     {
         Click = new DelegateCommand(() => dialogService.Show(
             new WidgetDialog{ Widget = Widget , Progressbar = Widget.ViewProgressbar}, (result) => { }));
     }
 }
Exemplo n.º 5
0
		public BeerOMeterViewModel()
		{
			Reset = new DelegateCommand();
			AnimationCompleted = new DelegateCommand();
			Save = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}
Exemplo n.º 6
0
		public TeamPictureViewModel()
		{
			Delete = new DelegateCommand();
			Save = new DelegateCommand();
			TakePicture = new DelegateCommand();
			ToggleWebcamOnOff = new DelegateCommand();
			Refresh = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}
Exemplo n.º 7
0
		public NoteViewModel()
		{
			Delete = new DelegateCommand();
			MoveUp = new DelegateCommand();
			MoveDown = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}
Exemplo n.º 8
0
		public CorkboardSettingsViewModel()
		{
			AddPositiveNote = new DelegateCommand();
			AddNegativeNote = new DelegateCommand();
	
			OnInitialize();
			ApplyConvention(new BindCommandsDelegatesToMethods());
		}