コード例 #1
0
		public NewPage ()
		{
			img1 = new CGImageBug.Image ("longomatch_dark_bg_png").Clone ();
			img2 = new CGImageBug.Image ("longomatch_dark_bg_png").Clone ();
			img3 = new CGImageBug.Image ("longomatch_dark_bg_png").Clone ();

			Button b = new Button {
				VerticalOptions = LayoutOptions.FillAndExpand,
				HorizontalOptions = LayoutOptions.FillAndExpand,
				Text = "Press me several times to reproduce the bug",
			};
			StackLayout layout = new StackLayout {
				VerticalOptions = LayoutOptions.FillAndExpand,
				HorizontalOptions = LayoutOptions.FillAndExpand,
				Children = { b },
			};

			Content = layout;
			b.Clicked += B_Clicked;
		}
コード例 #2
0
ファイル: NewPage.cs プロジェクト: fluendo/cgimagebug
        public NewPage()
        {
            img1 = new CGImageBug.Image ("longomatch_dark_bg_png").Clone ();
            img2 = new CGImageBug.Image ("longomatch_dark_bg_png").Clone ();
            img3 = new CGImageBug.Image ("longomatch_dark_bg_png").Clone ();

            Button b = new Button {
                VerticalOptions = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                Text = "Press me several times to reproduce the bug",
            };
            StackLayout layout = new StackLayout {
                VerticalOptions = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                Children = { b },
            };

            Content = layout;
            b.Clicked += B_Clicked;
        }