ToDxBrush()
ToDxBrush()
Definition
Converts a WPF Brush to a SharpDX Brush used for SharpDX rendering. Supports SolidColorBrush, LinearGradientBrush, and RadialGradientBrush types.
If you are using a large number of brushes, and are not tied to WPF resources, you should favor creating the SharpDX Brush directly since the ToDxBrush() method can lead to performance issues if called too frequently during a single render pass.
Method Return Value
A new SharpDX.Direct2D1.Brush constructed colors and brush properties of the WPF brush.
Syntax
DxExtensions.ToDxBrush(this System.Windows.Media.Brush brush, RenderTarget renderTarget)
\<wpfbrush\>.ToDxBrush(RenderTarget renderTarget)

