public ImgButton ImgBtnSearch() { ImgButton imgbtn_search = new ImgButton(); imgbtn_search.Content = "查找"; imgbtn_search.Foreground = new SolidColorBrush(Colors.White); imgbtn_search.Icon = new BitmapImage(new Uri("/SMT.Workflow.Platform.Designer;component/Images/Toolbar/16_search.png", UriKind.Relative)); return imgbtn_search; }
public ImgButton ImgBtnPrint() { ImgButton imgbtn_print = new ImgButton(); imgbtn_print.Content = "打印"; imgbtn_print.Foreground = new SolidColorBrush(Colors.White); imgbtn_print.Icon = new BitmapImage(new Uri("/SMT.Workflow.Platform.Designer;component/Images/Toolbar/16_print.png", UriKind.Relative)); return imgbtn_print; }
public ImgButton ImgBtnUpdate() { ImgButton imgbtn_update = new ImgButton(); imgbtn_update.Content = "编辑"; imgbtn_update.Foreground = new SolidColorBrush(Colors.White); imgbtn_update.Icon = new BitmapImage(new Uri("/SMT.Workflow.Platform.Designer;component/Images/Toolbar/16_edit.png", UriKind.Relative)); return imgbtn_update; }
public ImgButton ImgBtnDel() { ImgButton imgbtn_del = new ImgButton(); imgbtn_del.Content = "删除"; imgbtn_del.Foreground = new SolidColorBrush(Colors.White); imgbtn_del.Icon = new BitmapImage(new Uri("/SMT.Workflow.Platform.Designer;component/Images/Toolbar/16_delete.png", UriKind.Relative)); return imgbtn_del; }
public ImgButton ImgBtnSearch() { ImgButton imgbtn_search = new ImgButton(); imgbtn_search.Content = "查找"; imgbtn_search.Foreground = new SolidColorBrush(Colors.White); imgbtn_search.Icon = new BitmapImage(new Uri("/SMT.Workflow.Platform.Designer;component/Images/Toolbar/16_search.png", UriKind.Relative)); return(imgbtn_search); }
public ImgButton ImgBtnUpdate() { ImgButton imgbtn_update = new ImgButton(); imgbtn_update.Content = "编辑"; imgbtn_update.Foreground = new SolidColorBrush(Colors.White); imgbtn_update.Icon = new BitmapImage(new Uri("/SMT.Workflow.Platform.Designer;component/Images/Toolbar/16_edit.png", UriKind.Relative)); return(imgbtn_update); }
public ImgButton ImgBtnDel() { ImgButton imgbtn_del = new ImgButton(); imgbtn_del.Content = "删除"; imgbtn_del.Foreground = new SolidColorBrush(Colors.White); imgbtn_del.Icon = new BitmapImage(new Uri("/SMT.Workflow.Platform.Designer;component/Images/Toolbar/16_delete.png", UriKind.Relative)); return(imgbtn_del); }
private static void OnIconChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ImgButton node = d as ImgButton; node.Icon = (ImageSource)e.NewValue; }