Month view, week view and working week view in outlook calendar in wpf

Unanswered Month view, week view and working week view in outlook calendar in wpf

All Replies

  • Tuesday, July 10, 2012 7:19 AM
    Moderator
     
     

    Hi dhampall_79,

    I will code a sample for you, please wait, I will upate your thread.

    best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Tuesday, July 10, 2012 9:54 AM
     
     

    hi,

    thank you very much, i'll wait for your next update


    Thanks & Regards dhampall

  • Wednesday, July 11, 2012 3:30 AM
    Moderator
     
     

    Hi dhampall_79,

    -->this sample now i wanted it in Week view ,month view and working week(without sat & sun) ,

    I download that calendar, however, I am not sure your needs about "Week view", "month view" and "working week", could you provide me a detail explaination, and tell me what is you want, might share a pic to deomstrate your needs will be better.

    Best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Wednesday, July 11, 2012 7:21 AM
     
     

    hi,

    i want exactly like in outlook calendar, i will attach the screenshot.

    month view , week view respectively you can avoid the search box from corner


    Thanks & Regards dhampall


    • Edited by dhampall_79 Wednesday, July 11, 2012 7:22 AM
    •  
  • Thursday, July 12, 2012 8:10 AM
    Moderator
     
      Has Code

    Hi dhampall_79,

    Ok, you could open the project you shared, and open RudiGrobler.Controls/Calendar/Themes/Generic.xaml file, and then you could find below part of code:

    <Style TargetType="{x:Type local:Calendar}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type local:Calendar}">
                        <Border Background="#E3EFFF"
                                BorderBrush="#6593CF"
                                BorderThickness="2,2,2,2">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="50" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="38" />
                                    <RowDefinition Height="22" />
                                    <RowDefinition Height="*" />                                
                                </Grid.RowDefinitions>
    
                                <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="5,0,0,0">
                                    <Button Content="Previous" Height="25" Command="{x:Static local:Calendar.PreviousDay}" Background="{x:Null}" BorderBrush="{x:Null}">
                                        
                                    </Button>
                                    <Button Content="Next" Height="25" Command="{x:Static local:Calendar.NextDay}" Background="{x:Null}" BorderBrush="{x:Null}">
                                        
                                    </Button>
                                </StackPanel>
                                <Border BorderBrush="#6593CF" BorderThickness="0,0,1,1" Grid.Column="0" Grid.Row="1" />                            
                                <local:CalendarDayHeader Grid.Column="1" Grid.Row="1" x:Name="PART_DayHeader"/>
                                <ScrollViewer Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" x:Name="PART_ScrollViewer">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="50" />
                                            <ColumnDefinition Width="*" />
                                        </Grid.ColumnDefinitions>
                                                                        
                                        <local:CalendarLedger Grid.Column="0" x:Name="PART_Ledger"/>
                                        <local:CalendarDay Grid.Column="1" x:Name="PART_Day" />
                                    </Grid>
                                </ScrollViewer>
                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

    Above code is the appearance of the View, you could create your own view and replace

     <local:CalendarLedger Grid.Column="0" x:Name="PART_Ledger"/>
     <local:CalendarDay Grid.Column="1" x:Name="PART_Day" />

    You could change above two lines to your control, and then you could get what you want.

    best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Friday, July 20, 2012 7:49 AM
    Moderator
     
     

    Hi dhampall_79,

    How about your issue.

    best regards,


    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Friday, July 20, 2012 7:50 AM
     
     

    i am working on this control i have decided to use your idea.

    the problem is the code is working on sample project and when i shifted to my main project it shows empty control and most troubling thing is it doesnt show any error.


    Thanks & Regards dhampall


    • Edited by dhampall_79 Friday, July 20, 2012 7:52 AM
    •