Example #1
0
 private void SearchResultList_Holding(object sender, Windows.UI.Xaml.Input.HoldingRoutedEventArgs e)
 {
     if (e.HoldingState == Windows.UI.Input.HoldingState.Started)
     {
         FileSystemStorageItem Context = (e.OriginalSource as FrameworkElement)?.DataContext as FileSystemStorageItem;
         SearchResultList.SelectedIndex = SearchResult.IndexOf(Context);
     }
 }
Example #2
0
 private void SearchResultList_RightTapped(object sender, Windows.UI.Xaml.Input.RightTappedRoutedEventArgs e)
 {
     if (e.PointerDeviceType == Windows.Devices.Input.PointerDeviceType.Mouse)
     {
         FileSystemStorageItem Context = (e.OriginalSource as FrameworkElement)?.DataContext as FileSystemStorageItem;
         SearchResultList.SelectedIndex = SearchResult.IndexOf(Context);
         e.Handled = true;
     }
 }
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            if (e.Parameter is Tuple <FileControl, FileSystemStorageItem> Parameters)
            {
                FileControlInstance = Parameters.Item1;
                SFile      = Parameters.Item2;
                Title.Text = SFile.Name;

                await Initialize().ConfigureAwait(false);
            }
        }
        public SecureFilePropertyDialog(FileSystemStorageItem Item)
        {
            if (Item == null)
            {
                throw new ArgumentNullException(nameof(Item), "Parameter could not be null");
            }

            InitializeComponent();

            StorageItem = Item;

            Loading += SecureFilePropertyDialog_Loading;
        }
Example #5
0
 public PropertyDialog(FileSystemStorageItem Item)
 {
     InitializeComponent();
     this.Item = Item;
     Loading  += PropertyDialog_Loading;
 }
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     SFile     = null;
     Text.Text = string.Empty;
 }