locked
Expression Blend 1st tutorial (pcapozzi) - 2/26/2007 9:14 PM PST RRS feed

  • Question

  • By: pcapozzi
    I have been working thru the data binding tutorial and have reached an impasse.
    In steps 15-19 we hook up the MasterList to the data.

    but

    Following the instructions when I get to 18 and am told to 'select the New
    Data Template and Display Fields radio button' this option is grayed out.

    hard stop.

    Tried many iterations of the Explicit Data Context tab data wiring and am
    not able to stop the grayed out problem.

    Please help.

    Thanks,
    Tuesday, February 19, 2008 8:19 PM

Answers

  • By: Jen Rowe [MSFT]


    You don't need to bind the text box's datacontext. The data context should
    be picked up from its parent way up in the visual tree (as long as MainGrid
    has its data context bound to the original xml data source AND the
    MasterList has "IsSynchronizedWithCurrentItem set to true you should be
    okay). You only need to bind the actual Text property itself. Try the
    following:

    a. draw a text box within the detailsgrid and select it from within the
    structured timeline view
    b. using the property inspector, find the "Text" Property
    c. click the little dot to the right (property marker) of the text value
    input field and select "Databinding"
    d. this will bring up the "Create Data Binding" dialog.
    e. now select the "Explicit Data Context" Tab
    f. Expand Catalog, Products, Product Array and select "Description" (or
    whatever value you are wanting to show)
    g. Now click Finish on the Dialog to accept these values.

    Jen Rowe(MSFT), Expression Blend
    "Content is provided "AS IS" with no warranties and confers no rights.
    "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message
    news:16BFF625-53E4-4082-97BE-CA248F24DA7B@microsoft.com...
    > Thanks Jen,
    >
    > That got me past the MasterList but I am having trouble linking the
    > textboxes on the detaillist to the data on the master list. Trying to the
    > bind the text box DataContext to the MasterList's selectedItem is not
    > working
    > because the selectedItem is showing up as an [object] and I cannot drill
    > down past that.
    >
    > Thanks,
    >
    > "Jen Rowe [MS]" wrote:
    >
    >> Hello,
    >> Sorry about this issue as it is a bug on our part. Lingesh posted a
    >> response
    >> to this issue in early Februray. I have pasted it here:
    >>
    >> Hi,
    >> this was a bug in the tutorial. We have fixed it for future releases. The
    >> work around is:
    >>
    >> Do not create the masterlist as suggested in the tutorial. Instead of
    >> steps
    >> 15 to 19 do the following:
    >>
    >>
    >> From the data pane drag drop the "Product(array)" to the artboard. It
    >> will
    >> ask for what control you want. You can specify listbox. Then it will ask
    >> if
    >> you want to bind "ItemsSource" click ok here. And it will show you the
    >> dialog for data template. You can choose what ever things that you
    >> need(as
    >> explained in step 19).
    >>
    >>
    >>
    >> Once you finish this select the DeatailsGrid(This will be created in step
    >> 21) and data bind its DataContext to the MasterList's selectedItem.(Using
    >> the data binding dialog choose the element property tag)
    >>
    >>
    >>
    >> After that you should be able to follow the tutorial as such.
    >>
    >>
    >> Thanks!
    >> regards,
    >> Lingesh
    >>
    >> "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message
    >> news:155648D0-AD1F-4DB3-88DF-43E6BA321C1D@microsoft.com...
    >> >I have been working thru the data binding tutorial and have reached an
    >> >impasse.
    >> > In steps 15-19 we hook up the MasterList to the data.
    >> >
    >> > but
    >> >
    >> > Following the instructions when I get to 18 and am told to 'select the
    >> > New
    >> > Data Template and Display Fields radio button' this option is grayed
    >> > out.
    >> >
    >> > hard stop.
    >> >
    >> > Tried many iterations of the Explicit Data Context tab data wiring and
    >> > am
    >> > not able to stop the grayed out problem.
    >> >
    >> > Please help.
    >> >
    >> > Thanks,
    >> >
    >> >
    >>
    >>

    Wednesday, February 20, 2008 12:08 AM

All replies

  • By: Jen Rowe [MS]


    Hello,
    Sorry about this issue as it is a bug on our part. Lingesh posted a response
    to this issue in early Februray. I have pasted it here:

    Hi,
    this was a bug in the tutorial. We have fixed it for future releases. The
    work around is:

    Do not create the masterlist as suggested in the tutorial. Instead of steps
    15 to 19 do the following:


    From the data pane drag drop the "Product(array)" to the artboard. It will
    ask for what control you want. You can specify listbox. Then it will ask if
    you want to bind "ItemsSource" click ok here. And it will show you the
    dialog for data template. You can choose what ever things that you need(as
    explained in step 19).



    Once you finish this select the DeatailsGrid(This will be created in step
    21) and data bind its DataContext to the MasterList's selectedItem.(Using
    the data binding dialog choose the element property tag)



    After that you should be able to follow the tutorial as such.


    Thanks!
    regards,
    Lingesh

    "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message
    news:155648D0-AD1F-4DB3-88DF-43E6BA321C1D@microsoft.com...
    >I have been working thru the data binding tutorial and have reached an
    >impasse.
    > In steps 15-19 we hook up the MasterList to the data.
    >
    > but
    >
    > Following the instructions when I get to 18 and am told to 'select the
    > New
    > Data Template and Display Fields radio button' this option is grayed out.
    >
    > hard stop.
    >
    > Tried many iterations of the Explicit Data Context tab data wiring and am
    > not able to stop the grayed out problem.
    >
    > Please help.
    >
    > Thanks,
    >
    >
    Wednesday, February 20, 2008 12:08 AM
  • By: pcapozzi


    Thanks Jen,
    
    That got me past the MasterList but I am having trouble linking the 
    textboxes on the detaillist to the data on the master list.  Trying to the 
    bind the text box DataContext to the MasterList's selectedItem is not working 
    because the selectedItem  is showing up as an [object] and I cannot drill 
    down past that.
    
    Thanks,
    
    "Jen Rowe [MS]" wrote:
    
    > Hello,
    > Sorry about this issue as it is a bug on our part. Lingesh posted a response 
    > to this issue in early Februray. I have pasted it here:
    > 
    > Hi,
    > this was a bug in the tutorial. We have fixed it for future releases. The
    > work around is:
    > 
    > Do not create the masterlist as suggested in the tutorial. Instead of steps
    > 15 to 19 do the following:
    > 
    > 
    > From the data pane drag drop the "Product(array)" to the artboard. It will
    > ask for what control you want. You can specify listbox. Then it will ask if
    > you want to bind "ItemsSource" click ok here. And it will show you the
    > dialog for data template. You can choose what ever things that you need(as
    > explained in step 19).
    > 
    > 
    > 
    > Once you finish this select the DeatailsGrid(This will be created in step
    > 21) and data bind its DataContext to the MasterList's selectedItem.(Using
    > the data binding dialog choose the element property tag)
    > 
    > 
    > 
    > After that you should be able to follow the tutorial as such.
    > 
    > 
    > Thanks!
    > regards,
    > Lingesh
    > 
    > "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message 
    > news:155648D0-AD1F-4DB3-88DF-43E6BA321C1D@microsoft.com...
    > >I have been working thru the data binding tutorial and have reached an 
    > >impasse.
    > > In steps 15-19 we hook up the MasterList to the data.
    > >
    > > but
    > >
    > > Following the instructions when I get to 18  and am told to 'select the 
    > > New
    > > Data Template and Display Fields radio button' this option is grayed out.
    > >
    > > hard stop.
    > >
    > > Tried many iterations of the Explicit Data Context tab data wiring and am
    > > not able to stop the grayed out problem.
    > >
    > > Please help.
    > >
    > > Thanks,
    > >
    > > 
    > 
    > 
    Wednesday, February 20, 2008 12:08 AM
  • By: Jen Rowe [MSFT]


    You don't need to bind the text box's datacontext. The data context should
    be picked up from its parent way up in the visual tree (as long as MainGrid
    has its data context bound to the original xml data source AND the
    MasterList has "IsSynchronizedWithCurrentItem set to true you should be
    okay). You only need to bind the actual Text property itself. Try the
    following:

    a. draw a text box within the detailsgrid and select it from within the
    structured timeline view
    b. using the property inspector, find the "Text" Property
    c. click the little dot to the right (property marker) of the text value
    input field and select "Databinding"
    d. this will bring up the "Create Data Binding" dialog.
    e. now select the "Explicit Data Context" Tab
    f. Expand Catalog, Products, Product Array and select "Description" (or
    whatever value you are wanting to show)
    g. Now click Finish on the Dialog to accept these values.

    Jen Rowe(MSFT), Expression Blend
    "Content is provided "AS IS" with no warranties and confers no rights.
    "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message
    news:16BFF625-53E4-4082-97BE-CA248F24DA7B@microsoft.com...
    > Thanks Jen,
    >
    > That got me past the MasterList but I am having trouble linking the
    > textboxes on the detaillist to the data on the master list. Trying to the
    > bind the text box DataContext to the MasterList's selectedItem is not
    > working
    > because the selectedItem is showing up as an [object] and I cannot drill
    > down past that.
    >
    > Thanks,
    >
    > "Jen Rowe [MS]" wrote:
    >
    >> Hello,
    >> Sorry about this issue as it is a bug on our part. Lingesh posted a
    >> response
    >> to this issue in early Februray. I have pasted it here:
    >>
    >> Hi,
    >> this was a bug in the tutorial. We have fixed it for future releases. The
    >> work around is:
    >>
    >> Do not create the masterlist as suggested in the tutorial. Instead of
    >> steps
    >> 15 to 19 do the following:
    >>
    >>
    >> From the data pane drag drop the "Product(array)" to the artboard. It
    >> will
    >> ask for what control you want. You can specify listbox. Then it will ask
    >> if
    >> you want to bind "ItemsSource" click ok here. And it will show you the
    >> dialog for data template. You can choose what ever things that you
    >> need(as
    >> explained in step 19).
    >>
    >>
    >>
    >> Once you finish this select the DeatailsGrid(This will be created in step
    >> 21) and data bind its DataContext to the MasterList's selectedItem.(Using
    >> the data binding dialog choose the element property tag)
    >>
    >>
    >>
    >> After that you should be able to follow the tutorial as such.
    >>
    >>
    >> Thanks!
    >> regards,
    >> Lingesh
    >>
    >> "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message
    >> news:155648D0-AD1F-4DB3-88DF-43E6BA321C1D@microsoft.com...
    >> >I have been working thru the data binding tutorial and have reached an
    >> >impasse.
    >> > In steps 15-19 we hook up the MasterList to the data.
    >> >
    >> > but
    >> >
    >> > Following the instructions when I get to 18 and am told to 'select the
    >> > New
    >> > Data Template and Display Fields radio button' this option is grayed
    >> > out.
    >> >
    >> > hard stop.
    >> >
    >> > Tried many iterations of the Explicit Data Context tab data wiring and
    >> > am
    >> > not able to stop the grayed out problem.
    >> >
    >> > Please help.
    >> >
    >> > Thanks,
    >> >
    >> >
    >>
    >>

    Wednesday, February 20, 2008 12:08 AM
  • By: pcapozzi


    Thank you for your timely help on this.  Your notes did the trick
    
    BTW I have over thirty years experience buidling and working with software 
    and Expression Blend is one of the most impressive pieces of software I have 
    ever worked with
    
    PatC 
    
    "Jen Rowe [MSFT]" wrote:
    
    > You don't need to bind the text box's datacontext. The data context should 
    > be picked up from its parent way up in the visual tree (as long as MainGrid 
    > has its data context bound to the original xml data source AND the 
    > MasterList has "IsSynchronizedWithCurrentItem set to true you should be 
    > okay). You only need to bind the actual Text property itself. Try the 
    > following:
    > 
    > a. draw a text box within the detailsgrid and select it from within the 
    > structured timeline view
    > b. using the property inspector, find the "Text" Property
    > c. click the little dot to the right (property marker) of the text value 
    > input field and select "Databinding"
    > d. this will bring up the "Create Data Binding" dialog.
    > e. now select the "Explicit Data Context" Tab
    > f. Expand Catalog, Products, Product Array and select "Description" (or 
    > whatever value you are wanting to show)
    > g. Now click Finish on the Dialog to accept these values.
    > 
    > Jen Rowe(MSFT), Expression Blend
    > "Content is provided "AS IS" with no warranties and confers no rights.
    > "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message 
    > news:16BFF625-53E4-4082-97BE-CA248F24DA7B@microsoft.com...
    > > Thanks Jen,
    > >
    > > That got me past the MasterList but I am having trouble linking the
    > > textboxes on the detaillist to the data on the master list.  Trying to the
    > > bind the text box DataContext to the MasterList's selectedItem is not 
    > > working
    > > because the selectedItem  is showing up as an [object] and I cannot drill
    > > down past that.
    > >
    > > Thanks,
    > >
    > > "Jen Rowe [MS]" wrote:
    > >
    > >> Hello,
    > >> Sorry about this issue as it is a bug on our part. Lingesh posted a 
    > >> response
    > >> to this issue in early Februray. I have pasted it here:
    > >>
    > >> Hi,
    > >> this was a bug in the tutorial. We have fixed it for future releases. The
    > >> work around is:
    > >>
    > >> Do not create the masterlist as suggested in the tutorial. Instead of 
    > >> steps
    > >> 15 to 19 do the following:
    > >>
    > >>
    > >> From the data pane drag drop the "Product(array)" to the artboard. It 
    > >> will
    > >> ask for what control you want. You can specify listbox. Then it will ask 
    > >> if
    > >> you want to bind "ItemsSource" click ok here. And it will show you the
    > >> dialog for data template. You can choose what ever things that you 
    > >> need(as
    > >> explained in step 19).
    > >>
    > >>
    > >>
    > >> Once you finish this select the DeatailsGrid(This will be created in step
    > >> 21) and data bind its DataContext to the MasterList's selectedItem.(Using
    > >> the data binding dialog choose the element property tag)
    > >>
    > >>
    > >>
    > >> After that you should be able to follow the tutorial as such.
    > >>
    > >>
    > >> Thanks!
    > >> regards,
    > >> Lingesh
    > >>
    > >> "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message
    > >> news:155648D0-AD1F-4DB3-88DF-43E6BA321C1D@microsoft.com...
    > >> >I have been working thru the data binding tutorial and have reached an
    > >> >impasse.
    > >> > In steps 15-19 we hook up the MasterList to the data.
    > >> >
    > >> > but
    > >> >
    > >> > Following the instructions when I get to 18  and am told to 'select the
    > >> > New
    > >> > Data Template and Display Fields radio button' this option is grayed 
    > >> > out.
    > >> >
    > >> > hard stop.
    > >> >
    > >> > Tried many iterations of the Explicit Data Context tab data wiring and 
    > >> > am
    > >> > not able to stop the grayed out problem.
    > >> >
    > >> > Please help.
    > >> >
    > >> > Thanks,
    > >> >
    > >> >
    > >>
    > >> 
    > 
    > 
    > 
    Wednesday, February 20, 2008 12:09 AM
  • By: Balakrishnan


    o.O Welcome to the fan club!
    
    
    Cheers
    Balakrishnan
    
    "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message 
    news:046A6655-E425-4B28-81FC-05919997EDD7@microsoft.com...
    > Thank you for your timely help on this.  Your notes did the trick
    >
    > BTW I have over thirty years experience buidling and working with software
    > and Expression Blend is one of the most impressive pieces of software I 
    > have
    > ever worked with
    >
    > PatC
    >
    > "Jen Rowe [MSFT]" wrote:
    >
    >> You don't need to bind the text box's datacontext. The data context 
    >> should
    >> be picked up from its parent way up in the visual tree (as long as 
    >> MainGrid
    >> has its data context bound to the original xml data source AND the
    >> MasterList has "IsSynchronizedWithCurrentItem set to true you should be
    >> okay). You only need to bind the actual Text property itself. Try the
    >> following:
    >>
    >> a. draw a text box within the detailsgrid and select it from within the
    >> structured timeline view
    >> b. using the property inspector, find the "Text" Property
    >> c. click the little dot to the right (property marker) of the text value
    >> input field and select "Databinding"
    >> d. this will bring up the "Create Data Binding" dialog.
    >> e. now select the "Explicit Data Context" Tab
    >> f. Expand Catalog, Products, Product Array and select "Description" (or
    >> whatever value you are wanting to show)
    >> g. Now click Finish on the Dialog to accept these values.
    >>
    >> Jen Rowe(MSFT), Expression Blend
    >> "Content is provided "AS IS" with no warranties and confers no rights.
    >> "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message
    >> news:16BFF625-53E4-4082-97BE-CA248F24DA7B@microsoft.com...
    >> > Thanks Jen,
    >> >
    >> > That got me past the MasterList but I am having trouble linking the
    >> > textboxes on the detaillist to the data on the master list.  Trying to 
    >> > the
    >> > bind the text box DataContext to the MasterList's selectedItem is not
    >> > working
    >> > because the selectedItem  is showing up as an [object] and I cannot 
    >> > drill
    >> > down past that.
    >> >
    >> > Thanks,
    >> >
    >> > "Jen Rowe [MS]" wrote:
    >> >
    >> >> Hello,
    >> >> Sorry about this issue as it is a bug on our part. Lingesh posted a
    >> >> response
    >> >> to this issue in early Februray. I have pasted it here:
    >> >>
    >> >> Hi,
    >> >> this was a bug in the tutorial. We have fixed it for future releases. 
    >> >> The
    >> >> work around is:
    >> >>
    >> >> Do not create the masterlist as suggested in the tutorial. Instead of
    >> >> steps
    >> >> 15 to 19 do the following:
    >> >>
    >> >>
    >> >> From the data pane drag drop the "Product(array)" to the artboard. It
    >> >> will
    >> >> ask for what control you want. You can specify listbox. Then it will 
    >> >> ask
    >> >> if
    >> >> you want to bind "ItemsSource" click ok here. And it will show you the
    >> >> dialog for data template. You can choose what ever things that you
    >> >> need(as
    >> >> explained in step 19).
    >> >>
    >> >>
    >> >>
    >> >> Once you finish this select the DeatailsGrid(This will be created in 
    >> >> step
    >> >> 21) and data bind its DataContext to the MasterList's 
    >> >> selectedItem.(Using
    >> >> the data binding dialog choose the element property tag)
    >> >>
    >> >>
    >> >>
    >> >> After that you should be able to follow the tutorial as such.
    >> >>
    >> >>
    >> >> Thanks!
    >> >> regards,
    >> >> Lingesh
    >> >>
    >> >> "pcapozzi" <pcapozzi@discussions.microsoft.com> wrote in message
    >> >> news:155648D0-AD1F-4DB3-88DF-43E6BA321C1D@microsoft.com...
    >> >> >I have been working thru the data binding tutorial and have reached 
    >> >> >an
    >> >> >impasse.
    >> >> > In steps 15-19 we hook up the MasterList to the data.
    >> >> >
    >> >> > but
    >> >> >
    >> >> > Following the instructions when I get to 18  and am told to 'select 
    >> >> > the
    >> >> > New
    >> >> > Data Template and Display Fields radio button' this option is grayed
    >> >> > out.
    >> >> >
    >> >> > hard stop.
    >> >> >
    >> >> > Tried many iterations of the Explicit Data Context tab data wiring 
    >> >> > and
    >> >> > am
    >> >> > not able to stop the grayed out problem.
    >> >> >
    >> >> > Please help.
    >> >> >
    >> >> > Thanks,
    >> >> >
    >> >> >
    >> >>
    >> >>
    >>
    >>
    >> 
    
    Wednesday, February 20, 2008 12:10 AM