Skip to content

Commit f582423

Browse files
RDEV-9063 - Bump Webview Version (#399)
* RDEV-9063 - Bump Webview Version * Update GlobalSettings.cs * Update GlobalSettings.cs
1 parent f22b14c commit f582423

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<AssemblyVersion>2.0.0.0</AssemblyVersion>
1212
<FileVersion>2.0.0.0</FileVersion>
1313
<!-- Please see https://github.com/OutSystems/WebView?tab=readme-ov-file#versioning for versioning rules -->
14-
<Version>3.120.10</Version>
14+
<Version>3.120.11</Version>
1515
<Authors>OutSystems</Authors>
1616
<Product>WebViewControl</Product>
1717
<Copyright>Copyright © OutSystems 2023</Copyright>

SampleWebView.Avalonia/MainWindow.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Drawing;
12
using Avalonia.Controls;
23
using Avalonia.Markup.Xaml;
34
using WebViewControl;
@@ -8,6 +9,7 @@ internal class MainWindow : Window {
89

910
public MainWindow() {
1011
WebView.Settings.LogFile = "ceflog.txt";
12+
WebView.Settings.BackgroundColor = Color.Bisque;
1113
AvaloniaXamlLoader.Load(this);
1214

1315
DataContext = new MainWindowViewModel(this.FindControl<WebView>("webview"));

WebViewControl/GlobalSettings.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public void AddCommandLineSwitch(string key, string value) {
2828

2929
public IEnumerable<KeyValuePair<string, string>> CommandLineSwitches => commandLineSwitches;
3030

31+
/// <summary>
32+
/// Gets or sets the background color of the WebView control.
33+
/// Default is <see cref="Color.White"/>.
34+
/// Note: Transparent colors (alpha &lt; 255) are not supported.
35+
/// </summary>
3136
public Color BackgroundColor {
3237
get => backgroundColor;
3338
set {

0 commit comments

Comments
 (0)