Click here to Skip to main content
15,885,957 members
Articles / Programming Languages / Visual Basic 10

Quick and Simple WPF Month-view Calendar - Updated

Rate me:
Please Sign up or sign in to vote.
5.00/5 (9 votes)
21 Aug 2009CPOL5 min read 80.5K   4.8K   69  
A very simple, XAML-based month-view calendar that shows appointments, exposes events, and allows dragging appointments in the current month.
<UserControl x:Class="DayBoxAppointmentControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:WpfCal="clr-namespace:QuickWPFMonthCalendar" WpfCal:DragDropHelper.IsDragSource="True"
    Tag="{Binding Path=AppointmentID}">
    <Border x:Name="BorderElement" CornerRadius="5" BorderBrush="DarkOliveGreen" Background="LightGreen" BorderThickness="1" Margin="2,2,2,1">
        <TextBlock x:Name="DisplayText" Text="{Binding Path=Subject}" FontSize="10" Padding="2" TextWrapping="Wrap"/>
    </Border>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Thailand Thailand
Just a .NET developer, mostly VB.NET and some C#, building applications and services using ASP.NET, WPF, WCF and Silverlight, as well as occasional project-management gigs.

Also - living abroad (in Thailand), originally planned for a year, but now just over seven years! Doh!

Comments and Discussions