Skip to content

1 of Steps: Bindable Property

Latest

Choose a tag to compare

@Elipese568 Elipese568 released this 29 Dec 15:03

1 of Steps: Bindable Property

Description

现在可以通过修改MainWindowViewModel中的MyProperty属性来控制按钮旁边的TextBlock

Changes

Pages & Views & Window:

  • MainWindow

ViewModels:

  • MainWindowViewModel

Macros

Common.h:

  • WinUINamespace, WinUINamespace1~WinUINamespace5

  • Bindable

  • FactoryDefinition( className )

    className : Page or Window's type

  • Property

    type : Property's type
    name : Property's name

    • Property( type, name )
    • NotifyChangedProperty( type, name )
    • ReadonlyProperty( type, name )
  • UpdateValue( propertyName, var, value )

    propertyName : Name of a property to change
    var : Property inner field
    value : Value to change

  • SetPropertyValue( name, value )

    name : Name of a property to set
    value : Value to set

  • _PropertyName( name )

    name : Name of a property

2024-12-29.230142.mp4