MonoMobile.Views.Theme.CreateTheme C# (CSharp) Method

CreateTheme() public static method

public static CreateTheme ( ) : Theme
return Theme
		public static Theme CreateTheme()
		{
			var newTheme = new Theme();
			return newTheme;
		}

Same methods

Theme::CreateTheme ( Theme theme ) : Theme
Theme::CreateTheme ( Type themeType ) : Theme

Usage Example

Exemplo n.º 1
0
        private static DialogViewController CreateDialogViewController(object view, bool isModal, bool pushing)
        {
            Theme theme = null;

            if (CurrentDialogViewController != null)
            {
                theme = CurrentDialogViewController.Theme;
                theme = Theme.CreateTheme(theme);
                theme.TableViewStyle = UITableViewStyle.Grouped;
            }

            string title      = null;
            var    hasCaption = view as ICaption;

            if (hasCaption != null)
            {
                title = hasCaption.Caption;
            }

            if (string.IsNullOrEmpty(title))
            {
                title = MonoMobileApplication.Title;
            }

            var dvc = new DialogViewController(title, view, theme, pushing)
            {
                Autorotate = true, IsModal = isModal
            };

            return(dvc);
        }
All Usage Examples Of MonoMobile.Views.Theme::CreateTheme