Inheritance: IStorageItemAccessList
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            rootPage = MainPage.Current;

            // Make sure we don't run out of entries in StoreItemAccessList.
            // As we don't need to persist this across app sessions/pages, clearing
            // every time should be sufficient for us.
            storageItemAccessList = StorageApplicationPermissions.FutureAccessList;
            storageItemAccessList.Clear();
        }
Exemplo n.º 2
0
 public FutureService()
 {
     _future = StorageApplicationPermissions.FutureAccessList;
 }
        public TileOverviewPage() {
            InitializeComponent();
            ApplicationView.PreferredLaunchViewSize = new Size(1000, 800);
            ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize;

            IndexToPanelConverter = Resources["IndexToPanel"] as IndexToPanelConverter;
            IndexToPanelConverter.Setup(this);
            var con2 = Resources["LabelConverter"] as ButtonLabelConverter;
            con2.Setup(this);
            
            ClearLocalFolder();

            SizeChanged += (sender, args) => {
                var width = ActualWidth - tileList.ActualWidth - Images.ActualWidth;
                BaseGrid.ColumnDefinitions[1].Width = new GridLength(width, GridUnitType.Pixel);
            };

            StorageItemAccessList = StorageApplicationPermissions.FutureAccessList;

            foreach (var s in Enum.GetValues(typeof(ActionType))) {
                ComboBoxMode.Items.Add(((ActionType) s).Name());
            }
            ComboBoxMode.SelectedIndex = 0;
            
            ComboBoxMode.Loaded += (a, b) => {
                ComboBoxMode.IsDropDownOpen = true;
                var item2 = ComboBoxMode.ContainerFromIndex((int) ActionType.APP);
                item2?.Bind(IsEnabledProperty, App, "IsHelperInstalled");
                ComboBoxMode.IsDropDownOpen = false;
            };

            UpdateList();
        }