Class SelectChannelViewModel
- Namespace
- Loehnert.Lisrt.Can.Vector.ViewModels
- Assembly
- Loehnert.Lisrt.Can.Vector.dll
View model for selecting a channel.
public class SelectChannelViewModel : Screen, IViewAware, IScreen, IHaveDisplayName, IActivate, IDeactivate, IGuardClose, IClose, INotifyPropertyChangedEx, INotifyPropertyChanged, IChild
- Inheritance
-
PropertyChangedBaseViewAwareScreenSelectChannelViewModel
- Implements
-
IViewAwareIScreenIHaveDisplayNameIActivateIDeactivateIGuardCloseICloseINotifyPropertyChangedExIChild
- Inherited Members
-
Screen.OnInitialize()Screen.OnActivate()Screen.ParentScreen.DisplayNameScreen.IsActiveScreen.IsInitializedScreen.ActivatedScreen.AttemptingDeactivationScreen.DeactivatedViewAware.DefaultContextViewAware.ViewsViewAware.ViewAttachedPropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
SelectChannelViewModel(IEnumerable<ChannelInfo>)
Initializes a new instance of the SelectChannelViewModel class.
public SelectChannelViewModel(IEnumerable<ChannelInfo> channels)
Parameters
channels
IEnumerable<ChannelInfo>Possible channels.
Properties
Channels
Gets the channels.
public IEnumerable<ChannelInfo> Channels { get; }
Property Value
CloseWithTrueCommand
Gets a command for setting the selected channel.
public ICommand CloseWithTrueCommand { get; }
Property Value
SelectedChannel
Gets or sets the selected channel.
public ChannelInfo SelectedChannel { get; set; }