Hey all,
I'm not sure if this is possible to do. Basically what I want is for my
Listbox item to expand to show additional controls when a button on the
listbox item is clicked. Think like an edit mode.

When I edit the DataTemplate in Blend it shows the Basic vsm state but no
option to add more states here. I manually put in some states into the xaml
which Blend then shows and allows me to edit. Now how do I go about calling
the state with VisualStateManager?

If I click the button I can get the button that I clicked, grab the parent
(which is a Grid) but it doesn't seem to be the right grid. maybe I have to
go up a couple of levels?

private void btnEdit_Click(object sender, RoutedEventArgs e) {
            VisualStateManager.GoToState(((Button) sender).Parent,
"EditMode", true);
        }

any ideas? Might have to do this in code rather than vsm.

cheers,
Stephen
--------------------------------------------------------------------------------
Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists

Reply via email to