or
<telerik:RadDocking BorderBrush="{x:Null}" BorderThickness="0" Padding="0" Name="_dock" Margin="0"> <telerik:RadSplitContainer Name="_splitContainer" Width="450"> <telerik:RadPaneGroup TabStripPlacement="Right" TabOrientation="Horizontal"> <telerik:RadPane Header="Item Image" Content="This is an item image" /> <telerik:RadPane Header="Tags" Content="These are the tags" /> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking>
<telerik:RadDropDownButton x:Name="PART_DropDownButton" CloseOnEnter="True" Grid.Column="1" DropDownIndicatorVisibility="Collapsed" Focusable="False" telerik:DateTimePickerExtensions.FocusContentOnOpen="True" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" IsTabStop="False" IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Margin="-1,0,0,0" Padding="0" PopupPlacementTarget="{Binding ElementName=PART_DateTimeInput}" TabIndex="1" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"><telerik:RadDropDownButton.DropDownContent>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition Height="33"/>
</Grid.RowDefinitions>
<telerik:RadCalendar x:Name="PART_Calendar"
Culture="{TemplateBinding Culture}"
Grid.Column="0"
DisplayDateEnd="{Binding DisplayDateEnd, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" DateSelectionMode="{TemplateBinding DateSelectionMode}"
DisplayDateStart="{Binding DisplayDateStart, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" DisplayDate="{Binding DisplayDate, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
IsReadOnly="{TemplateBinding IsReadOnly}"
Grid.Row="0"
Style="{TemplateBinding CalendarStyle}"
SelectableDateEnd="{Binding SelectableDateEnd, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
SelectionMode="Single"
SelectedDate="{Binding SelectedDate, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
SelectableDateStart="{Binding SelectableDateStart, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
</telerik:RadCalendar>
<telerik:DateTimePickerClock x:Name="PART_Clock" Culture="{TemplateBinding Culture}" Grid.Column="1" EndTime="{TemplateBinding EndTime}" Header="Clock" IsReadOnly="{TemplateBinding IsReadOnly}" Grid.Row="0" Style="{TemplateBinding ClockStyle}" SelectedTime="{Binding SelectedTime, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" StartTime="{TemplateBinding StartTime}" TimeInterval="{Binding TimeInterval, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
</telerik:DateTimePickerClock>
<StackPanel Grid.Row="2" Background="#ABACA7" >
<Border BorderThickness="1" Grid.Row="2" VerticalAlignment="Top" BorderBrush="whitesmoke" Margin="1" >
<Button Style="{StaticResource DatePickerButton}" Content="Today" />
</Border>
</StackPanel>
<!--Date Picker Button Style -->
<Style x:Key="DatePickerButton" TargetType="Button">
<Setter Property="Background" Value="#E0E0DE" />
<Setter Property="BorderBrush" Value="#91918F"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property = "HorizontalAlignment" Value="Center"/>
<Setter Property="Height" Value="24"/>
<Setter Property="Width" Value="50"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="ExtraBold"/>
<Setter Property= "Margin" Value="2"/>
<Setter Property= "Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border BorderThickness="{TemplateBinding BorderThickness}"
BorderBrush="{TemplateBinding BorderBrush}"
Background="{TemplateBinding Background}"
Padding="{TemplateBinding Padding}"
CornerRadius="2.8"
>
<ContentControl Content="{TemplateBinding Content}"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Background" Value="{StaticResource SecondaryMouseOverColor}"/>
<Setter Property="BorderBrush" Value="Gold"/>
</Trigger>
<Trigger Property="IsPressed" Value="true">
<Setter Property="Background" Value="{StaticResource SecondaryMouseOverColor}"/>
<Setter Property="BorderBrush" Value="Orange"/>
</Trigger>
</Style.Triggers>
</Style>
private void SetupGraph() { radChart.ItemsSource = dataContext.Points; var seriesMappings = CreateSeriesMappings(); var axisX = new AxisX { DefaultLabelFormat = "dd-MM-yy", LabelRotationAngle = 45, Step = 1, LabelStep = 1, AutoRange = false, IsDateTime = true }; var tickPoints = dataContext.Points.SelectMany(gp => gp).Select(gp => gp.Date).Distinct().Select(dt => new TickPoint(){IsDateTime = true, Label = dt.ToShortDateString(), Value = dt.ToOADate()}); axisX.TickPoints.AddRange(tickPoints); var axisY = new AxisY { DefaultLabelFormat = "N3", }; var chartArea = new ChartArea { AxisX = axisX, AxisY = axisY, LegendName = "legend" }; var chartLegend = new ChartLegend { Name = "legend", UseAutoGeneratedItems = true, Width = 145 }; var chartTitle = new ChartTitle { Content = "Graph" }; var chartDefaultView = new ChartDefaultView { ChartArea = chartArea, ChartTitle = chartTitle, ChartLegend = chartLegend, }; radChart.SeriesMappings.AddRange(seriesMappings); radChart.DefaultView = chartDefaultView; radChart.AnimationSettings = new AnimationSettings() { TotalSeriesAnimationDuration = new TimeSpan(0, 0, 0, 00), ItemAnimationDuration = new TimeSpan(0,0,0,0), ItemDelay = new TimeSpan(0,0,0,0)}; radChart.Rebind(); }