Show / Hide Table of Contents

Class ScreenshotViewModel

The view model for the screenshot class.

Inheritance
System.Object
ViewModelBase<ScreenshotView>
TabItemViewModel<ScreenshotView>
ScreenshotViewModel
Implements
IViewInitialize
IScreenshotViewProvider
IViewProvider
IClosingNotification
Inherited Members
TabItemViewModel<ScreenshotView>.FocusView()
TabItemViewModel<ScreenshotView>.OnViewChanged(Object, DependencyPropertyChangedEventArgs)
TabItemViewModel<ScreenshotView>.LogOnlyIfTabActive(String, String, Object[])
TabItemViewModel<ScreenshotView>.LogOnlyIfTabActive(String, LogSeverity, String, Object[])
TabItemViewModel<ScreenshotView>.LogOnlyIfTabActive(String, Guid, String, Object[])
TabItemViewModel<ScreenshotView>.LogOnlyIfTabActive(String, Guid, LogSeverity, String, Object[])
TabItemViewModel<ScreenshotView>.LoglineOnlyIfTabActive(String, String, Object[])
TabItemViewModel<ScreenshotView>.LoglineOnlyIfTabActive(String, LogSeverity, String, Object[])
TabItemViewModel<ScreenshotView>.LoglineOnlyIfTabActive(String, Guid, String, Object[])
TabItemViewModel<ScreenshotView>.LoglineOnlyIfTabActive(String, Guid, LogSeverity, String, Object[])
TabItemViewModel<ScreenshotView>.LogExceptionOnlyIfTabActive(String, LogSeverity, Exception)
TabItemViewModel<ScreenshotView>.LogCriticalExceptionOnlyIfTabActive(String, Exception)
ViewModelBase<ScreenshotView>.Closed
ViewModelBase<ScreenshotView>.IsClosable
ViewModelBase<ScreenshotView>.IsDockable
ViewModelBase<ScreenshotView>.HeaderName
ViewModelBase<ScreenshotView>.View
ViewModelBase<ScreenshotView>.IViewProvider.View
ViewModelBase<ScreenshotView>.EventAggregator
ViewModelBase<ScreenshotView>.Logger
ViewModelBase<ScreenshotView>.Closing(CancelEventArgs)
ViewModelBase<ScreenshotView>.IViewInitialize.Initialize()
ViewModelBase<ScreenshotView>.IViewInitialize.Uninitialize()
ViewModelBase<ScreenshotView>.IClosingNotification.Closed(EventArgs)
ViewModelBase<ScreenshotView>.OnClosing(CancelEventArgs)
ViewModelBase<ScreenshotView>.OnClosed()
ViewModelBase<ScreenshotView>.Uninitialize()
ViewModelBase<ScreenshotView>.CloseView()
Namespace: Phoenix.Screenshot
Assembly: Phoenix.Plugin.Screenshot.dll
Syntax
public class ScreenshotViewModel : TabItemViewModel<ScreenshotView>, IViewInitialize, IScreenshotViewProvider, IViewProvider, IClosingNotification

Constructors

View Source

ScreenshotViewModel(ScreenshotView, IWindowingControl, IEventAggregator, IPhoenixLogger, IDeviceManager, IScreenshotManager, ISettingsManager, EventSubscriber, IServiceProvider)

Declaration
public ScreenshotViewModel(ScreenshotView view, IWindowingControl windowing, IEventAggregator eventAggregator, IPhoenixLogger logger, IDeviceManager deviceManager, IScreenshotManager screenshotManager, ISettingsManager settingsManager, EventSubscriber eventSubscriber, IServiceProvider services)
Parameters
Type Name Description
ScreenshotView view
IWindowingControl windowing
IEventAggregator eventAggregator
IPhoenixLogger logger
IDeviceManager deviceManager
IScreenshotManager screenshotManager
ISettingsManager settingsManager
EventSubscriber eventSubscriber
System.IServiceProvider services

Fields

View Source

Name

The tab header name.

Declaration
public const string Name = "Screenshot"
Field Value
Type Description
System.String

Properties

View Source

CopyImageCommand

Gets the command to copy an image to the clipboard.

Declaration
public DelegateCommand<DeviceScreenshot> CopyImageCommand { get; }
Property Value
Type Description
DelegateCommand<DeviceScreenshot>
View Source

EditImageCommand

Gets the command to edit an image.

Declaration
public DelegateCommand<DeviceScreenshot> EditImageCommand { get; }
Property Value
Type Description
DelegateCommand<DeviceScreenshot>
View Source

EditTooltip

Gets the tooltip for the edit button.

Declaration
public string EditTooltip { get; }
Property Value
Type Description
System.String
View Source

ExitSlideshowCommand

Gets the command to exit the slideshow.

Declaration
public DelegateCommand ExitSlideshowCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

GlobalRefreshInterval

Gets or sets the global refresh interval.

Declaration
public double GlobalRefreshInterval { get; set; }
Property Value
Type Description
System.Double
View Source

GoToNextExpandedCommand

Gets the command to go the the next expanded screenshot.

Declaration
public DelegateCommand GoToNextExpandedCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

GoToPreviousExpandedCommand

Gets the command to go the the previous expanded screenshot.

Declaration
public DelegateCommand GoToPreviousExpandedCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

IsGlobalAutoRefreshOff

Gets a value indicating whether global refresh is off or not.

Declaration
public bool IsGlobalAutoRefreshOff { get; }
Property Value
Type Description
System.Boolean
View Source

RefreshAllScreenshotItemsCommand

Gets the command to refresh all screenshot items.

Declaration
public DelegateCommand RefreshAllScreenshotItemsCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

RefreshScreenshotItemCommand

Gets the refresh screenshot item command.

Declaration
public DelegateCommand<ScreenshotItemViewModel> RefreshScreenshotItemCommand { get; }
Property Value
Type Description
DelegateCommand<ScreenshotItemViewModel>
View Source

SaveAllScreenshotItemsCommand

Gets the command to save all screenshot items.

Declaration
public DelegateCommand SaveAllScreenshotItemsCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

SaveImageCommand

Gets the command to save an image.

Declaration
public DelegateCommand<DeviceScreenshot> SaveImageCommand { get; }
Property Value
Type Description
DelegateCommand<DeviceScreenshot>
View Source

ScreenshotCollection

Gets a collection of screenshot items pulled from the device screenshots values.

Declaration
public ObservableCollection<ScreenshotItemViewModel> ScreenshotCollection { get; }
Property Value
Type Description
System.Collections.ObjectModel.ObservableCollection<ScreenshotItemViewModel>
View Source

SlideshowManager

Gets the slideshow manager.

Declaration
public SlideshowManager SlideshowManager { get; }
Property Value
Type Description
SlideshowManager
View Source

StartSlideshowCommand

Gets the command to start the slideshow.

Declaration
public DelegateCommand<ScreenshotItemViewModel> StartSlideshowCommand { get; }
Property Value
Type Description
DelegateCommand<ScreenshotItemViewModel>
View Source

TakeOrEditImageCommand

Gets the command to edit an image if it exists, or else take a screenshot.

Declaration
public DelegateCommand<ScreenshotItemViewModel> TakeOrEditImageCommand { get; }
Property Value
Type Description
DelegateCommand<ScreenshotItemViewModel>
View Source

TickValues

Gets a collection of ticks in terms of milliseconds based on ScreenshotRefreshIntervals.

Declaration
public DoubleCollection TickValues { get; }
Property Value
Type Description
System.Windows.Media.DoubleCollection
View Source

UseSelectedDevices

Gets or sets a value indicating whether only the selected devices are auto-refreshed or not.

Declaration
public bool UseSelectedDevices { get; set; }
Property Value
Type Description
System.Boolean
View Source

VisibleScreenshotImages

Gets a dictionary of visible screenshot items with a valid image.

Declaration
public IEnumerable<ScreenshotItemViewModel> VisibleScreenshotImages { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<ScreenshotItemViewModel>
View Source

VisibleScreenshots

Gets a dictionary of visible devices and associated screenshot items.

Declaration
public IDictionary<IDevice, ScreenshotItemViewModel> VisibleScreenshots { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<IDevice, ScreenshotItemViewModel>

Methods

View Source

Initialize()

Initializes phoenix managed resources when all modules are loaded.

Declaration
protected override void Initialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.Screenshot.ScreenshotView>.Initialize()

Implements

IViewInitialize
IScreenshotViewProvider
IViewProvider
IClosingNotification
  • View Source
In This Article
Back to top Generated by DocFX