Exemplo n.º 1
0
        private void RemoveItem(object item)
        {
            TipMode mode = item as TipMode;

            if (mode != null)
            {
                ItemAnimating.RemoveItem(TipList, mode);
            }
        }
Exemplo n.º 2
0
        public void AddItem(string content, int tipsecond = 15)
        {
            TipMode mode = new TipMode
            {
                TipContent    = content,
                RemoveCommand = new RelayCommand(RemoveItem),
                TipSecond     = tipsecond
            };

            TipList.Add(mode);
        }