Calendar app Flipview controls - xaml

I'm building a Windows 8 app and have come to a point where I don't understand how to solve my problem. (I'm new to C# development in general, so some things are more foreign to me not counting the new WIN-RT paradigms)
I've created a XAML file that displays 1 week (Sunday - Saturday) and populates each day column with the date of the month for that day (20-27 for ex.) for right now, it just makes a new Calendar object and uses the current date.
Here's my problem:
I'd like to implement a flipview to change from week to week, forward and backwards in time (this is very similar to the functionality in the Windows 8 Calendar app)
I do not know how to move from one week to another, because most demos online use image file resources. I want to move to the same XAML file I have, with just differently populated number fields, etc.
Thank you for your time!

Since FlipView is an ItemsControl - you can use the same method you would use when populating lists - use an ItemsSource to bind to a collection of weeks and specify an ItemTemplate/DataTemplate that will display the week view.
Ultimately you might hit some issues with the fact that a calendar should not really be a list with a beginning and an end. Perhaps you could implement some pseudo-virtualization hack, but ultimately it would probably be better for you to implement your own interaction logic.

Related

Prevent external event drop on month view in scheduler

Here's a problem that's easy to see in the standard demo for fullcalendar-scheduler showing external event drag-n-drop here:
https://fullcalendar.io/js/fullcalendar-scheduler-1.6.2/demos/external-dragging.html
Placing an event properly onto the calendar requires grabbing an event from the far left and dropping it onto the correct room and time. However, the rooms are not displayed in either the week or month views.
The problem is that you can still drag an event onto the calendar in week and month view, but there's no way to select the room in those views so you're just creating errors. Try this. Go into Month view, drag an event over to the calendar and it appears where you dropped it. Now go back to the Day or 3 Day views and the event you just dropped is not visible since it's not associated with a valid room.
So, the question is, how can I disable drag/drop based on the view?
I tried using dropAccept with a function (something like if view=month return false), but dropAccept doesn't seem to know the current view.
I'm not positive, but I think both drop and eventReceive are called after it's too late and the event is already on the calendar.
By doing it on those views, you're not creating an error as such, you're just adding an event which doesn't have a resource associated with it. Therefore it won't show up in a resource-aware view. Remember that scheduler is just an add-on to the main fullCalendar product, so there are views in existence (including month and week) which are part of the main product, and thus are not resource-aware, because the resource concept doesn't exist in that product.
You can make the week view resource-aware by following these instructions: https://fullcalendar.io/docs/vertical_resource_view/getting_started/, but there's nothing you can do about the month view (simply not enough space in the view to make the GUI workable).
Having said that, you can use the getView https://fullcalendar.io/docs/views/getView/ method anytime to ask the calendar what the current view is, and use that info to decide whether to prevent them from dragging onto that view, or you could even pop up some extra UI of your own to ask them to choose a resource, and then add the resource manually to the event data before adding it to the calendar.
Use custom view config options in fullcalendar settings:
I.e. views.week.droppable = false

Sharepoint Calendar Color Coding

I have used this tutorial to color the events in the calendar based on two scenarios (internal & external): Color-Code Events on a SharePoint Calendar
The problem occured in the calendar webpart whereas I cant see all the events that are filled in the events.
Any idea to fix the webpart view..
I've used this same tutorial with much success.
You don't provide too much detail in your question, but as a starting point I would double check this first:
Make sure you have "Yes" selected under "Require that this column contains information"
Double check that any existing items in the calendar list have the "Category" column filled in - you can do this easily from the data sheet view (as they show in the tutorial) or from Excel or Access. If you had a lot of old entries it would be an easy thing to miss.
If the above doesn't help. Perhaps you can share some more detail of the setup or screen shots so we can figure out what you're missing :-)

visualize 2-dimensional array visual basic

I started making a very simple application where a list of names is shown in a checked-listbox.
Now I would like to add a date as a second column value. This means i have two use a two-dimensional array.
What containers could be suitable to visualize a 2 dim-array on a form?
I was thinking as an alternative I could keep it one dimensional and use a delimiter. Would there then be a method to format this date on the extreme right side of a listbox? I guess I would have to extract the date part, but I don't see how i could position it in a listbox.
I am working with VS2010 and using a windows forms project. I have no experience in VB (but some in c++), and no experience with GUI's at all.
Thanks in advance
Either the ListView in details/report mode or the DataGrid would be good. Personally I prefer the ListView when possible.

Need to set Tapku Calendar to only have certain dates selectable?

I'm using the Tapku Library (http://developinginthedark.com/posts/iphone-tapku-calendar-markers) to implement a Monthly Calendar View for my application, but the thing is that I only want certain days in the Calendar View to be selectable, based on an array of NSDates that I have.
I suppose I could handle this in didSelectDate, but I'm hoping that there is a easier way to go about this. Any advice?
Actually, if what you want is for only certain days to be selectable, then using didSelectDate is at first kind of pointless, because that day was already selected.
What you actually need, according to your description of the problem, is for only certain "day squares" respond to touch input , AND, somehow convey to the user that a certain "day square" is disabled or unselectable, by giving the square a disabled look.
The problem is that Tapku Calendar doesn't allow you to do that, unless you go about and adapt the source code to your liking.
So, going back to didSelectDate, as it seems it's your only choice of handling user selection/interaction right now... the user is going to be able to select dates that you ideally didn't want to be selectable, so you should manage that appropriately to your situation.

Best way to select from a list - aren't the two listboxes getting a little old?

How many times have we seen this type of selector:
List Box Selector http://geekswithblogs.net/images/geekswithblogs_net/dotNETvinz/MoveItemsListBox.jpg
I was just about to start creating this in a WinForms app, when I thought that others may have some ideas for doing this better. We need it to sort - so the right hand list will need up/down buttons. But this seems so old school. I love devexpress components, and was thinking of asking them if they would consider adding a component that handles this functionality with a slick UI.
I am thinking that a graphical representation of the objects, and a graphical representation of the listboxes - that would be a more intuitive way to move items around.
Has anyone seen an open source project like this?
If a CheckListBox won't suffice (and it usually will), then the "modern" approach would be to use a ListView or similar component with a "Transfer" column. Render the button inline in that column, one for each row, so that it only takes one click to move an item from one to the other.
You see this everywhere in Vista, usually with hyperlinks as opposed to buttons. Instead of clicking on an item and then choosing an action, you click the action at the item level.
I wouldn't go overboard with slickness as it can impair functionality, but the dual-listbox screen is definitely old-school.
Also, if there's a very large amount of data to manage, it helps to provide a progressive search at the bottom of one or both lists.
I have done this type of selection using (essentially) a single CheckListBox that displays each item as an image. Part of the image looks like a LED, which is on (bright) if the item is selected or off (dark) if it is not selected.
This works well if you have a reasonable amount of data to select from, and also works well in a multi-column format if you can predict that the options will have reasonably similar lengths.
Allow users to drag items in/out of list 2, and also drag to reorder in list2.
(All items dragged out of list2, and dropped anywhere outside the list, get put back into list 1, in their correct place in the list by alphabetical or natural order.)
You can merge the two list boxes into one with the help of groups (LVGF_GROUPID flag): one group for selected and one for not selected.
You can also implement group membership changes with drag-drop between them. This way single drag-drop can move an item into the other group at the appropriate position, saving most/all of the other buttons.
Additionaly the bottom of each group can have one pseudo item with help text (i.e. "Drag items here to...") that is visible only when relevant.