Mohit Deshpande
Mohit Deshpande

Reputation: 55227

MonthCalendar in WPF?

Is there a free class library that offers a MonthCalendar control for WPF? And is the MonthCalendar equal to if not better than the Winforms MonthCalendar.

Upvotes: 1

Views: 2234

Answers (2)

Brent
Brent

Reputation: 1773

Download the WPF Toolkit... it includes a Calendar, DatePicker, and DataGrid. Once you add the toolkit dll to your project, you can implement the calendar like so:

<Window x:Class="WPF_Playground.Window4"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit" >

    <Grid>
        <toolkit:Calendar/>
    </Grid>
</Window>

Upvotes: 0

Brian R. Bondy
Brian R. Bondy

Reputation: 347226

I think there is one included in VS 2010, but there is not one built in for sure in VS 2008.

You can use the WPF toolkit, it has a nice month calendar control that should fit your needs.

Upvotes: 3

Related Questions