WPF Tutorial
Welcome to this free online Windows Presentation Foundation tutorial.
Search This Blog
Showing posts with label
BrushConverter
.
Show all posts
Showing posts with label
BrushConverter
.
Show all posts
Thursday, November 3, 2016
Convert Hex to SolidColorBrush
WPF > System.Windows.Media >
BrushConverter
BrushConverter
is used
to convert a Brush object to or from another object type.
Example:
row.Background = (
SolidColorBrush
)(
new
BrushConverter
().ConvertFrom(
"#FFA7CDF0"
));
Older Posts
Home
Subscribe to:
Posts (Atom)