Hey I want to set color of BorderBrush in .xaml.cs file and don't want to use colours like Red or Green and want to use whole palette from HEX or RGB. I don't know how to covert it. Maybe you know how to solve this problem.
private void TxbName_MouseEnter(object sender, MouseEventArgs e)
{
txbName.BorderBrush = Brushes.Green;
txblImie.Foreground = Brushes.Red;
}