共用方式為


NavigationView.AutoSuggestBox 屬性

定義

取得或設定要顯示在 NavigationView 中的 AutoSuggestBox

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.NavigationView.AutoSuggestBox (在 Windows 應用程式 SDK 中,請參閱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 方塊。

適用於