3 using SiliconStudio.Core;
4 using SiliconStudio.Core.Mathematics;
5 using SiliconStudio.Paradox.UI.Controls;
7 namespace SiliconStudio.
Paradox.UI.Renderers
12 internal class DefaultContentDecoratorRenderer : ElementRenderer
19 public override void RenderColor(UIElement element, UIRenderingContext context)
21 base.RenderColor(element, context);
25 if (decorator.BackgroundImage == null)
28 var image = decorator.BackgroundImage;
29 var color = decorator.RenderOpacity * Color.White;
31 Batch.DrawImage(image.Texture, image.TextureAlpha, ref decorator.WorldMatrixInternal, ref image.RegionInternal,
32 ref decorator.RenderSizeInternal, ref image.BordersInternal, ref color, context.DepthBias,
image.Orientation);
A service registry is a IServiceProvider that provides methods to register and unregister services...
A ContentControl decorating its ContentControl.Content with a background image.
Android.Widget.Orientation Orientation