Example #1
0
        /// <summary>
        /// Make a shadow copy of the element at the current state which stays available even the element is gone.
        /// </summary>
        /// <returns>A shadow copy of the current element.</returns>
        public new BasicMenuItemData GetDataCopy()
        {
            var data = new BasicMenuItemData();

            FillData(data);
            data.IsExpanded = GetSafeData(() => IsExpanded);
            var items = new List <BasicMenuItemData>();

            data.Items = items;
            try
            {
                foreach (var item in Items)
                {
                    if (item != null)
                    {
                        items.Add(item.GetDataCopy());
                    }
                }
            }
            catch { }
            data.Text = GetSafeData(() => Text);
            return(data);
        }
Example #2
0
 public UnselectedState(ref BasicMenuItemData basicData, ref MenuItemActiveData activeData)
 {
     c_basicData  = basicData;
     c_activeData = activeData;
 }
Example #3
0
 public PostselectedState(ref BasicMenuItemData basicData, ref MenuItemActiveData activeData, ref LerpCartridge lerpcart)
 {
     c_basicData  = basicData;
     c_activeData = activeData;
     c_lerpCart   = lerpcart;
 }