litong 6 місяців тому
батько
коміт
ba7f55a022

+ 11 - 7
CollaborativePlatformMain/Form/MessageSubPage/SeconMessagePage.xaml.cs

@@ -294,12 +294,8 @@ 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;
                 //me_right.Children.Add(scrollViewer);
@@ -344,9 +340,17 @@ namespace CollaborativePlatformMain.Form.MessageSubPage
                     stackPanel1.Children.Add(textBlock3);
                     stackPanel1.Children.Add(dockPanel);
                     stackPanel1.Width = 480;
-
                     me_right.Children.Add(stackPanel1);
                 }
+                else
+                {
+                    TextBlock textBlock = new TextBlock();
+                    textBlock.Text = specificConten;
+                    textBlock.FontSize = 15;
+                    textBlock.FontFamily = new FontFamily("黑体");
+                    textBlock.DataContext = announcement;
+                    me_right.Children.Add(textBlock);
+                }
             }