Hello,
I need to change the colors of an item on my menu to bring attention to it. That part works great. Where I am having trouble is resetting it back to defaults. I am trying to use the resetvalue function to do this? Am I doing this correctly?
With mnuForms
.Image = My.Resources.rejectedForms16x16
.BorderPrimitive.Visibility = ElementVisibility.Visible
.FillPrimitive.GradientStyle = GradientStyles.Solid
.FillPrimitive.BackColor = Color.Red
.ForeColor = Color.White
.ResetValue(FillPrimitive.GradientStyleProperty, ValueResetFlags.Local)
.ResetValue(FillPrimitive.BackColorProperty, ValueResetFlags.Local)
.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local)
.ResetValue(BorderPrimitive.VisibilityProperty, ValueResetFlags.Local)
End With