Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Xwt.XamMac/Xwt.Mac/CanvasBackend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ protected override void OnSizeToFit ()
Widget.SetFrameSize (new CGSize ((nfloat)s.Width, (nfloat)s.Height));
}

public override Xwt.Drawing.Color BackgroundColor { get; set; }

public Rectangle Bounds {
get {
return new Rectangle (0, 0, view.Frame.Width, view.Frame.Height);
Expand Down
7 changes: 6 additions & 1 deletion Xwt/Xwt/FrameBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ public double BorderWidthBottom {
}
}

public Color BorderColor {
public override Color BackgroundColor {
get { return canvas.BackgroundColor; }
set { canvas.BackgroundColor = value; }
}

public Color BorderColor {
get { return borderColor; }
set { borderColor = value; canvas.QueueDraw (); }
}
Expand Down
2 changes: 1 addition & 1 deletion Xwt/Xwt/Widget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ public Font Font {
/// Gets or sets the background color.
/// </summary>
/// <value>The background color of the widget.</value>
public Color BackgroundColor {
public virtual Color BackgroundColor {
get { return Backend.BackgroundColor; }
set { Backend.BackgroundColor = value; }
}
Expand Down