<TabControl Name="TabControlDayWeek" >
<TabItem Header="weekly">
<Border BorderBrush="#666666"
BorderThickness="2"
CornerRadius="5"
Margin="10">
<Grid Height="185">
<chart:SfChart Name="SfChartWeekly"
Height="175"
HorizontalAlignment="Center"
Margin="10"
VerticalAlignment="Center">
<chart:SfChart.Behaviors>
<chart:ChartZoomPanBehavior ZoomMode="X"></chart:ChartZoomPanBehavior>
</chart:SfChart.Behaviors>
<chart:SfChart.PrimaryAxis>
<chart:DateTimeAxis Header="Date"
LabelFormat="MMM-dd"
FontSize="10"></chart:DateTimeAxis >
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis Header="Time (hrs)"
OpposedPosition="False"
Minimum="0"
LabelFormat="g"
FontSize="10"></chart:NumericalAxis>
</chart:SfChart.SecondaryAxis>
<chart:LineSeries Label="Duration"
ItemsSource="{Binding ThisPlannerView.WeeklyDurationsToDisplay, RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}"
XBindingPath="myDate"
YBindingPath="duration"
ShowTooltip="True"></chart:LineSeries>
<chart:LineSeries Label="Tss"
ItemsSource="{Binding ThisPlannerView.WeeklyTssToDisplay, RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}"
XBindingPath="myDate"
YBindingPath="Tss"
ShowTooltip="True">
<chart:LineSeries.YAxis>
<chart:NumericalAxis OpposedPosition="True"
Header="Tss"
FontSize="10"></chart:NumericalAxis >
</chart:LineSeries.YAxis>
</chart:LineSeries>
<chart:SfChart.Legend>
<chart:ChartLegend></chart:ChartLegend>
</chart:SfChart.Legend>
</chart:SfChart>
</Grid>
</Border>
</TabItem>
<TabItem Name="TabPanelDaily"
Header="daily">
<Border BorderBrush="#666666"
BorderThickness="2"
CornerRadius="5"
Margin="10">
<Grid Height="185">
<chart:SfChart Name="SfChartDaily"
Height="175"
HorizontalAlignment="Center"
Margin="10"
VerticalAlignment="Center">
<chart:SfChart.Behaviors>
<chart:ChartZoomPanBehavior ZoomMode="X"></chart:ChartZoomPanBehavior>
</chart:SfChart.Behaviors>
<chart:SfChart.PrimaryAxis>
<chart:DateTimeAxis Header="Date"
LabelFormat="MMM-dd"
FontSize="10"></chart:DateTimeAxis >
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis Header="Time (hrs)"
OpposedPosition="False"
Minimum="0"
LabelFormat="g"
FontSize="10"></chart:NumericalAxis>
</chart:SfChart.SecondaryAxis>
<chart:ColumnSeries Label="Duration"
ItemsSource="{Binding ThisPlannerView.DailyDurationsToDisplay, RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}"
XBindingPath="myDate"
YBindingPath="duration"
ShowTooltip="True"></chart:ColumnSeries>
<chart:ColumnSeries Label="Tss"
ItemsSource="{Binding ThisPlannerView.DailyTssToDisplay, RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor}}"
XBindingPath="myDate"
YBindingPath="Tss"
ShowTooltip="True">
<chart:ColumnSeries.YAxis>
<chart:NumericalAxis OpposedPosition="True"
Header="Tss"
FontSize="10"></chart:NumericalAxis >
</chart:ColumnSeries.YAxis>
</chart:ColumnSeries>
<chart:SfChart.Legend>
<chart:ChartLegend></chart:ChartLegend>
</chart:SfChart.Legend>
</chart:SfChart>
</Grid>
</Border>
</TabItem>
</TabControl>
<chart:SfChart Name="SfChartDaily" DataContext="{Binding SomeProperty, RelativeSource={RelativeSource AncestorType={x:Type Window}, Mode=FindAncestor} }">
<chart:ColumnSeries ItemsSource="{Binding Collection1}"/>
<chart:ColumnSeries ItemsSource="{Binding Collection2}"/>
<chart:SfChart />
|