or
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> |
<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> |
private void theTree_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) |
{ |
// do something |
} |
<
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>
<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; |
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); |