{
get
{
- int r = 0;
- int g = 0;
- int b = 0;
- int a = 0;
- var swallowContent = GetPartContent("elm.swallow.rectangle");
- if (swallowContent != IntPtr.Zero)
- {
- Interop.Evas.evas_object_color_get(swallowContent, out r, out g, out b, out a);
- }
- return new Color(r, g, b, a);
+ return BackgroundColor;
}
set
{
- var swallowContent = GetPartContent("elm.swallow.rectangle");
- if (swallowContent == IntPtr.Zero)
- {
- Interop.Elementary.elm_bg_color_set(RealHandle, value.R, value.G, value.B);
- swallowContent = GetPartContent("elm.swallow.rectangle");
- }
- Interop.Evas.evas_object_color_set(swallowContent, value.R, value.G, value.B, value.A);
+ BackgroundColor = value;
}
}