Telerik Forums
UI for WPF Forum
5 answers
280 views
I followed the instructions in another forum post for changing the colors of my pie chart and that worked fine, but the legend colors continued to show the original theme colours.

 

 

My XAML inside the grid resources (I only set the first two colors).

 

 
            <SolidColorBrush x:Key="RadialItemStroke" Color="#FF000000"/>  
 
            <telerikStyling:StylesPalette x:Key="{telerikStyling:ThemeResourceKey   
                    ThemeType={x:Type telerikStyling:Office_BlackTheme},   
                    ElementType={x:Type telerikStyling:ChartArea},   
                    ResourceId={x:Static telerikStyling:ResourceHelper.ResourceKeyRadialStyle}}"> 
                <Style TargetType="{x:Type Shape}">  
                    <Setter Property="Stroke" Value="{StaticResource RadialItemStroke}" /> 
                    <Setter Property="StrokeThickness" Value="2" /> 
                    <Setter Property="Fill" Value="{StaticResource WidgetLightGreen}" /> 
                </Style> 
                <Style TargetType="{x:Type Shape}">  
                    <Setter Property="Stroke" Value="{StaticResource RadialItemStroke}" /> 
                    <Setter Property="StrokeThickness" Value="2" /> 
                    <Setter Property="Fill" Value="{StaticResource WidgetOrange}" /> 
                </Style> 
            </telerikStyling:StylesPalette> 

My chart.
            <telerik:RadChart x:Name="ProgressChart"   
                              Margin="4,8,4,4" 
                              VerticalAlignment="Stretch"   
                              HorizontalAlignment="Stretch">  
                <telerik:RadChart.Background> 
                    <SolidColorBrush Color="Transparent"/>  
                </telerik:RadChart.Background> 
            </telerik:RadChart> 
 

Nothing fancy, but the legend doesn't color correctly.  I saw another post that mentionned the data series naming & legend items naming have been decoupled in the latest release - so I am assuming that also the colors were seperated as well, but I can't figure out how to change them.

Greg

Ves
Telerik team
 answered on 02 Apr 2010
2 answers
212 views
I have this event handler:

 
 
        private void theTree_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) 
        { 
            // do something 
        } 

And it fires all right when I move the scroll bar by dragging it, but when I move around with the mouse wheel, it doesn't fire. Any workaround for this?

Thanks!
Lauren Nickerson
Top achievements
Rank 1
 answered on 01 Apr 2010
5 answers
174 views
With Q1 2010 themes no longer render correctly no matter which one is specified.
More info

Telerik.Windows.Controls.GridView
Telerik.Windows.Controls.Input
Telerik.Windows.Controls.Navigation
Telerik.Windows.Controls
Telerik.Windows.Data

 

 

 

 

<

 

Window x:Class="Telerick2010.Window1"

 

 

 

xmlns

 

="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

Title="Window1" Height="300" Width="300">

 

 

 

<telerik:RadExpander telerik:StyleManager.Theme="Summer" Header="BOB" Grid.Column="0" Grid.Row="0" >

 

 

 

 

</telerik:RadExpander>

 

</

 

Window>

 


Error 1 '/Microsoft.Windows.Design.Developer;component/themes/GridAdorners.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Cannot create instance of 'GenericTheme' defined in assembly 'Microsoft.Windows.Design.Interaction, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Exception has been thrown by the target of an invocation.    Error at object 'ResourceDictionary_4'. C:\Users\bmitchell\Documents\Visual Studio 2008\Projects\Telerick2010\Telerick2010\Window1.xaml 6 9 Telerick2010
Ivan
Telerik team
 answered on 01 Apr 2010
4 answers
201 views
I'm in the process of testing out the telerik rad controls for WPF and trying to decide if these controls best fit my needs.
Currently I'm testing the RadDocking and what I'm looking to accomplish is, have any panel I put in have the ability to fill the container and then the next panel would split depending on where I dock it.

Example:
If I have two floating panels and if I drag and dock the first left, it will dock left and fill the whole RadDock, then if I take the second panel and dock bottom, it will split the first panel and appear to be on the bottom. then I'll continue to dock like this until the interface is built(with additional panels.
Also I'd like to not have any DocumentPanes, I don't want to see tabs unless I fill one panel inside another.

Hopefully this makes sensem I'd appreciate any example someone can provide to accomplish this.

thanks steve
steve white
Top achievements
Rank 1
 answered on 01 Apr 2010
3 answers
92 views
It seems like there are a 2 problems if you try to validate your data by using IDataErrorInfo.

- The UI doesn't get updated properly. I set the background to red for a test and added a breakpoint at the validation part of the code. The code gets validated properly but the background stays red once the error is resolved.
- If you enter a wrong value the text gets moved to the top left corner of the cell and you aren't able to edit the cell until you press escape.
Nedyalko Nikolov
Telerik team
 answered on 01 Apr 2010
1 answer
47 views
Hi Telerik,

When I set tick line styles as follows:

<Style x:Key="AxisTickStyle" TargetType="Line">  
        <Setter Property="Stroke">  
            <Setter.Value> 
                <SolidColorBrush Color="{DynamicResource ColorDarkGray}" />               
            </Setter.Value>           
        </Setter> 
    </Style> 
chart.DefaultView.ChartArea.AxisX.AxisStyles.TickLineStyle = Application.Current.Resources["AxisTickStyle"as Style;  
chart.DefaultView.ChartArea.AxisX.AxisStyles.MinorTickLineStyle = Application.Current.Resources["AxisTickStyle"as Style; 

They dissappear completely, looks like the actually width of them decreases to 0 because the ItemLabels come to the edge of the axis

Any help would be appreciated

Rav
Vladimir Milev
Telerik team
 answered on 01 Apr 2010
6 answers
2.3K+ views
Hi,

We've got the following code in the application's App class's constructor (the fact that we're doing this in the App class appears to be related to the issue):

            bool allGood = false
            do 
            { 
                LoginWindow loginWindow = new LoginWindow(); 
                loginWindow.ShowDialog(); 
                 
                if (loginWindow.DialogResult.GetValueOrDefault(false)) 
                { 
                    try 
                    { 
                        // Try and do something... 
                        allGood = true
                    } 
                    catch (Exception) 
                    { 
                        lastLoginFailed = true
                    } 
                } 
                else 
                    return
            } while (!allGood); 

In the LoginWindow, there's a button whose Click handler ends with a call to Close(). The "Try and do something" code tries something that may possibly throw an Exception. If it does, then allGood stays false and the loop happens again. If it doesn't throw an exception, allGood is set to true and the job ends.

The problem is this - the first call to ShowDialog works fine. The second call does nothing.

Any idea what we're doing wrong here?

Thanks,
yonadav
Garry Clark
Top achievements
Rank 1
 answered on 31 Mar 2010
1 answer
161 views
hi

am using rad tree view, i want to get the parent value, when am selecting a child
i mean, when i click on sub items in the tree i can get the values by selected items, but i want to get the  child value and corresponding parent value when am cliking the child. how i can do it
Tina Stancheva
Telerik team
 answered on 31 Mar 2010
4 answers
126 views
Hello,
I call Rebind to refresh my data. But I'm using the RowLoaded event to format my data conditionally.
It appears that the Rebind does not call this event.
How can I refresh my data and format it conditionally.
Thank You
Jon
Top achievements
Rank 1
 answered on 31 Mar 2010
1 answer
147 views
My chart has 3 Bar series, the 3 bars are shown next to each other and there's a gap between it and the next group of 3 bars. Is there a way to set the size of this gap? In my case I need it to be 0 (no gap).
Giuseppe
Telerik team
 answered on 31 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?