摘要:
//创建BorderBorder imageBorder = new Border();imageBorder.Width = picWidth;imageBorder.Height = picWidth;//创建GridGrid imageGrid = new Grid();imageGrid.Width = imageBorder.Width;imageGrid.Height = imageBorder.Height;//设置Grid为Borde的子元素imageBorder.Child = imageGrid;//创建图片Image image = new Image();//设置图片资 阅读全文
摘要:
一、创建相关对象,并定义Grid中的列属性Grid forwardAndReply = new Grid();//创建Grid对象forwardAndReply.Margin = new Thickness(0, 10, 0, 5);forwardAndReply.HorizontalAlignment = HorizontalAlignment.Right;forwardAndReply.Height = 30;//创建第一个ColumnDefinitionColumnDefinition firstColumnDefinition = new ColumnDefinition();//定义 阅读全文
摘要:
  阅读全文