Files
PowerToys/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions.Toolkit/Form.cs
Mike Griese 5e953dbd94 Officially deprecate FormPage and MarkdownPage (#459)
`ContentPage` is the more generic form of this.
I'm deprecating this here in 0.0.8, and in 0.0.9 I'm gonna outright remove it.
2025-02-26 03:25:13 -08:00

26 lines
801 B
C#

// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Windows.Foundation.Metadata;
namespace Microsoft.CommandPalette.Extensions.Toolkit;
[Deprecated("Use FormContent instead", DeprecationType.Deprecate, 8)]
public abstract partial class Form : IForm
{
public virtual string Data { get; set; } = string.Empty;
public virtual string State { get; set; } = string.Empty;
public virtual string Template { get; set; } = string.Empty;
public virtual string DataJson() => Data;
public virtual string StateJson() => State;
public virtual string TemplateJson() => Template;
public abstract ICommandResult SubmitForm(string payload);
}