这是 WinRt 按钮的定义。
TemplateVisualStateAttribute
为什么我找不到
如果它没有在类本身上标记,我怎么可能发现在实现自定义按钮样式时我可以使用哪些视觉状态和分组?
有一些例子说明它们是什么,但我希望能够发现它们在其他控件上的含义——如果类没有正确标记,我该怎么做?
// Type: Windows.UI.Xaml.Controls.Button
// Assembly: Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null
// Assembly location: C:\Program Files (x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral\Windows.winmd
using System.Runtime.CompilerServices;
using Windows.Foundation.Metadata;
using Windows.UI.Xaml.Controls.Primitives;
namespace Windows.UI.Xaml.Controls
{
/// <summary>
/// Represents a templated button control that interprets a Click user interaction.
/// </summary>
[MarshalingBehavior(MarshalingType.Agile)]
[Composable(typeof (IButtonFactory), CompositionType.Public, 100794368)]
[WebHostHidden]
[Threading(ThreadingModel.Both)]
[Version(100794368)]
public class Button : ButtonBase, IButton
{
/// <summary>
/// Initializes a new instance of the Button class.
/// </summary>
[MethodImpl]
public Button();
}
}