NavigationView.AutoSuggestBox 属性

定义

获取或设置要显示在 NavigationView 中的 AutoSuggestBox

适用于 UWP 的等效 WinUI 2 APIWindows 应用 SDK中用于 WinUI 的 Microsoft.UI.Xaml.Controls.NavigationView.AutoSuggestBox (,请参阅 ) Windows 应用 SDK命名空间

public:
 property AutoSuggestBox ^ AutoSuggestBox { AutoSuggestBox ^ get(); void set(AutoSuggestBox ^ value); };
AutoSuggestBox AutoSuggestBox();

void AutoSuggestBox(AutoSuggestBox value);
public AutoSuggestBox AutoSuggestBox { get; set; }
var autoSuggestBox = navigationView.autoSuggestBox;
navigationView.autoSuggestBox = autoSuggestBox;
Public Property AutoSuggestBox As AutoSuggestBox
<NavigationView>
  <NavigationView.AutoSuggestBox>
    <AutoSuggestBox .../>
  </NavigationView.AutoSuggestBox>
</NavigationView>
- or -
<NavigationView AutoSuggestBox="resourceReferenceToAutoSuggestBox"/>

属性值

要显示在 NavigationView 中的 AutoSuggestBox 框。

适用于