"; label3.TextAlignment = System.Windows.TextAlignment.Justify; label3.VerticalAlignment = System.Windows.VerticalAlignment.Top; label3.Width = 400; label3.Height = 300; MainGrid.Children.Add(label3); #endregion #region label4 Label label4 = new Label(); label4.Content = "Label 4"; label4.FontSize = 16; label4.FontStretch = FontStretches.UltraExpanded; label4.FontStyle = FontStyles.Italic; label4.FontWeight = FontWeights.Bold; label4.Padding = new Thickness(0, 0, 0, 0); label4.Foreground = new SolidColorBrush(Colors.Purple); label4.Background = new SolidColorBrush(Colors.PaleGoldenrod); label4.BorderBrush = new SolidColorBrush(Colors.Black); label4.BorderThickness = new Thickness(1); RotateTransform rotate = new RotateTransform(); rotate.Angle = 10; label4.RenderTransform = rotate; label4.RenderTransformOrigin = new Point(0, 0); label4.Width = 300; label4.Height = 100; MainGrid.Children.Add(label4); #endregion #region label5 Label label5 = new Label(); label5.Content = "Label 5"; label5.FontSize = 16; label5.FontFamily = new FontFamily("Comic Sans MS"); label5.BorderBrush = new SolidColorBrush(Colors.Transparent); label5.Background = new SolidColorBrush(Colors.Transparent); label5.VerticalAlignment = System.Windows.VerticalAlignment.Bottom; label5.HorizontalAlignment = System.Windows.HorizontalAlignment.Right; label5.BorderThickness = new Thickness(1); label5.BorderBrush = new SolidColorBrush(Colors.Red); label5.Effect = new BlurEffect(); label5.Width = 100; label5.Height = 100; MainGrid.Children.Add(label5); #endregion #region label6 Label label6 = new Label(); label6.Content = "Label 6"; label6.FontSize = 16; label6.FontFamily = new FontFamily("Times New Roman"); label6.BorderBrush = new SolidColorBrush(Colors.Transparent); label6.Background = new SolidColorBrush(Colors.Transparent); label6.VerticalAlignment = System.Windows.VerticalAlignment.Top; label6.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; label6.BorderThickness = new Thickness(1); label6.BorderBrush = new SolidColorBrush(Colors.Blue); label6.Effect = new BlurEffect(); label6.Width = 100; label6.Height = 100; MainGrid.Children.Add(label6); #endregion #region label7 Label label7 = new Label(); label7.Content = "Label 7"; label7.FontSize = 16; label7.FontFamily = new FontFamily("Comic Sans MS"); label7.BorderBrush = new SolidColorBrush(Colors.Transparent); label7.Background = new SolidColorBrush(Colors.Transparent); label7.VerticalAlignment = System.Windows.VerticalAlignment.Top; label7.HorizontalAlignment = System.Windows.HorizontalAlignment.Right; label7.Width = 100; label7.Height = 100; MainGrid.Children.Add(label7); #endregion #region label8 Label label8 = new Label(); label8.Content = "Label 8"; label8.FontSize = 16; label8.FontFamily = new FontFamily("Times New Roman"); label8.BorderBrush = new SolidColorBrush(Colors.Transparent); label8.Background = new SolidColorBrush(Colors.Transparent); label8.VerticalAlignment = System.Windows.VerticalAlignment.Bottom; label8.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; label8.Width = 100; label8.Height = 100; MainGrid.Children.Add(label8); #endregion #region label8 Label label9 = new Label(); Image image = new Image(); image.Source = new BitmapImage(new Uri("Image/label9.png", UriKind.Relative)); label9.Content = image; label9.BorderBrush = new SolidColorBrush(Colors.Transparent); label9.Background = new SolidColorBrush(Colors.Transparent); label9.VerticalAlignment = System.Windows.VerticalAlignment.Bottom; label9.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; label9.Width = 100; label9.Height = 100; MainGrid.Children.Add(label9); #endregion #region label10 Label label10 = new Label(); label10.Content = "Label 10"; label10.FontSize = 16; label10.FontFamily = new FontFamily("Comic Sans MS"); label10.VerticalAlignment = System.Windows.VerticalAlignment.Bottom; label10.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; label10.Width = 100; label10.Height = 100; label10.Margin = new Thickness(100, 0, 0, 0); Main
免責聲明:若本站收錄的資源侵犯了您的權益,我們會及時刪除侵權內容,謝謝合作!