Wednesday, 15 February 2012

c# - adding DataItems from one page to another in Windows Store Apps? -


I am creating a Windows Store app in VS2012 c # / xaml using the WindowsStore GridApp template. And I'm using group and item pages that are for this template.

I am displaying a list of rooms in the group page - Data for this is RoomObjects

  public class RoomsObject: LivingDataCommon {public RoomsObject (): Base (string. {} Public Rooms: OBJAG (String ID, String Title): Base (ID, Title) {} / Adding Actions to a Cell Collection, It will be used for personalized collection of room pages & Lt; ActorsObject & gt; _actors = new observational collection & lt; Actors object & gt; (); Public Supervision Collection & lt; ActorObject & gt; Actor {Come back. In the item page, I am displaying a list of actors who are in every room - Datasheet is for ActorsObjects  
  Public category ActorsObject: LivingDataCommon {Public Actorsbybet (): Base (string.opti, String.Epi) {} Public Actors Object (String ID, String Title, Boolean Homepage, String Function, Roomobaccame Room, Double Vertical Value, Actors Type Type, AllActors Elektors): Base (ID, title) {This._function = function; This._room = rooms; This._currentValue = currentValue; This._type = type; This._homepage = homepage; This._all = Elechers; } // set home page appearance private boolean_homepage = false; Public Stable Boolean Homepage = False; // Set the value of an actor private double _currentValue; Public Double Convert Value {get.ccurrentValue; } Set {this.SetProperty (ref. CcurrentValue, value); }} // set and function code get private string _function = string. Empty; Go to {get} the public string function. _ Function; } Set {this.SetProperty (this ref._function, value); }} // Private rooms for suitability in the roomsObact _room; Public RoomsObject Room {Come back. This._room; } Set {this.SetProperty (ref._room, value); }} Type Private Actors Type; Type of public actors type {get {return this._type; } Set {this.SetProperty (ref._type, value); }} Private AllActors _all; Get All Public AllActors {This return._all; } Set {this.SetProperty (this ref._all, value); }}}   

When I select an actor in the item page my app appears and allow me to display that actor on Home.xaml on my pinch the wanted.

I'm assuming that I should make an empty obscure collection, add selected items for it, and then click on that collection home. Use XML as a data source, but I am new to C #, I can not work on it ..

Please do have any suggestions, codes or some different ways to do this?

hmm .. to give you just some input, I might have a "global" static class for this Which you can get from your entire app (public static class pendectors). Within this class you have your stationary supervision qualification.

No comments:

Post a Comment