7

Im trying to edit a BorderBrush (edit: or indeed any element that requires color picker) in the VS2012 Properties pane.

After selecting the border element in the MainWindow I select Brush > BorderBrush >Solid color brush in the property pane.

There is a yellow border around the Color Picker and RGBA values and im not able to change anything in the editor, I can enter values fine into the MainWindow Element XAML ie BorderBrush="#FF777777" I just cant set them with the property editor!

What can I do to get the editor working?

tinmac
  • 2,357
  • 3
  • 25
  • 41
  • I don't use the XAML editor so I couldn't answer your question definitely, but I suspect it's related to the fact `BorderBrush` expects a `Brush` object, not a `string` object containing an RGB – Rachel May 08 '13 at 15:54
  • @Rachel I've just tried it on a and I still cant edit color props, seems like something's locked down. edited question to reflect this. – tinmac May 08 '13 at 16:27
  • Is the Border element you're trying to interact with part of a control template of something? I know if you're using Blend and its yellow around something in the properties pane it means it's a Binded property inside a control template. Which is why you're able to specify it inline in the xaml. – Chris W. May 08 '13 at 17:08
  • I have the same issue. I have a path with a gradient brush for the fill. I am not able to edit the brush. I can switch to a solid color brush, but can't edit that brush in the panel either. I am not using a control template or style. No binding of any properties for this element at all. Same problem exists when using the vs2012 editor. – reuscam May 28 '13 at 13:55

2 Answers2

9

The only solution I have found to date is to re-start VS2012.

tinmac
  • 2,357
  • 3
  • 25
  • 41
4

In VS2015 exists button "Disable project code" above XAML Editor (Zoom, Rendering effect, Show snap grid, ..., Disable project code). This help me

Nikolay RB
  • 41
  • 1
  • Yes. And for those with an older version of VS this answer will be useful: http://stackoverflow.com/questions/3728995/how-to-manually-reload-the-visual-studio-designer-for-wpf – serges_newj Mar 29 '17 at 11:24