예제 #1
0
 public ContextMenu()
 {
     Loaded +=
         delegate
     {
         foreach (var item in Items)
         {
             MenuContainerBase.AddChild(item, () => OnItemVisibleChanged());
         }
     };
 }
예제 #2
0
 protected override void AddChild(object value)
 {
     base.AddChild(value);
     MenuContainerBase.AddChild(value, () => OnItemVisibleChanged());
 }