void OnIsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     _context           = !IsVisible ? null : KeyMenuContext.Find(this);
     _items.ItemsSource = _context == null ? null : _context.KeyInfoList;
 }
예제 #2
0
 static void SetContext(DependencyObject element, KeyMenuContext value)
 {
     element.SetValue(ContextProperty, value);
 }