Exemplo n.º 1
0
 public FeedItemListView()
 {
     InitializeComponent();
     viewModel = new Lazy <FeedItemListViewModel>(() => (FeedItemListViewModel)DataContext);
     SetDefaultSearchVisibility();
     selectionStateManager = SelectionStateHelper.CreateManager(feedItemListView, selectItemsButton, cancelSelectionButton);
 }
Exemplo n.º 2
0
 public FeedItemListView()
 {
     InitializeComponent();
     viewModel = new Lazy <FeedItemListViewModel>(() => (FeedItemListViewModel)DataContext);
     SetDefaultSearchVisibility();
     selectionStateManager = SelectionStateHelper.CreateManager(feedItemListView, selectItemsButton, cancelSelectionButton);
     selectionStateManager.PropertyChanged += SelectionStateManagerPropertyChanged;
     UpdateSelectionStateDependentVisibility();
     Loaded += FirstTimeLoaded;
 }
Exemplo n.º 3
0
 public FeedListView()
 {
     InitializeComponent();
     addFeedGrid.MaxWidth      = Window.Current.CoreWindow.Bounds.Width - 24; // Minus the margin defined by the Flyout
     viewModel                 = new Lazy <FeedListViewModel>(() => (FeedListViewModel)DataContext);
     pasteCommand              = new AsyncDelegateCommand(PasteUriAsync, CanPasteUri);
     Clipboard.ContentChanged += ClipboardContentChanged;
     selectionStateManager     = SelectionStateHelper.CreateManager(feedListView, selectItemsButton, cancelSelectionButton);
     selectionStateManager.PropertyChanged += SelectionStateManagerPropertyChanged;
 }
Exemplo n.º 4
0
 private void UpdateSelectionState(double windowWidth) => SelectionStateHelper.SetIsSinglePageViewSize(this, windowWidth < 720);