or
<
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); |