Skip to content

Commit

Permalink
! Code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Dec 17, 2018
1 parent 248d9e0 commit 596866c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Codist/Helpers/WpfHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,17 +261,6 @@ public static TItem GetFirst<TItem>(this ItemCollection items, Predicate<TItem>
}
return null;
}
public static bool ClickFirstMenuItem<TItem>(this ItemCollection items)
where TItem : MenuItem {
foreach (var item in items) {
var i = item as TItem;
if (i != null && i.Visibility == Visibility.Visible && i.IsEnabled) {
i.RaiseEvent(new RoutedEventArgs(MenuItem.ClickEvent));
return true;
}
}
return false;
}
public static bool FocusFirst<TItem>(this ItemCollection items)
where TItem : FrameworkElement {
foreach (var item in items) {
Expand Down

0 comments on commit 596866c

Please sign in to comment.