setSubtitle() public method

set the subtitle of the screen
public setSubtitle ( String sub ) : void
sub String
return void
コード例 #1
0
ファイル: TopWindow.xaml.cs プロジェクト: raouldc/OptiDev
        /// <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
            }
        }