Class SlideshowManager
The slideshow manager class used for the Screenshot Views expanded view.
Inheritance
Namespace: Phoenix.Screenshot
Assembly: Phoenix.Plugin.Screenshot.dll
Syntax
public class SlideshowManager : BindableBase
Constructors
View SourceSlideshowManager(IDictionary<IDevice, ScreenshotItemViewModel>)
Initializes a new instance of the SlideshowManager class.
Declaration
public SlideshowManager(IDictionary<IDevice, ScreenshotItemViewModel> items)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<IDevice, ScreenshotItemViewModel> | items | A dictionary of screenshots to wrap. |
SlideshowManager(Func<IDictionary<IDevice, ScreenshotItemViewModel>>)
Initializes a new instance of the SlideshowManager class.
Declaration
public SlideshowManager(Func<IDictionary<IDevice, ScreenshotItemViewModel>> getItems)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Collections.Generic.IDictionary<IDevice, ScreenshotItemViewModel>> | getItems | Returns a dictionary of screenshots to wrap. |
Properties
View SourceCurrentlyExpandedItem
Gets the currently expanded item in the slideshow.
Declaration
public ScreenshotItemViewModel CurrentlyExpandedItem { get; }
Property Value
Type | Description |
---|---|
ScreenshotItemViewModel |
IsActive
Gets a value indicating whether the slideshow is active or not.
Declaration
public bool IsActive { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
View SourceBeginSlideshow(ScreenshotItemViewModel)
Begins the slideshow from an item.
Declaration
public void BeginSlideshow(ScreenshotItemViewModel item)
Parameters
Type | Name | Description |
---|---|---|
ScreenshotItemViewModel | item | The item to begin the slideshow with. |
CanGoToNextScreenshotItem()
Verifies whether from the current node we can go to the next screenshot.
Declaration
public bool CanGoToNextScreenshotItem()
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether we can go to the next screenshot. |
CanGoToPreviousScreenshotItem()
Verifies whether from the current node we can go to the previous screenshot.
Declaration
public bool CanGoToPreviousScreenshotItem()
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether we can go to the previous screenshot. |
EndSlideshow()
Ends the slide show.
Declaration
public void EndSlideshow()
GoToNext()
If we can, go to the next screenshot in the slideshow.
Declaration
public void GoToNext()
GoToPrevious()
If we can, go the previous screenshot in the slideshow.
Declaration
public void GoToPrevious()
Refresh()
Refreshes the internal list based off of the wrapped dictionary reorients the currently expanded item in the list should there be additions or removals from the list.
Declaration
public void Refresh()
RefreshCurrentlyExpandedItem()
Refreshes the currently expanded item.
Declaration
public void RefreshCurrentlyExpandedItem()