# PropertyViewModel

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/view_models/struct-propertyviewmodel/

**struct** · [`ferroui-diagnostics`](/docs/0.5.0/api/ferroui-diagnostics/) · v0.5.0

```rust
struct PropertyViewModel
```

The state of the abstract class `PropertyViewModel`: the base of the view models of the
properties of an object, and whether the property is pinned.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/property_view_model.rs#L31)

## Members

- [`construct`](#function-construct)
- [`view_model_base`](#function-view_model_base)
- [`is_pinned`](#function-is_pinned)
- [`raise_property_changed`](#function-raise_property_changed)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> Self
```

The state of the class, for the classes that derive from it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/property_view_model.rs#L44)

<a id="function-view_model_base"></a>

### view_model_base

```rust
fn view_model_base(self: &Self) -> &ViewModelBase
```

The base class of the view models (`RaiseAndSetIfChanged`, `RaisePropertyChanged`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/property_view_model.rs#L49)

<a id="function-is_pinned"></a>

### is_pinned

```rust
fn is_pinned(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/property_view_model.rs#L53)

<a id="function-raise_property_changed"></a>

### raise_property_changed

```rust
fn raise_property_changed(self: &Self, property_name: &str)
```

`RaisePropertyChanged`, for the deriving classes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/view_models/property_view_model.rs#L69)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
