Skip to content

Ver.1.4.0-pre

Pre-release
Pre-release
Compare
Choose a tag to compare
@muak muak released this 23 Oct 11:49
· 48 commits to master since this release
6714a2a

New Features

  • Feedback – add touch feedback effect (color and sound) without command.
  • Floating – arrange some floating views (e.g. FAB) at any place over a page.
  • TriggerProperty – An Effect can be invoked by setting main properties.

Trigger Property (1.4.0~)

Though toggling an effect had used On property in less than ver.1.4.0, As of ver.1.4.0, an effect can be enabled by setting one or more main properties of the effect.
These properties are named "Trigger Properties".

Trigger properties correspond to main properties such as Command and LongCommand in case of AddCommand Effect.

In this document, trigger properties are written "trigger".

Old (~1.3.1)

<Label Text="Text" ef:AddCommand.On="true" ef:AddCommand.Command="{Binding GoCommand}" />

Always needs On property.

New (1.4.0~)

<Label Text="Text" ef:AddCommand.Command="{Binding GoCommand}" />

Need not On property when specified Trigger Property.

To keep traditional

If an effect had been used to dynamically toggle to with the On property specified, it may not correctly work on the trigger properties mode.
To keep traditional mode, you can disable trigger properties by specifying the static config property at any place in .NETStandard project as the following code.

AiForms.Effects.EffectConfig.EnableTriggerProperty = false;