I've ran into a problem with the Menu flyout. With these lines
<MenuFlyoutItem Text="Item 4" /> <MenuFlyoutSubItem Text="Item 5"> <MenuFlyoutItem Text="Item 6" /> <MenuFlyoutItem Text="Item 7" /> For these lines intellisense is saying "Cannot add content to an object of type "MenuFlyoutSubitem"
The design view is unable to display anything, however, the program actually works fine just like in the video, the flyout works as intended.
Does anyone know what could be wrong? The full code for the Button and flyout is below. Thanks.
var selectedDates = sender.SelectedDates.Select(p => p.Date.Month.ToString() + "/" + p.Date.Date.ToString()).ToArray();
The error says "The type 'IBuffer' is defined in an assembly that is not reference. You must add a reference to assembly 'Windows. Version =255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'.
I don't know what to do. I can't find help online other than one suggestion to reinstall VS. Does anybody know what to do?
Thanks in advance.
I've fixed it. maybe it was something to do with the way VS was install or updated, but I went to Add/Remove programs and clicked on my Visual Studio install > Modify > Repair
Saying The type 'IBuffer' is defined in an assembly that is not reference. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'.
Does anybody know what to do?
I'm currently looking up solutions and will post back if I find one.
I struggled with the stack panel for a while. I was thinking that stack panels cannot overlap, but I was wrong. Once I watched the first part of the solution and played around with the stack panel example I realised that it will size itself to whats inside the stack panel, then the next panel can;t overlap it.