Class CustomColorViewModel
Inheritance
System.Object
CustomColorViewModel
Assembly: pdftron.PDF.Tools.dll
public class CustomColorViewModel : ViewModelBase
Constructors
Declaration
public CustomColorViewModel()
Properties
Declaration
public RelayCommand CancelCommand { get; }
Property Value
Declaration
public Color CurrEditBrush { get; }
Property Value
Type |
Description |
Windows.UI.Color |
|
Essentially, the RGB equivalent of the HSV value of the current color except with V set to 255
since this is the gradient (topmost color) that the V grid will bind to.
Declaration
public Color CurrEditBrushGradient { get; set; }
Property Value
Type |
Description |
Windows.UI.Color |
|
The current V value of the Background/Foreground grid
Declaration
public double CurrEditBrushOpacity { get; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public CustomColorIconViewModel CurrSelectedIcon { get; set; }
Property Value
Declaration
public ObservableCollection<CustomColorIconViewModel> CustomColorIconCollection { get; }
Property Value
Declaration
public EditModeType EditMode { get; set; }
Property Value
Declaration
public RelayCommand EditModeCommand { get; }
Property Value
Declaration
public RelayCommand IconClickCommand { get; }
Property Value
Declaration
public bool IsLightDismissable { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsPopupOpen { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public RelayCommand OkCommand { get; }
Property Value
Declaration
public ViewModeType ViewMode { get; set; }
Property Value
Methods
This method is used by the view to notify the ViewModel of the new color.
Declaration
public void UpdateColor(Color color, bool isHs)
Parameters
Type |
Name |
Description |
Windows.UI.Color |
color |
|
System.Boolean |
isHs |
Refers to whether the color was taken from the HS grid or the V grid
|
Events
Declaration
public event CustomColorViewModel.CustomColorRequestedDelegate CustomColorRequested
Event Type
Declaration
public event CustomColorViewModel.CustomColorSelectedDelegate CustomColorSelected
Event Type
Declaration
public event CustomColorViewModel.PopupClosedDelegate PopupClosed
Event Type