This is a migrated thread and some comments may be shown as answers.

PropertyGridField foreground does not react properly to Expression Dark Theme when the item is selected

10 Answers 49 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 01 Aug 2018, 07:14 AM

telerik version: 2018.2.515.40

When i click on the item in the property grid, i expect the Label's foreground to turn into Black color. But it didn't.

 

<telerik:RadPropertyGrid Grid.Row="0"
                         x:Name="grdTestProperty" Margin="4"
                         Item="{Binding TestProperty, Mode=OneWay}"
                         SearchBoxVisibility="Collapsed"
                         SearchInNestedProperties="False"
                         FieldIndicatorVisibility="Collapsed"
                         IsVirtualizing="True"
                         AutoGeneratePropertyDefinitions="True"
                         NestedPropertiesVisibility="Visible"
                         LabelColumnWidth="{Binding LabelColumnWidth, Mode=OneWay}"                                 
                         RenderMode="Flat"
                         IsReadOnly="{Binding IsReadOnly, Mode=OneWay}" Loaded="grdTestProperty_Loaded"/>

10 Answers, 1 is accepted

Sort by
0
Joel
Top achievements
Rank 1
answered on 01 Aug 2018, 09:06 AM

Just to add on that i am using StyleManager method to apply the theme

public AppBootstrapper()
{
    StyleManager.ApplicationTheme = new Expression_DarkTheme();
    Initialize();
}
0
Joel
Top achievements
Rank 1
answered on 03 Aug 2018, 12:03 AM

Custom style for PropertyGridField

[quote]As a rule of thumb, the default Foreground for this theme is set to a lighter color.
Then when you select it, it will enter the selected state of PropertyGridField, the selected foreground will turn to black. [/quote]

Apparently that's not happening and i would like to know how to make it work. 
0
Stefan
Telerik team
answered on 03 Aug 2018, 04:29 PM
Hi Joel,

Thank you for the detailed report.

After investigating the cause for it, it seems that this is an issue on our end. I have passed it to our front-end team and the fix will be available with one of the next internal builds. It seems, however, that the problem is reproduced only with StyleManager. Can you please clarify whether using NoXAML binaries with implicit styles is an option for you? More information on this manner can be found in the Implicit Styles topic.

Regards,
Stefan
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Joel
Top achievements
Rank 1
answered on 06 Aug 2018, 07:53 AM

Hi Stefan,

  Unfortunately, using NoXAML binaries is not an option i can take at this moment.
  (Note: i have tried it but too many codes are impacted).
  Please keep me posted once the internal build is ready for download.

0
Accepted
Stefan
Telerik team
answered on 08 Aug 2018, 02:02 PM
Hello,

Thank you for this clarification.

The fix for the issue will be available with our next internal build on Monday(or Tuesday), so you can give it a try next week.

Regards,
Stefan
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Joel
Top achievements
Rank 1
answered on 22 Aug 2018, 11:39 AM

Hi Stefan,

  The bug is fixed. Thanks.

 

p/s: for anyone encounter this alarm:

C:\Users\joel_nat\AppData\Local\Microsoft\VisualStudio\15.0_c0b7f17a\Designer\ShadowCache\jislga13.fpp\dtalv3ht.dcu\Telerik.Windows.Zip.dll
An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

See https://stackoverflow.com/questions/3072359/unblocking-a-dll-on-a-company-machine-how

0
Joel
Top achievements
Rank 1
answered on 23 Aug 2018, 04:52 AM
Hi,

    For some unknown reason, after making reference to the latest internal build - version 2018.2.820.40, all telerik controls are showing the error - The name "RadXXX" does not exist in the namespace "http://schemas.telerik.com/2008/xaml/presentation".
    I am using VS2017 & the target .net framework is 4.0

    Can you let me know how to resolve this problem?
0
Accepted
Stefan
Telerik team
answered on 23 Aug 2018, 12:35 PM
Hi Joel,

Thanks for the image provided.

This is a common issue when upgrading the assemblies versions. Most commonly it is related to the caching mechanism of Visual Studio. In order to overcome this you can do the following steps.

1. Remove all Telerik references from the project.
2. Close VisualStudio.
3. Delete the "bin" and "obj" folders of the project.
4. Reopen VisualStudio and reference the Telerik assemblies. You need to ensure that all assemblies are of the same version and that there is no mixture between XAML and NoXAML binaries. Also, the .NET version of the dlls has to be compatible with the target framework of the project.
5. Clean and then Rebuild the project.

I hope this helps, Joel. Let me know how it goes.

Regards,
Stefan
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Joel
Top achievements
Rank 1
answered on 23 Aug 2018, 02:29 PM

Hi Stefan,

  Thanks for the hint.

  At the end, i think cleaning the Shadowcache folder solve the problem.

  See here: https://www.telerik.com/forums/the-name-radbusyindicator-does-not-exist-in-the-namespace-http-schemas-telerik-com-2008-xaml-presentation

   

0
Stefan
Telerik team
answered on 24 Aug 2018, 08:31 AM
Hi Joel,

Thank you for the update.

I am happy to hear that you have managed to solve the problem.

All the best,
Stefan
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
PropertyGrid
Asked by
Joel
Top achievements
Rank 1
Answers by
Joel
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or