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

RadLegend Entry Labels Transparent

3 Answers 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tyler
Top achievements
Rank 1
Tyler asked on 25 Nov 2014, 01:29 AM
I'm programmatically generating LegendItems for a RadLegend object, but the labels for the legend all seem to be partially transparent or grayed out or something. I can't find any properties to change this, and it doesn't seem like default behavior since the documentation doesn't show anything like this.

XAML:
<UserControl x:Class="Construct.UX.Views.Visualizations.DataLegend"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <telerik:RadLegend x:Name="Legend" />
    </Grid>
</UserControl>


Item generation code:
// ...
 
LegendItem newLegendItem = new LegendItem();
newLegendItem.MarkerFill = new SolidColorBrush(newEntry.Color);
newLegendItem.Title = newEntry.Name;
 
// ...
 
Legend.Items.Add(newLegendItem);
 
// ...

3 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 26 Nov 2014, 04:12 PM
Hello Tyler,

Can you please check the attached project and let us know which are the steps for reproducing the described behavior since we did not manage to do it locally? 

Regards,
Sia
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Tyler
Top achievements
Rank 1
answered on 26 Nov 2014, 04:31 PM
I've fixed it by manually assigning ForegroundBrush to the RadLegend in XAML; we're using a custom theme and the transparent styling may have been caused by that. Thank you for your time
0
Sia
Telerik team
answered on 27 Nov 2014, 05:35 PM
Hello Tyler,

We are happy to hear that you have managed to resolve your issue. Maybe such foreground is set to some parent control which overwrites the legend's one.

I will close this ticket for now and you can reopen it in case something related to this issue arise.


Regards,
Sia
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Tyler
Top achievements
Rank 1
Answers by
Sia
Telerik team
Tyler
Top achievements
Rank 1
Share this question
or