The view model of SectionColumnsDialog.
Definition
Namespace:Telerik.Windows.Controls.RichTextBoxUI.Dialogs.SectionColumns
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class SectionColumnsDialogViewModel : ViewModelBase, INotifyPropertyChanged
Inheritance: objectViewModelBaseSectionColumnsDialogViewModel
Implements:
Inherited Members
Constructors
public SectionColumnsDialogViewModel()
Properties
Executes the command to apply changes made in the Section Columns dialog.
public ICommand ApplyChangesCommand { get; }
Represents the command that cancels changes made in the Section Columns dialog.
public ICommand CancelChangesCommand { get; }
Gets the number of columns defined in the section columns dialog.
public int ColumnsCount { get; set; }
Gets the items source for the columns in the SectionColumnsDialog view model.
public ObservableCollection<SectionColumnDataViewModel> ColumnsItemsSource { get; set; }
The collection of column items that can be used to define the layout of columns in the document.
Gets or sets a value indicating whether all columns in the section should have equal width.
public bool EqualColumnWidth { get; set; }
Gets or sets a value indicating whether there is a line between columns in the section columns dialog.
public bool HasLineBetween { get; set; }
true if a line is displayed between columns; otherwise, false.
Gets the maximum number of columns that can be set in the section columns dialog.
public int MaxColumnsCount { get; }
Gets or sets the predefined selected section columns layout.
public SectionColumnsLayout? SelectedSectionColumnsLayout { get; set; }
Methods
Retrieves the collection of section columns in the SectionColumnsDialogViewModel.
public SectionColumnCollection GetSectionColumnsCollection()
A collection of section column objects that represent the current configuration of section columns.
Initializes the view model for the SectionColumnsDialog.
public void InitializeViewModel(SectionColumnCollection collection, double pageWidth, double pageMargin)
Events
public event EventHandler ApplyChangesRequested
public event EventHandler CancelChangesRequested