public UIElement Create() { var menu_button = new MenuButton() { Name = "SaucenaoSearcherMenuButton", IconSize = 15, Text = "搜图", Icon = "" }; menu_button.AddHandler(ButtonBase.ClickEvent, new RoutedEventHandler(OnMenuButtonClick)); return(menu_button); }