mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
`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.
26 lines
801 B
C#
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);
|
|
}
|