예제 #1
0
        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;
        }
예제 #2
0
 public BluetoothDeviceListView()
 {
     this.InitializeComponent();
     ViewModel = new BluetoothDeviceListViewModel();
 }