Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
        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);
        }
Esempio n. 7
0
        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);
        }
Esempio n. 8
0
        private static void OnIconChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ImgButton node = d as ImgButton;

            node.Icon = (ImageSource)e.NewValue;
        }