Beispiel #1
0
 private void ChildItemChecking(CustomBarSubItem subItem)
 {
     subItem.IsChildItemChecked = false;
     for (int i = 0; i < subItem.ItemLinks.Count; i++)
     {
         if (subItem.ItemLinks[i].GetType() == typeof(BarCheckItemLink) && ((BarCheckItem)subItem.ItemLinks[i].Item).Checked)
         {
             subItem.IsChildItemChecked = true;
             break;
         }
     }
 }
Beispiel #2
0
        protected override void DrawLinkHorizontal(BarLinkPaintArgs e)
        {
            CustomBarSubItem item = e.LinkInfo.Link.Item as CustomBarSubItem;

            if (item.IsChildItemChecked)
            {
                base.DrawLinkPressed(e);
            }
            else
            {
                base.DrawLinkHorizontal(e);
            }
        }