The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Repeater / Button - Design

Last post 02-28-2010, 4:48 PM by eddyc. 1 replies.
Sort Posts: Previous Next
  •  02-24-2010, 3:48 AM 9565

    Repeater / Button - Design

    Hello,
    I've got a problem with repeating a button, each one with its own command, BUT the actions i want to do in these commands are related to the current UI.. like show/hide panels in that UI

    So i can't make another UI with a button and its appropriate command and properties. and repeat that UI
    because then i wouldn't be able to show/hide the panels on the main UI

    So the approach i'am using is:
    <Repeater Name="LCNames" Source="[Control.LC_Names]" >
        <Content>
            <me:EditButton Size="41,41">
                <Command>
                    <InvokeCommand Target="[Control.ReturnString]" str="[RepeatedItem!cor:String]" ResultTarget="[Active]"/>
                </Command>
            </me:EditButton>
        </Content>
    </Repeater>
    But the [RepeatedItem!cor:String] is not returning anything for the function
    And i know that is returning the strings when i use a Text element instead of the EditButton.

    If anyone knows what i'am doing wrong or have other solution for the repeater button problem
    please do get back to me, Thanks



    Xive.
  •  02-28-2010, 4:48 PM 9573 in reply to 9565

    Re: Repeater / Button - Design

    There's not really enough sample code to see what might be causing the problem -- maybe you could post a more detailed example?

    At a guess, however, your ResultTarget is targetting the wrong thing. If you replace the InvokeCommand with a simple static SET to the same target, does it then work as expected?

    Eddy
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems