Closed autonome closed 9 months ago
Aha, it appears that the original example does not behave as I expected because it's importing a binding name that already exists - and will not create a duplicate, even if in a separate part of the binding hierarchy.
If that's the case, there is no bug and this can be closed!
importState
and exportState
are literally for importing/exporting a pane state. They don't create new controls even if the state contains missing properties. If you want to import the value, you have to create a binding with the same name before importing.
Aha, in that case this issue can certainly be closed.
Here is example code for creating a new basic pane, with a folder and a binding, and exporting the folder state.
Then it adds a new folder, and imports the folder state.
The second folder should now look exactly like the first.
However, the binding is missing.