FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyValueEditorView

    struct · ferroui-diagnostics · v0.5.0

    struct PropertyValueEditorView
    

    The editor of the value of a property: its content is the control that edits a value of the type of the property (its data context), bound to the value of the property.

    Deviation (DEVIATIONS.md, Developer tools): the managed original builds a new editor at every change of the data context. The property grid is a TreeDataGrid, whose rows and cells are recycled while it scrolls and when another control is selected, and the cells keep their editor view and give it the next row as its data context; building a text box, a number box or a combo box (each with its template) for every row made scrolling and selecting slow. The view keeps the editor of each kind it has built (check box, number box, brush, enumeration, text box) in a panel that is its content, shows the one of the property and binds it to the property, as the TreeDataGrid keeps its recycled cells parented and hidden: an editor is built, attached and styled once, and a recycled row only changes which editor is visible and what it is bound to. The editors look and behave as the original's.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<PropertyValueEditorView>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.