|
@@ -294,15 +294,14 @@ namespace CollaborativePlatformMain.Form.MessageSubPage
|
|
|
me_right.Children.Clear();
|
|
|
foreach (var specificConten in specificContent)
|
|
|
{
|
|
|
-
|
|
|
- //TextBlock textBlock = new TextBlock();
|
|
|
- //textBlock.Text = specificConten;
|
|
|
- //textBlock.FontSize = 15;
|
|
|
- //textBlock.FontFamily = new FontFamily("黑体");
|
|
|
- //textBlock.DataContext = announcement;
|
|
|
- //me_right.Children.Add(textBlock);
|
|
|
- //ScrollViewer scrollViewer=new ScrollViewer();
|
|
|
- //scrollViewer.VerticalScrollBarVisibility= ScrollBarVisibility.Auto;
|
|
|
+ TextBlock textBlock = new TextBlock();
|
|
|
+ textBlock.Text = specificConten;
|
|
|
+ textBlock.FontSize = 15;
|
|
|
+ textBlock.FontFamily = new FontFamily("黑体");
|
|
|
+ textBlock.DataContext = announcement;
|
|
|
+ me_right.Children.Add(textBlock);
|
|
|
+ //ScrollViewer scrollViewer = new ScrollViewer();
|
|
|
+ //scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
|
|
|
//me_right.Children.Add(scrollViewer);
|
|
|
if (SelectNode.Equals("项目"))
|
|
|
{
|
|
@@ -335,14 +334,14 @@ namespace CollaborativePlatformMain.Form.MessageSubPage
|
|
|
dockPanel.HorizontalAlignment = HorizontalAlignment.Right;
|
|
|
StackPanel stackPanel1 = new StackPanel();
|
|
|
|
|
|
- TextBlock textBlock = new TextBlock();
|
|
|
- textBlock.Text = specificConten;
|
|
|
- textBlock.FontSize = 15;
|
|
|
- textBlock.FontFamily = new FontFamily("黑体");
|
|
|
- textBlock.DataContext = specificConten;
|
|
|
- textBlock.HorizontalAlignment = HorizontalAlignment.Left;
|
|
|
+ TextBlock textBlock3 = new TextBlock();
|
|
|
+ textBlock3.Text = specificConten;
|
|
|
+ textBlock3.FontSize = 15;
|
|
|
+ textBlock3.FontFamily = new FontFamily("黑体");
|
|
|
+ textBlock3.DataContext = specificConten;
|
|
|
+ textBlock3.HorizontalAlignment = HorizontalAlignment.Left;
|
|
|
stackPanel1.DataContext = specificConten;
|
|
|
- stackPanel1.Children.Add(textBlock);
|
|
|
+ stackPanel1.Children.Add(textBlock3);
|
|
|
stackPanel1.Children.Add(dockPanel);
|
|
|
stackPanel1.Width = 480;
|
|
|
|