<TextBlock x:Name="MyTextBlock" Text="This is a TextBlock colored from the code behind"/>
// We use the application's Resource dictionary to get the current Accent of your Windows 10 MyTextBlock.Color = new SolidColorBrush(Application.Current.Resources["SystemAccentColor"]);