Inheritance: System.Windows.Controls.UserControl
Ejemplo n.º 1
0
        public static void Add(string FileName, RecentItemType Type)
        {
            var I = new RecentItem(FileName);

            if (Type == RecentItemType.Image) I.PrintButton.Visibility = Visibility.Visible;

            I.Remove += () => _RecentList.Remove(I);

            _RecentList.Add(I);
        }
Ejemplo n.º 2
0
        public static void Add(string FileName, RecentItemType Type)
        {
            var I = new RecentItem(FileName);

            if (Type == RecentItemType.Image)
            {
                I.PrintButton.Visibility = Visibility.Visible;
            }

            I.Remove += () => _RecentList.Remove(I);

            _RecentList.Add(I);
        }
Ejemplo n.º 3
0
        public void Add(string FileName, RecentItemType Type)
        {
            var I = new RecentItem(FileName);

            // Show Print Command for Images
            if (Type == RecentItemType.Image)
            {
                I.PrintButton.Visibility = Visibility.Visible;
            }

            I.Remove += () => RecentList.Remove(I);

            // Insert on top
            RecentList.Insert(0, I);

            // Refresh the Enabled state of RecentItems
            CommandManager.InvalidateRequerySuggested();
        }