I'm attempting to use the Header button from
https://developer.m-files.com/Frameworks/Vault-Application-Framework/Configuration/Commands/
But I am unable to reference the variables obtained from the Configuration editors
https://developer.m-files.com/Frameworks/Vault-Application-Framework/Configuration/Editors/
Example below, would expect the MyStringValue from the config to end up in the popup, but the typical this.Configuration.<> doesnt seem to work in this instance.
public class VaultApplication : MFiles.VAF.Extensions.ConfigurableVaultApplicationBase<Configuration> { public readonly CustomDomainCommand cmdHeaderButtonCommand = new CustomDomainCommand { ID = "cmdHeaderButtonCommand", Execute = (c, o) => { string returntest = this.Configuration.MyStringValue; o.ShowMessage(""+returntest); }, DisplayName = "Test Contents", Locations = new List<ICommandLocation> { new ButtonBarCommandLocation() } }; /// <inheritdoc /> public override IEnumerable<CustomDomainCommand> GetCommands(IConfigurationRequestContext context) { return new List<CustomDomainCommand>(base.GetCommands(context)) { this.cmdHeaderButtonCommand, }; } }