Class ScreenshotViewModel
The view model for the screenshot class.
Inheritance
Inherited Members
Namespace: Phoenix.Screenshot
Assembly: Phoenix.Plugin.Screenshot.dll
Syntax
public class ScreenshotViewModel : TabItemViewModel<ScreenshotView>, IViewInitialize, IScreenshotViewProvider, IViewProvider, IClosingNotification
Constructors
View SourceScreenshotViewModel(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 SourceName
The tab header name.
Declaration
public const string Name = "Screenshot"
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceCopyImageCommand
Gets the command to copy an image to the clipboard.
Declaration
public DelegateCommand<DeviceScreenshot> CopyImageCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<DeviceScreenshot> |
EditImageCommand
Gets the command to edit an image.
Declaration
public DelegateCommand<DeviceScreenshot> EditImageCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<DeviceScreenshot> |
EditTooltip
Gets the tooltip for the edit button.
Declaration
public string EditTooltip { get; }
Property Value
Type | Description |
---|---|
System.String |
ExitSlideshowCommand
Gets the command to exit the slideshow.
Declaration
public DelegateCommand ExitSlideshowCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
GlobalRefreshInterval
Gets or sets the global refresh interval.
Declaration
public double GlobalRefreshInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
GoToNextExpandedCommand
Gets the command to go the the next expanded screenshot.
Declaration
public DelegateCommand GoToNextExpandedCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
GoToPreviousExpandedCommand
Gets the command to go the the previous expanded screenshot.
Declaration
public DelegateCommand GoToPreviousExpandedCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
IsGlobalAutoRefreshOff
Gets a value indicating whether global refresh is off or not.
Declaration
public bool IsGlobalAutoRefreshOff { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
RefreshAllScreenshotItemsCommand
Gets the command to refresh all screenshot items.
Declaration
public DelegateCommand RefreshAllScreenshotItemsCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
RefreshScreenshotItemCommand
Gets the refresh screenshot item command.
Declaration
public DelegateCommand<ScreenshotItemViewModel> RefreshScreenshotItemCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<ScreenshotItemViewModel> |
SaveAllScreenshotItemsCommand
Gets the command to save all screenshot items.
Declaration
public DelegateCommand SaveAllScreenshotItemsCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
SaveImageCommand
Gets the command to save an image.
Declaration
public DelegateCommand<DeviceScreenshot> SaveImageCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<DeviceScreenshot> |
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> |
SlideshowManager
Gets the slideshow manager.
Declaration
public SlideshowManager SlideshowManager { get; }
Property Value
Type | Description |
---|---|
SlideshowManager |
StartSlideshowCommand
Gets the command to start the slideshow.
Declaration
public DelegateCommand<ScreenshotItemViewModel> StartSlideshowCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<ScreenshotItemViewModel> |
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> |
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 |
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 |
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> |
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 SourceInitialize()
Initializes phoenix managed resources when all modules are loaded.
Declaration
protected override void Initialize()