c# - In WPF, what is the best way to create a calendar view similar to Outlook 2007? -


I am writing a WPF desktop application and there is a scene that should look like a calendar. I need to show only four weeks (fixed) Each week will have a list of items (possibly shown with a list view). I am debating between two approaches:

  1. Using layout controls - A grid control where each "cell" has a list view

  2. Using a list view + gridview and then customizing the style to look more like a calendar

In my opinion, easy to implement layout controls But it seems something dirty about it I essentially have a ListView containing each 28-will be hard coding. But again, it will be easy, it will be easy.

I'm considering ListView / GridView and will be more elegant, but I still need to create a list view for each cell and then I have to figure out how to control the style like this Keep that it looks like a calendar and looks like a low table.

Thoughts?

You can use a list box with the Uniform Grid. It will take care of building the base layout. With the slightest trigger in the current month to implement the change of style, if the present day is not present in the current month.

Again, each day as a part of your template, a list view or list box can be displayed, tasks / meetings / whatever.

The whole thing is tied up with the collection of items that represent the "day" and their content.

The listbox is usually a good bet for the base to control an item.

You should also see how the calendar control is created in WPF, it can help you give some suggestions.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -