Class ArubaMediaPreview
Interaction logic for BugAnywhereMediaPreview.xaml.
Inheritance
Implements
Inherited Members
Namespace: Phoenix.Aruba.Controls
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class ArubaMediaPreview : ListBox, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IContainItemStorage, IAddChild, INotifyPropertyChanged
Constructors
View SourceArubaMediaPreview()
Initializes a new instance of the ArubaMediaPreview class.
Declaration
public ArubaMediaPreview()
Fields
View SourceActivateCurrentItemCommandProperty
Using a DependencyProperty as the backing store for ActivateCurrentItemCommand. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ActivateCurrentItemCommandProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FileNameHiddenProperty
IsFileNameHidden Attached Dependency Property.
Declaration
public static readonly DependencyProperty FileNameHiddenProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SupportedExtensionListProperty
SupportedExtensionList Attached Dependency Property.
Declaration
public static readonly DependencyProperty SupportedExtensionListProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
View SourceActivateCurrentItemCommand
Gets or sets the Command to activate the current item.
Declaration
public ICommand ActivateCurrentItemCommand { get; set; }
Property Value
Type | Description |
---|---|
ICommand |
CanNavigate
Gets a value indicating whether the Previous/Next buttons should be enabled.
Declaration
public bool CanNavigate { get; }
Property Value
Type | Description |
---|---|
bool |
ImageIndex
Gets the number of images that can be displayed by the image preview control.
Declaration
public int ImageIndex { get; }
Property Value
Type | Description |
---|---|
int |
IsFileNameHidden
Gets or sets a value indicating whether to display the name of the file being previewed.
Declaration
public bool IsFileNameHidden { get; set; }
Property Value
Type | Description |
---|---|
bool |
MoveNextCommand
Gets a command that changes the Selected Attachment to the next in the list.
Declaration
public ICommand MoveNextCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
MovePreviousCommand
Gets a command that changes the Selected Attachment to the previous in the list.
Declaration
public ICommand MovePreviousCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
SupportedExtensionList
Gets or sets a list of extensions that can be previewed by the control.
Declaration
public IEnumerable<string> SupportedExtensionList { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
TotalSupportedItems
Gets the number of attachments that are supported in the Preview Pane.
Declaration
public int TotalSupportedItems { get; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceHasSupportedExtension(string)
Returns whether this BugAnywhereMediaControl supports the given file.
Declaration
public bool HasSupportedExtension(string fileName)
Parameters
Type | Name | Description |
---|---|---|
string | fileName | The filename (with extension). |
Returns
Type | Description |
---|---|
bool | Whether this control supports the given file. |
OnItemsChanged(NotifyCollectionChangedEventArgs)
Overrides the OnItemsChanged event to provide some basic user experience features.
Declaration
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
NotifyCollectionChangedEventArgs | e | Argument specifying the new and old items that have changed in the collection. |
Overrides
View SourceOnItemsSourceChanged(IEnumerable, IEnumerable)
Overrides the OnItemsSourceChanged to pre-select the first item when a collection is bound with existing items (such as loading a bug with attachments).
Declaration
protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | oldValue | Existing ItemsSource. |
IEnumerable | newValue | New ItemsSource. |
Overrides
View SourceOnPropertyChanged(string)
Called when a property has changed.
Declaration
protected virtual void OnPropertyChanged(string property)
Parameters
Type | Name | Description |
---|---|---|
string | property | The property. |
Events
View SourcePropertyChanged
Event that notifies when a property has changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |