解决方案 »

  1.   

    你应该先打印.net类库中标准Button的Style看看。你所谓的“模板”与 wpf 的概念关系不大。你要想吃鱼,最起码先要见过鱼,知道鱼有几个头。
      

  2.   

    自定义一个控件类继承Button,给它添加一个图片的依赖属性,然后在模板里面对这个依赖属性进行绑定
      

  3.   

    自己打造各种按钮
     private void Frm_Main_Load(object sender, EventArgs e)
            {
                btn_One.Image = //设置按钮上的图像
                global::MenuVestige.Properties.Resources.picture;
                btn_Tow.ForeColor = Color.Red;//设置按钮前景色为红色
                btn_Three.FlatStyle = FlatStyle.Flat;//设置按钮以平面显示
                btn_Three.ForeColor = Color.Blue;//设置按钮前景色为蓝色
                btn_Four.ForeColor = Color.Green;//设置按钮前景色为绿色
                btn_Four.FlatStyle = FlatStyle.Popup;//得到焦点后按钮为三维样式
                btn_Five.FlatStyle = FlatStyle.Standard;//设置按钮以三维样式显示
                btn_six.FlatStyle = FlatStyle.System;//按钮外观由操作系统决定
                btn_six.Font = new Font("隶书", 20);//设置按钮文字字体
            }
      

  4.   

    正解!!!
    样式不能满足楼主的要求,只能自定义模板.
    正解。附代码一份, public class ImageButton : Button
        {
            public static readonly DependencyProperty ImageSourceProperty = DependencyProperty.Register("ImageSource", typeof(ImageSource), typeof(ImageButton));        public ImageSource ImageSource
            {
                get { return (ImageSource)GetValue(ImageSourceProperty); }
                set { SetValue(ImageSourceProperty, value); }
            }
    }