Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
XamTimeLine EventTitile build from bottom not the top
posted

Hi,

Is it possible EventTitle starts building from bottom instead of top?. For example if I bind 5 events to timeline control, all are displayed at top with line which come down to zoombar. Instead if I want to display Items starts binding from bottom i.e. starts near to zoombar instead from top

Parents
  • 17605
    posted

    Try using this code:

       <Grid x:Name="LayoutRoot" Background="White">

            <Grid.Resources>

                <Style x:Key="SceneStyle" TargetType="ig:Scene">

                    <Setter Property="IsTabStop" Value="False"/>

                    <Setter Property="Template">

                        <Setter.Value>

                            <ControlTemplate TargetType="ig:Scene">

                                <Grid>

                                    <ig:StripesPanel x:Name="StripesPanelElement" />

                                    <ig:GridLinesPanel x:Name="GridLinesPanelElement" />

                                    <Grid Style="{TemplateBinding SceneGridStyle}">

                                        <Grid.RowDefinitions>

                                            <RowDefinition Height="*" />

                                            <RowDefinition Height="Auto" />

                                            <RowDefinition Height="0" />

                                        </Grid.RowDefinitions>

                                        <ig:EventTitlesPanel x:Name="TitlesPanelTopOrLeftElement"

                                                        Position="TopOrLeft" />

                                        <Grid x:Name="AxisPaneElement" Grid.Row="1" />

                                        <ig:EventTitlesPanel x:Name="TitlesPanelBottomOrRightElement"

                                                        Position="BottomOrRight"

                                                        Grid.Row="2" />

                                    </Grid>

                                </Grid>

                            </ControlTemplate>

                        </Setter.Value>

                    </Setter>

                </Style>

            </Grid.Resources>

            <ig:XamTimeline SceneStyle="{StaticResource SceneStyle}">

                <ig:XamTimeline.Series>

                    <ig:NumericTimeSeries>

                        <ig:NumericTimeSeries.Entries>

                            <ig:NumericTimeEntry Time="1" Title="Title 1" />

                            <ig:NumericTimeEntry Time="2" Title="Title 2" />

                        </ig:NumericTimeSeries.Entries>   

                    </ig:NumericTimeSeries>

                </ig:XamTimeline.Series>

            </ig:XamTimeline>

        </Grid>

     

Reply Children