コード例 #1
0
		public BigButtonPage()
		{
			var cmd = new Command(OnButtonClick);
			var image = "Resources/images/Border";
			if(Device.OS == TargetPlatform.iOS)
				image = "images/Border";
			if (Device.OS == TargetPlatform.Android)
				image = "Border";
			Content = new BigButton("TTTTouch me", image, cmd)
			{
				HorizontalOptions = LayoutOptions.Center,
				VerticalOptions = LayoutOptions.Center,
				WidthRequest = 120,
				HeightRequest = 120,
			};
		}
コード例 #2
0
        public BigButtonPage()
        {
            var cmd   = new Command(OnButtonClick);
            var image = "Resources/images/Border";

            if (Device.RuntimePlatform == Device.iOS)
            {
                image = "images/Border";
            }
            if (Device.RuntimePlatform == Device.Android)
            {
                image = "Border";
            }
            Content = new BigButton("TTTTouch me", image, cmd)
            {
                HorizontalOptions = LayoutOptions.Center,
                VerticalOptions   = LayoutOptions.Center,
                WidthRequest      = 120,
                HeightRequest     = 120,
            };
        }