本帖最后由 许正龙 于 2013-3-9 19:49 编辑
求高手用WPF帮忙给写一个如图计算器界面的代码!!
TextBlock txtShow = new TextBlock();
Grid.SetRow(txtShow, 0);
Grid.SetColumn(txtShow, 0);
Grid.SetColumnSpan(txtShow, 5);
Grid.SetRowSpan(txtShow, 2);
txtShow.HorizontalAlignment = HorizontalAlignment.Right;
txtShow.VerticalAlignment = VerticalAlignment.Center;
txtShow.FontSize = 55;
txtShow.Text = "3.1414";
txtShow.Background = new SolidColorBrush(Colors.Green);
gridJsq.Children.Add(txtShow);
为什么效果是这个样子,还有求高手指点这个边框的效果怎么弄,谢谢!
|