コード例 #1
0
ファイル: ImageLayer.cs プロジェクト: turbo25mike/myBook
        public ImageLayer(Guid id)
        {
            ID           = id;
            DrawingImage = new ImageWithTouch
            {
                VerticalOptions   = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                BackgroundColor   = Color.Transparent
            };

            AbsoluteLayout.SetLayoutFlags(this, AbsoluteLayoutFlags.All);
            AbsoluteLayout.SetLayoutBounds(this, new Rectangle(0f, 0f, 1f, 1f));

            Padding      = 5;
            HasShadow    = false;
            OutlineColor = Color.Black;
            Content      = DrawingImage;
        }
コード例 #2
0
ファイル: MainPage.cs プロジェクト: rraallvv/Drawit
        private Frame BuildDrawingFrame()
        {
            DrawingImage = new ImageWithTouch
            {
                VerticalOptions   = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                BackgroundColor   = Color.White,
                CurrentLineColor  = Color.Black
            };

            DrawingImage.SetBinding(ImageWithTouch.CurrentLineColorProperty, "CurrentLineColor");

            var palleteFrame = new Frame
            {
                BackgroundColor = Color.White,
                Padding         = 5,
                HasShadow       = false,
                OutlineColor    = Color.Black,
                Content         = DrawingImage
            };

            return(palleteFrame);
        }
コード例 #3
0
ファイル: MainPage.cs プロジェクト: EssMarkus/Drawit
        private Frame BuildDrawingFrame()
        {
            DrawingImage = new ImageWithTouch
            {
                VerticalOptions = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand,
                BackgroundColor = Color.White,
                CurrentLineColor = Color.Black
            };

            DrawingImage.SetBinding(ImageWithTouch.CurrentLineColorProperty, "CurrentLineColor");

            var palleteFrame = new Frame
            {
                BackgroundColor = Color.White,
                Padding = 5,
                HasShadow = false,
                OutlineColor = Color.Black,
                Content = DrawingImage
            };

            return palleteFrame;
        }