setContent() публичный Метод

Set the content part of the grid
public setContent ( UIElement control ) : void
control UIElement Sets the inner child contents of the page
Результат void
Пример #1
0
        /// <summary>
        /// push the given screen into the screen stack
        /// </summary>
        public void pushScreenOnStack(TopLevelPage nextScreen, String[] buttons, Color colour, UserControl content,
            String Subtitle)
        {
            nextScreen.setButtons(buttons);
            nextScreen.setTitleColour(colour);
            nextScreen.setContent(content);
            nextScreen.setSubtitle(Subtitle);
            popAll();
            pushScreen(nextScreen);

            try
            {
                (content as Animatiable).AnimateIn();
            }
            catch (NullReferenceException)
            {
                //Do nothing with this
            }
        }