c# - Dynamic add PanoramaItems based on data and/or layout type -


Creating a panorama page with content from some servers Each panoramaItem server shows a container object that contains the Container object data type and its Defines the layout. Suppose I have 2 or 3 types of data and each data type has several layouts, lists, grids or just some text block

Finally something looks like this:

  ------------------ | Panorama page 1 | ------------------ | | -------------------------------------------------- ----- | | | | | | | | -------------- -------------- -------------- -------- ------ | Panoramaitam | | PanoramaItem | | PanoramaItem | | PanoramaItem | | Data type 2 | Data type 1 | Datatype 10 | Datatype 4 | | Layout 1 | | Layout 2 | | Layout 1 | | Layout 4 | -------------- -------------- -------------- -------- ------  

Remember each startup that the server prefers to display.

All I'm seeing is examples or tutorials how to create some panorama or panorama pages with the objects defined in the same XML, the axis is not dynamic on the basis of some data and / or layout type .

Is it possible to separate each data / layout type into its own XML and instantize it on the given fly with your view modal?

Since I am quite new to Windows Phone platform I'm not sure if I take the right approach any help on this would be greatly appreciated ...

Yes things can be dynamically created.

Two thoughts The first idea is that whatever can be done in Xaml can be done in the code, so you can see that just through the XAML parser, the object from the valid C # class in the background Creating / example; Then you can Xaml the same breed

Second, do not hang on the page and navigation of most examples is motif. I worked on a major Win Phone 8 published project where we had a page with many hidden controls that would be visible and print the navigating on the page. This allows for a shared view model and all data that runs with it in your case to keep a list of a VM subdata which can be shared in your panorama.

I recommend that you start small work and create dynamic panaram without data to get the flow of work. Once this is happening, the actual data will have to be brought and tackled with problems that will arise.

Edit

View this in might be the ability to show the data needed for your dynamic position.


Comments