UWP Composition API: Rounded Corners?
问题 I'm struggling to figure out to to create rounded corners of content using Composition API. This is where I'm at, any help would be much appreciated: void CreateRoundedCorners(Vector2 cornerRadius, CompositionSurfaceBrush imageSourceBrush, SpriteVisual targetVisual) { CompositionRoundedRectangleGeometry roundedRectangle = _compositor.CreateRoundedRectangleGeometry(); roundedRectangle.Size = new Vector2(; roundedRectangle.CornerRadius = cornerRadius; CompositionSpriteShape spriteShape =