public OOBEPage() { this.InitializeComponent(); DListModel = _List.ViewModel; ViewModel = new OOBEPageViewModel(DListModel); _ContextMenu = new MenuFlyout(); _ContextMenu.Items.Add(new MenuFlyoutItem { Text = "Exit", Icon = new SymbolIcon(Symbol.Clear) }); Style style = new Style(typeof(MenuFlyoutPresenter)); style.Setters.Add(new Setter(Windows.UI.Xaml.FrameworkElement.MinWidthProperty, 150)); _ContextMenu.MenuFlyoutPresenterStyle = style; }
public BluetoothDeviceListView() { this.InitializeComponent(); ViewModel = new BluetoothDeviceListViewModel(); }