Part 10: Overview of the Databound App and Pivot App Project Templates

Sign in to queue

The Discussion

  • User profile image
    windowsphon​e8

    Source Code: https://aka.ms/absbeginnerdevwp8

  • User profile image
    AloofC

    Nice, thanks.

    The templates include MainViewModelSampleData.xaml which is referenced as DesignData in MainPage.xaml. Is the only purpose of it is to show some data during development? Or is there some other real world scenario where DesignData is useful?

  • User profile image
    Clint
    @AloofC: showing data during development is highly powerful. This way you know your stuff is properly bound and covers any layout edge cases
  • User profile image
    AloofC

    Thanks Clint. I see your point.

  • User profile image
    Ramakrishna Ganesh

    Hi,

    Could you also please demonstrate, how can I bound data from a local database and how can I change data at run time. I mean, what all ways I can store some data locally on phone and use that data to bound to the LongListSelector and how can I update that data.

    Thanks and regards
    Ganeshh NR
    nr.ganesh@yahoo.com

  • User profile image
    Clint

    @Ramakrishna Ganesh: that is a bit more advanced than our series.  Check out some stuff with SQLite.

    Isolated storage and a json or xml file may do what you need as well.

     - clint

  • User profile image
    Ahmed

    awesome, thanks a lot!

  • User profile image
    webman77

    Can anyone show example of using a Web Service to load your data in your application or do I need to convert to a WCF instaed of a Web Service. I am trying to bind my Grid to the output of a Web service request.

  • User profile image
    Clint

    @webman77: Add the service reference, do your call, and put the result into an observable collection that is bound to the grid doesn't work?

    In the sample with Flickr (Around Me) we call Flickr's web service and parse their JSON results.  https://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners/Part-26-Retrieving-a-Photo-from-Flickrs-API

  • User profile image
    kanozuki

    Very useful. Thanks a lot!

  • User profile image
    Kristian

    Hi. First of all thanks for yet another fantastic and very informative training series!
    I am trying to build a "dummy app" just to try out some ideas and try to get my hands dirty in the code as you advise us to do, but I am having great difficulty creating my dummy data the way it is done in the template (to use during design). Could you please elaborate on how to create a design dummy data xaml file?

    Best regards
    Kristian

  • User profile image
    Clint
  • User profile image
    Kristian

    Thank you Clint!!
    Spot on :-)

  • User profile image
    goaty1992

    Hi and thanks for your useful lesson.

    I'm a  beginner and I still find something unclear in this template : Where is the starting point of this app ? (I mean the method that starts the program like what "Program.Main" does in a C# console app).

     

     

  • User profile image
    BobTabor

    @goaty1992: I'm pretty sure I talk about this at some point ... I'm not sure if it was a previous lesson or a future lesson (may want to scan through the text of each lesson) but the App.xaml (and the App.xaml.cs) is the starting point.  Use those terms as a search through the text on each of the lesson pages.  Good luck!!!

  • User profile image
    amit12x

    sir in 10 th lec there is folder sampldata in which .xaml file .. how can i add that file .. 
    when i try to copy paste from given sorce code , then it shows error "invalid markup"

  • User profile image
    Mar182

    I can not connect with the Internet from the Emulator! Using Windows Vista Home and Windows Phone 7.1

    Thanks

  • User profile image
    Gmycin

    Thanks Bob for the great tutorials. Is there a way for bypassing the longlistselector view and go straight to view detail page? or Change the longlistselector view to appear like view detail page, that is scroll side to side instead of up and down?

    Thanks again for the tutorials

  • User profile image
    sparsh

    Thanks.

  • User profile image
    Torsten

    I followed this far and I am surprised how similiar this is to WPF. In fact, so far any new WPF developer could also have a look at this tutorials to gain understanding about data binding basics, XAML, layout and so on.

    Nice!

  • User profile image
    Ruben

    Sir, i am amazed with this great video series for beginners

    got a problem too..

    how can i make a scrollable textbox

    i have tried this

    <ScrollViewer Height="100">
    <TextBox x:Name="txtBody"
    Width="446"
    TextWrapping="Wrap"
    AcceptsReturn="True"
    />
    </ScrollViewer>


    as i proceed downward, i am unable to see my ppointer and what i typed too

Add Your 2 Cents