Class CommentCategoryViewModel
Represents the viewmodel of an instance data comment
Inheritance
System.Object
CommentCategoryViewModel
Namespace: Simplic.Framework.Extension
Assembly: Simplic.Framework.Extension.dll
Syntax
public class CommentCategoryViewModel : UI.MVC.ViewModelBase
Constructors
| Improve this Doc View SourceCommentCategoryViewModel(InstanceDataCommentCategory)
Initialize new comment category view model
Declaration
public CommentCategoryViewModel(InstanceDataCommentCategory model)
Parameters
| Type | Name | Description |
|---|---|---|
| InstanceDataCommentCategory | model |
Properties
| Improve this Doc View SourceBrush
Gets the color as solid color brush
Declaration
public SolidColorBrush Brush { get; }
Property Value
| Type | Description |
|---|---|
| SolidColorBrush |
Color
Gets or sets the color of the category
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Model
Gets the model behind the view model
Declaration
public InstanceDataCommentCategory Model { get; }
Property Value
| Type | Description |
|---|---|
| InstanceDataCommentCategory |
Name
Gets or sets the category name
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceEquals(Object)
Equals
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetHashCode()
Override get hashcode and return hashcode of the model behind
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |