Mega Code Archive
From sRGB values in the Color strutcure
//File:Window.xaml.vb
Imports System
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Input
Imports System.Windows.Media
Imports System.Windows.Shapes
Namespace WpfApplication1
Public Partial Class SolidColorBrushExample
Inherits Window
Public Sub New()
InitializeComponent()
Dim brush As New SolidColorBrush()
' From sRGB values in the Color strutcure:
brush = New SolidColorBrush(Color.FromArgb(100, 0, 0, 255))
rect3.Fill = brush
End Sub
End Class
End Namespace