<
ControlTemplate.Triggers
>
<
Trigger
Property
=
"IsSelected"
Value
=
"True"
>
<
Setter
TargetName
=
"CarouselItemMainBorder"
Property
=
"Background"
>
<
Setter.Value
>
<
LinearGradientBrush
EndPoint
=
"108,472"
StartPoint
=
"108,23"
MappingMode
=
"Absolute"
>
<
GradientStop
Color
=
"#FF344B97"
Offset
=
"0"
/>
<
GradientStop
Color
=
"#FF000000"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FF233F7E"
Offset
=
"0.045"
/>
<
GradientStop
Color
=
"#FF000000"
Offset
=
"0.0451"
/>
</
LinearGradientBrush
>
</
Setter.Value
>
</
Setter
>
<
Setter
TargetName
=
"CarouselItemInnerBorder"
Property
=
"Background"
>
<
Setter.Value
>
<
LinearGradientBrush
EndPoint
=
"101,462"
StartPoint
=
"101,13"
MappingMode
=
"Absolute"
>
<
GradientStop
Color
=
"#FF344B97"
Offset
=
"0"
/>
<
GradientStop
Color
=
"#FF000000"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FF233F7E"
Offset
=
"0.045"
/>
<
GradientStop
Color
=
"#FF000000"
Offset
=
"0.0451"
/>
</
LinearGradientBrush
>
</
Setter.Value
>
</
Setter
>
</
Trigger
>
</
ControlTemplate.Triggers
>
<
telerikNavigation:RadCarousel
Height
=
"{Binding MainMenuHeight}"
Width
=
"{Binding MainMenuWidth}"
ItemsSource
=
"{Binding Path=Menu.Options}"
SelectedItem
=
"{Binding SelectedMainMenuOption, Mode=TwoWay}"
AutoGenerateDataPresenters
=
"True"
Background
=
"Transparent"
HorizontalScrollBarVisibility
=
"Disabled"
VerticalScrollBarVisibility
=
"Disabled"
VerticalContentAlignment
=
"Stretch"
IsSynchronizedWithCurrentItem
=
"True"
CurrentItem
=
"{Binding SelectedMainMenuOption, Mode=TwoWay}"
Focusable
=
"False"
IsTabStop
=
"False"
Grid.Row
=
"2"
>
<
telerikNavigation:RadCarousel.ItemTemplate
>
<
DataTemplate
>
<
Border
Focusable
=
"True"
>
<
StackPanel
Orientation
=
"Horizontal"
Focusable
=
"True"
>
<
Image
Source
=
"{Binding IconPath}"
Focusable
=
"True"
/>
<
TextBlock
Text
=
"{Binding Title}"
Focusable
=
"True"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
Border
>
</
DataTemplate
>
</
telerikNavigation:RadCarousel.ItemTemplate
>
<
telerikNavigation:RadCarousel.ItemsPanel
>
<
ItemsPanelTemplate
>
<
telerikNavigation:RadCarouselPanel
x:Name
=
"radCarouselPanel"
PathPadding
=
"0"
IsScalingEnabled
=
"True"
IsOpacityEnabled
=
"False"
ItemsPerPage
=
"{Binding ItemsPerPage}"
Path
=
"{StaticResource menuPath}"
CanVerticallyScroll
=
"True"
CanHorizontallyScroll
=
"False"
VerticalAlignment
=
"Stretch"
IsSelectedTopItem
=
"True"
Focusable
=
"False"
>
</
telerikNavigation:RadCarouselPanel
>
</
ItemsPanelTemplate
>
</
telerikNavigation:RadCarousel.ItemsPanel
>
</
telerikNavigation:RadCarousel
>
<
Window x:Class="WpfApplication3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="521" Width="525"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<Window.Resources >
<DataTemplate x:Key="GraphTemplate" >
<Grid >
<telerik:RadChart Height="264" ItemsSource="{Binding DataList}" Margin="34,21,0,0" x:Name="radChart1" VerticalAlignment="Top" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
<telerik:RadChart.SeriesMappings >
<telerik:SeriesMapping LegendLabel="T" >
<telerik:SeriesMapping.SeriesDefinition >
<telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False" />
</telerik:SeriesMapping.SeriesDefinition>
<telerik:SeriesMapping.ItemMappings >
<telerik:ItemMapping DataPointMember="XValue" FieldName="Dt" />
<telerik:ItemMapping DataPointMember="YValue" FieldName="Data" />
</telerik:SeriesMapping.ItemMappings>
</telerik:SeriesMapping>
</telerik:RadChart.SeriesMappings>
<telerik:RadChart.DefaultView >
<telerik:ChartDefaultView >
<telerik:ChartDefaultView.ChartArea >
<telerik:ChartArea >
<telerik:ChartArea.AxisX >
<telerik:AxisX DefaultLabelFormat="#VAL{hh:mm:ss}" LabelRotationAngle="70" LabelStep="2" Title="Time1" />
</telerik:ChartArea.AxisX>
</telerik:ChartArea>
</telerik:ChartDefaultView.ChartArea>
</telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>
</telerik:RadChart>
</Grid>
</DataTemplate>
</Window.Resources>
<Grid x:Name="maingrid" Loaded="Grid_Loaded">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<!--going through the template will not get x_axis in correct format-->
<ContentPresenter Grid.Row="0" ContentTemplate="{StaticResource GraphTemplate}" Content="{Binding }" />
<!--this will get the x-axis correct. the code is the same as what in the template-->
<telerik:RadChart Grid.Row="1" Height="264" ItemsSource="{Binding DataList}" Margin="34,21,0,0" x:Name="radChart1" VerticalAlignment="Top" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
<telerik:RadChart.SeriesMappings >
<telerik:SeriesMapping LegendLabel="T" >
<telerik:SeriesMapping.SeriesDefinition >
<telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False" />
</telerik:SeriesMapping.SeriesDefinition>
<telerik:SeriesMapping.ItemMappings >
<telerik:ItemMapping DataPointMember="XValue" FieldName="Dt" />
<telerik:ItemMapping DataPointMember="YValue" FieldName="Data" />
</telerik:SeriesMapping.ItemMappings>
</telerik:SeriesMapping>
</telerik:RadChart.SeriesMappings>
<telerik:RadChart.DefaultView >
<telerik:ChartDefaultView >
<telerik:ChartDefaultView.ChartArea >
<telerik:ChartArea >
<telerik:ChartArea.AxisX >
<telerik:AxisX DefaultLabelFormat="#VAL{hh:mm:ss}" LabelRotationAngle="70" LabelStep="2" Title="Time1" />
</telerik:ChartArea.AxisX>
</telerik:ChartArea>
</telerik:ChartDefaultView.ChartArea>
</telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>
</telerik:RadChart>
</Grid>
</
Window>
<telerik:RadTabItem Header="_Main" />
<telerik:RadTabItem Header="_Customer" />
<telerik:RadTabItem Header="_Employee" />
What's the secret behind this? :-) Please reply ASAP. We are looking into how flexible the tool is to support quick keyboard navigations..
Cheers
Good day
im using Rad 2010 Q2
<
telerik:RadTabItem.Header
>
<
StackPanel
FlowDirection
=
"LeftToRight"
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Images/b-blue.png"
Height
=
"16"
Width
=
"16"
/>
<
TextBlock
Text
=
"Case"
Margin
=
"5,0,0,0"
/>
</
StackPanel
>
</
telerik:RadTabItem.Header
>
this code is working fine showing Icon + header
> But without save/loadlayout !
first case : when loading layout and it has been saved before code implemented it shows no Image
second case : when save the new layout and trying to load it , it shows System.Windows.... instead of both (header name & image)
(raddocking flow direction is left to right and saving/loading layout is working fine before the use of header image)
help ! :)
Thanks in advance ,sam
MainScheduleView.ChildrenOfType<Telerik.Windows.Controls.AppointmentsControl>();