RadLegend Entry Labels Transparent

4 posts, 0 answers
  1. Tyler
    Tyler avatar
    7 posts
    Member since:
    Aug 2013

    Posted 24 Nov 2014 Link to this post

    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);
     
    // ...
  2. Sia
    Admin
    Sia avatar
    667 posts

    Posted 26 Nov 2014 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tyler
    Tyler avatar
    7 posts
    Member since:
    Aug 2013

    Posted 26 Nov 2014 in reply to Sia Link to this post

    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
  5. Sia
    Admin
    Sia avatar
    667 posts

    Posted 27 Nov 2014 Link to this post

    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.

     
Back to Top