Remove Event textblocks/Caliburn support

Feb 14, 2012 at 9:17 PM

Hello,

 

I am using the WPF version of this control and really like it! However I do have few questions-

1) I am adding events using my ViewModel (although I have to do this in code behind in the OnTimelineReady event). When I add events, I want to not show the text block showing the title and description of the event. I just want to show the textblock when user hovers over the event. How can I remove the textblock that shows up by default.

2) Is there a way to use Caliburn Micro with timeline control so that I dont have to use code behind for timelineready event?

3) When I add events using ViewModel, the portion of the event shows up as a block with white background instead of default black. I have no idea why its happening.

Thanks

Apurva

Here is my XAML-

 <DockPanel DockPanel.Dock="Right" Background="#F8F8EC" Margin="10">
                    <Label Content="Forest Management Schedule" Style="{StaticResource SubHead}" DockPanel.Dock="Top" />
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition
                            Height="*" />
                            <RowDefinition
                            Height="100" />
                        </Grid.RowDefinitions>
                        
                        <timeline:TimelineTray
                        x:Name="timeline" MinDateTime="1/1/2010"
                        MaxDateTime="1/1/2050"
                        CalendarType="gregorian"
                        HorizontalAlignment="Stretch"
                        CurrentDateTime="today"
                            TimelineReady="OnTimelineReady"
                           
                            Height="248" 
                            Margin="0,0,0,24" Grid.RowSpan="2">

                            <Grid.RowDefinitions>
                                <RowDefinition
                                Height="*" />
                                <RowDefinition
                                Height="50" />
                                <RowDefinition
                                Height="30" />
                            </Grid.RowDefinitions>

                            <timeline:TimelineBand
                            IsMainBand="True"
                            ItemSourceType="months"
                            TimelineWindowSize="20"
                            MaxEventHeight="130"
                            Margin="0,2,0,0"
                           
                            />

                            <timeline:TimelineBand
                            Grid.Row="1"
                            HorizontalAlignment="Stretch"
                            ItemSourceType="years"
                            TimelineWindowSize="16"
                            MaxEventHeight="4" />

                            <!--<timeline:TimelineToolbox
                            Grid.Row="1"
                            Margin="0,40,0,0"
                            Grid.RowSpan="2"></timeline:TimelineToolbox>-->
                        </timeline:TimelineTray>
                    </Grid>
                </DockPanel>
            </DockPanel>

 
                    <label>
                    
                        
                            
                            
                        
                        
                        

                            
                                
                                
                                
                            

                            

                            

                            <!--<timeline:TimelineToolbox
                            Grid.Row="1"
                            Margin="0,40,0,0"
                            Grid.RowSpan="2"></timeline:TimelineToolbox>-->
                        
                    
                </label>