void OnClick7(object sender, RoutedEventArgs e) { btncsharp = new Mono.System.Windows.Controls.Button(); btncsharp.Content = "Created with C# code."; btncsharp.Background = SystemColors.ControlDarkDarkBrush; btncsharp.FontSize = SystemFonts.CaptionFontSize; cv2.Children.Add(btncsharp); }