1. quanlich's Avatar
    Hello,I want to design an app to track expenses. I have a problem with display all transactions in one day. I want to do something like this:
    May 25 $68.00
    --------------------------------------------------------------
    Food $25.00
    Gift $25.00
    Telephone $18.00

    May 24 $43.00
    --------------------------------------------------------------
    Food $20.00
    Hobbies $23.00

    The problem is that I can only display each transaction on its own date (ex. Food $25 May 25). I don't know how to group all transactions in the same date.Does anyone have suggestion?

    Thanks in advance.
    12-29-2013 08:47 AM
  2. DBDev's Avatar
    Try reading some about stackpanels, they might be what you are looking for
    12-29-2013 09:09 AM
  3. quanlich's Avatar
    Thank DBDev for replying.
    I think I didn't explain clearly enough.
    I have a class Transaction.cs which has properties (date, category, amount). I used ListBox (like griddata) to display all transactions in form of table.
    As I mentionned in the first post, I can only display a single transaction like:
    Food $20.00 May 24
    Hobbies $23.00 May 24

    So, I want to display all transactions in one date as I mentionned in the first post like this:

    May 24
    Food $20.00
    Hobbies $23.00

    Thanks.
    12-29-2013 09:49 AM
  4. Catholic Tech Geek's Avatar
    You could take advantage of the grouping capabilities of the LongListSelector control. The code for implementing grouping differs between Windows Phone 7 and Windows Phone 8. Either way, the process is basically the same: you have one big datastore and you first have to separate out everything into groups (choose a "primary key", in this case, the date), easily done by using LINQ (you need to make a "group" class though), and then you add the collection of groups as the ItemSource of the LongListSelector.
    quanlich likes this.
    01-02-2014 02:12 PM
  5. quanlich's Avatar
    Thanks a lot Catholic Tech Geek, that sounds like what I looked for.
    Thanks again.
    01-02-2014 08:38 PM
  6. DJoneda1's Avatar
    And a good example of this in action (although with images but the grouping is basically the same principle) is on MSDN at:
    PhotoHub - Windows Phone 8 XAML LongListSelector Grid Layout sample in C#, XAML for Visual Studio 2012
    quanlich likes this.
    01-22-2014 08:24 PM

Similar Threads

  1. No double tap to wake up in lumia 520
    By Jessy1098 in forum Nokia Lumia 520
    Replies: 8
    Last Post: 12-30-2013, 07:28 AM
  2. Gmail- HTML mails Problem while opening in browser
    By unshul in forum Nokia Lumia 720
    Replies: 3
    Last Post: 12-30-2013, 02:16 AM
  3. Hey DJ! updated with new voice commands; goes free to bring in the new year
    By WindowsCentral.com in forum Windows Central News Discussion
    Replies: 0
    Last Post: 12-29-2013, 08:40 AM
  4. The absolute worst review I've seen in years
    By 5150 Joker in forum Windows Phone 8
    Replies: 5
    Last Post: 12-29-2013, 08:19 AM
  5. Signal issues in my lumia 925
    By Zihad al amin in forum New to the Forums? Introduce Yourself Here!
    Replies: 2
    Last Post: 12-29-2013, 06:31 AM
LINK TO POST COPIED TO CLIPBOARD