Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

Commented Unassigned: Transparent background doesn't work in Android [10196]

$
0
0
In Xamarin.Android code there's a little mistake when set a transparent background.
In fact in PlotView.cs code (at line 301) if background color has alpha value setted to 0 white color is forcily used as background.

var background = actualModel.Background.IsVisible () ? actualModel.Background : OxyColors.White;

Fix is simple:
var background = actualModel.Background.IsVisible () ? actualModel.Background : OxyColors.Transparent;
Comments: I added an `ActualBackground` property and changed the iOS and Android implementation.

Viewing all articles
Browse latest Browse all 2061

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>