Xaml WinRT按钮中的TemplateVisualStateAttribute在哪里?

Xaml WinRT按钮中的TemplateVisualStateAttribute在哪里?,xaml,windows-8,windows-runtime,visualstates,Xaml,Windows 8,Windows Runtime,Visualstates,下面是WinRt按钮的定义 为什么找不到模板VisualState属性 如果它没有在类本身上标记,那么在实现自定义按钮样式时,我如何可能发现哪些可视状态和分组对我可用 有一些例子说明了它们是什么,但我也希望能够发现它们在其他控件上是什么——如果类没有正确标记,我怎么做 // Type: Windows.UI.Xaml.Controls.Button // Assembly: Windows, Version=255.255.255.255, Culture=neutral, PublicKeyT

下面是WinRt按钮的定义

为什么找不到
模板VisualState属性

如果它没有在类本身上标记,那么在实现自定义按钮样式时,我如何可能发现哪些可视状态和分组对我可用

有一些例子说明了它们是什么,但我也希望能够发现它们在其他控件上是什么——如果类没有正确标记,我怎么做

// 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();
  }
}
//类型:Windows.UI.Xaml.Controls.Button
//程序集:Windows,版本=255.255.255.255,区域性=中立,PublicKeyToken=null
//程序集位置:C:\Program Files(x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral\Windows.winmd
使用System.Runtime.CompilerServices;
使用Windows .Basic。元数据;
使用Windows.UI.Xaml.Controls.Primitives;
命名空间Windows.UI.Xaml.Controls
{
/// 
///表示解释单击用户交互的模板化按钮控件。
/// 
[MarshalingBehavior(MarshalingType.Agile)]
[Composable(typeof(IButtonFactory),CompositionType.Public,100794368]
[网络主机隐藏]
[线程(ThreadingModel.Both)]
[版本(100794368)]
公共类按钮:ButtonBase,IButton
{
/// 
///初始化Button类的新实例。
/// 
[MethodImpl]
公共按钮();
}
}
我如何才能发现哪些可视状态和分组可用


假设您必须查看控件的默认样式和模板。对于/,它们发布在MSDN上,但对于WinRT,您似乎必须查看SDK:。

明白了,谢谢,是的,WinRT的视觉状态相似,但差异太大,我无法使用WPF/Silverlight文档。这很奇怪-我的电脑上没有这个文件夹><为什么他们不能让这更容易?