Property Value is white if it isn't ReadOnly

Grids for WPF Forum

Posted 6 years ago by Miguel petersen
Version: 12.2.0571
Environment: Windows 8 (64-bit)
Avatar

So hi guys,

I'm having a small problem here... If my property value in my propertyGrid isn't set to ReadOnly, the appears white. I tested this by copying the white string(in this case) into word, and it appeared as i set it. So when the value is white, i simply can't read it.

Screenshot:

Image and video hosting by TinyPic

 

So property 1,2,4,5 are all 'not readonly. While Property 3 and 6 are readonly. Why does this happen, how can i prevent it?

Edit:

Code:

<propgrid:PropertyGrid x:Name="propGrid" Grid.Column="0" MinHeight="300" Width="300" HorizontalAlignment="Left">
<propgrid:PropertyGrid.Properties>
<propgrid:PropertyGridPropertyItem ValueName="Property1" Value="Value1" DefaultValue="DefaultValue1"
Description="This is the first property." Category="Category1" />
<propgrid:PropertyGridPropertyItem ValueName="Property2" Value="Value5" DefaultValue="DefaultValue2"
Description="This is the second property." Category="Category1" IsModified="True" />
<propgrid:PropertyGridPropertyItem ValueName="Property3" Value="Value5" DefaultValue="Value3"
Description="This is the third property." IsReadOnly="True" Category="Category1" />
<propgrid:PropertyGridPropertyItem ValueName="Property4" Value="Value1" DefaultValue="DefaultValue1"
Description="This is the first property." Category="Category2" />
<propgrid:PropertyGridPropertyItem ValueName="Property5" Value="Value2" DefaultValue="DefaultValue2"
Description="This is the second property." Category="Category2" />
<propgrid:PropertyGridPropertyItem ValueName="Property6" Value="Value3" DefaultValue="Value3"
Description="This is the third property." IsReadOnly="True" Category="Category2" />
</propgrid:PropertyGrid.Properties>
</propgrid:PropertyGrid>

Thank You

[Modified 6 years ago]

Comments (3)

Posted 6 years ago by Miguel petersen
Avatar

No one knows?

Sorry, but this problem is really blocking my progress...

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Miguel,

I can't repro that in any theme on our end.  I suspect you have some implicit style for something like TextBlock or TextBox in your app that is being here accidentally and making the foreground white.  Take a look through your app resources or other places for something like that.


Actipro Software Support

Posted 6 years ago by Miguel petersen
Avatar

Thank you!

That was my problem :)

The latest build of this product (v2018.1 build 0675) was released 15 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.