Ejemplo n.º 1
0
        private void CloseCompleted(object sender, EventArgs e)
        {
            IsClosing = false;
            BreadCrumbEventArgs args = new BreadCrumbEventArgs(BreadCrumbItemClosedEvent, this);

            RaiseEvent(args);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Triggered when the close animation for a BreadCrumbItem is completed.
        /// The logic triggers the next animation in the chain until TargetPath is
        /// reached.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DirectoryCloseComplete(object sender, BreadCrumbEventArgs e)
        {
            e.BreadCrumbItem.Closed -= DirectoryCloseComplete;

            crossRef.Remove(e.BreadCrumbItem.Tag);
            Items.Remove(e.BreadCrumbItem);

            BreadCrumbItem nextInChain = Items[Items.Count - 1] as BreadCrumbItem;

            if (TargetDirectory == nextInChain)
            {
                _isClosing = false;
            }

            CurrentDirectory = nextInChain;

            CloseCurrentDirectory();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Triggered when a BreadCrumbItem is clicked
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BreadCrumbItemClicked(object sender, BreadCrumbEventArgs e)
 {
     RaisePreviewDirectoryClosing(e.BreadCrumbItem);
 }