Announcement

Collapse
No announcement yet.

ExpressCraft - UI Framework

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    geoffrey.mcgill I was looking at changing to use bootstrap css for the windows. There is a modal but im not sure how it would fit in with a dragable/Resizeable Window.
    Last edited by geoffrey.mcgill; 2017-07-05 @ 12:41 AM.

    Comment


    • #47
      Migrated ExpressCraft.Bootstrap to ESBootstrap - No Reference to ExpressCraft - only a few helper methods.

      Github Repository: https://github.com/samuelGrahame/ESBootstrap

      Comment


      • #48
        Updated ExpressCraft to use beta4* Previews are down*

        Comment


        • #49
          Hi Samuel,

          Your example code on github looks very promising!

          I tried to see the demo's from your links on github, but non of them are showing? (some show: 404 not found)

          for example: https://rawgit.com/samuelGrahame/Exp...w/rawprev.html
          Can you make the demos working again?

          Thanks, Guido

          Comment


          • #50
            Hey guidovanhils ,

            Okay,They should be up tomorrow, Because making it support bridge.net - beta4 v16 (I have finished that, just need to sync my changes).

            Comment


            • #51
              https://github.com/samuelGrahame/ExpressCraft
              https://github.com/samuelGrahame/ExpressCraftDemo

              Added Support for Mobile Phone UI - partial.

              new Nuget Version

              https://www.nuget.org/packages/ExpressCraft/0.0.4.1

              Comment


              • #52
                Preview:

                https://rawgit.com/samuelGrahame/ExpressCraftDemo/master/ExpressCraftDemo/bin/Debug/Bridge/preview.html

                Click image for larger version

Name:	Desktop View.png
Views:	1
Size:	27.5 KB
ID:	4636

                Click image for larger version

Name:	Hub with New en.png
Views:	1
Size:	37.4 KB
ID:	4637

                Click image for larger version

Name:	Ipad.png
Views:	1
Size:	11.4 KB
ID:	4638

                Click image for larger version

Name:	iphone with new en.png
Views:	1
Size:	15.9 KB
ID:	4639

                Click image for larger version

Name:	iphone.png
Views:	1
Size:	10.7 KB
ID:	4640

                Comment


                • #53
                  Great work !!

                  Comment


                  • #54
                    It works very good.
                    Maybe you could use more graphics/images to make the UI more attractive? people like a good-looking demo.

                    Comment


                    • #55
                      hahaha yeah i was thinking that, I will have to look for some nice free stock images.

                      Comment


                      • #56
                        Added Icons to Demo
                        Increase Performance for GridView
                        Fixed bugs with SearchEdit, TextInput, NumberInput, MemoInput.
                        Added More Methods to Layout Control.

                        Nuget Package Updated: https://www.nuget.org/packages/ExpressCraft/0.0.5

                        Click image for larger version

Name:	Preview.png
Views:	1
Size:	48.1 KB
ID:	4710

                        Comment


                        • #57
                          Added Find Panel to the GridView with Highlighted Results.

                          To hide and show the Find Panel - you can change via the right click menu. also via code

                          You can test this at: https://rawgit.com/samuelGrahame/Exp...e/preview.html
                          Click image for larger version  Name:	Preview.png Views:	1 Size:	56.5 KB ID:	4715

                          Comment


                          • #58
                            Looking good. You have been adding a lot of new functionality. Keep up the great work.

                            Comment


                            • #59
                              Updated to Bridge 16.5*

                              Added Graphics Class from WinForms: (Not fully supported but will slowly add more support)

                              Supported functions atm:

                              
                                      public void Clear(Color color);
                              
                                      public void FillRectangle(Brush brush, float x, float y, float width, float height);
                              
                                      public void FillRectangle(Brush brush, int x, int y, int width, int height);
                              
                                      public void FillRectangle(Brush brush, Rectangle rect);
                              
                                      public void FillRectangle(Brush brush, RectangleF rect);
                              
                                      public void FillEllipse(Brush brush, float x, float y, float width, float height);
                              
                                      public void FillEllipse(Brush brush, int x, int y, int width, int height);
                              
                                      public void FillEllipse(Brush brush, Rectangle rect);
                              
                                      public void FillEllipse(Brush brush, RectangleF rect);
                              
                                      public void DrawEllipse(Pen pen, float x, float y, float width, float height);
                              
                                      public void DrawEllipse(Pen pen, int x, int y, int width, int height);
                              
                                      public void DrawEllipse(Pen pen, Rectangle rect);
                              
                                      public void DrawEllipse(Pen pen, RectangleF rect);
                              
                                      public void DrawRectangle(Pen pen, float x, float y, float width, float height);
                              
                                      public void DrawRectangle(Pen pen, int x, int y, int width, int height);
                              
                                      public void DrawRectangle(Pen pen, Rectangle rect);
                              
                                      public void DrawRectangle(Pen pen, RectangleF rect);
                              
                                      public void DrawLine(Pen pen, float x1, float y1, float x2, float y2);
                              
                                      public void DrawLine(Pen pen, PointF pt1, PointF pt2);
                              
                                      public void DrawLine(Pen pen, int x1, int y1, int x2, int y2);
                              
                                      public void DrawLine(Pen pen, Point pt1, Point pt2);
                              
                                      public void DrawString(string s, Font font, Brush brush, PointF point);
                              
                                      public void DrawString(string s, Font font, Brush brush, float x, float y);
                              
                                      public void DrawBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
                              
                                      public void DrawBezier(Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4);
                              
                                      public void DrawBezier(Pen pen, Point pt1, Point pt2, Point pt3, Point pt4);
                              
                                      public void DrawBeziers(Pen pen, PointF[] points);
                              
                                      public void DrawBeziers(Pen pen, Point[] points);
                              
                                      public SizeF MeasureString(string text, Font font);
                              Click image for larger version  Name:	drawTest.png Views:	1 Size:	87.2 KB ID:	5005





                              Also Added - ExpressCraft Css file now is included in the source code at run time - using a base64 uri;

                              Also with the Graphics class - Pen/Brush - SolidBrush, Point,PointF, Size, SizeF, Rectangle and RetangleF have also been added - need to add operators...

                              Graphics Test Control

                              
                                      public class Test : CanvasControl
                                      {
                                          public override void OnPaint()
                                          {
                                              var g = CreateGraphics();
                                              var rnd = new Random();
                                              for (int i = 0; i < 100; i++)
                                              {
                                                  g.DrawLine(new Pen(Color.FromArgb(rnd.Next())), rnd.Next(10, 300), rnd.Next(10, 300), rnd.Next(10, 300), rnd.Next(10, 300));
                                              }
                                              g.DrawString("Hello World", new Font("Arial 10pt"), new SolidBrush(Color.Black), 50, 50);
                              
                                              g.DrawEllipse(new Pen(Color.Red, 2), 100, 100, 50, 50);
                              
                                              g.FillEllipse(new SolidBrush(Color.Green), 100, 200, 50, 50);
                              
                                              var size = g.MeasureString("Hello World", new Font("Arial 11pt"));
                              
                                              g.DrawString(size.ToString(), new Font("Arial 11pt"), new SolidBrush(Color.Black), 200, 50);
                              
                                              base.OnPaint();
                                          }
                                      }
                              Last edited by samuelgrahame; 2017-11-18 @ 09:43 AM.

                              Comment


                              • #60
                                Working on a new Library - https://github.com/samuelGrahame/ClassicForms

                                Very new.. now... - only have button and Panel - but will be working on it.
                                if you would like to help just msg me. using this thread as it is a re-design of what expresscraft is.

                                It is using Win Forms Designer in Visual Studio 2017

                                Click image for larger version

Name:	Untitled.png
Views:	1
Size:	7.3 KB
ID:	5157

                                Here is the same page without bootstrap 4 css added to the index page.
                                Click image for larger version

Name:	Untitled2.png
Views:	1
Size:	5.7 KB
ID:	5158

                                here is the design of the form in visual studio

                                Click image for larger version

Name:	Untitled3.png
Views:	1
Size:	15.0 KB
ID:	5159

                                I am using the tag field as the class for the object
                                Click image for larger version

Name:	Untitled4.png
Views:	1
Size:	12.7 KB
ID:	5160


                                Click image for larger version

Name:	Untitled5.png
Views:	1
Size:	4.8 KB
ID:	5161

                                you can just link your Form + Form.Designer to the Bridge Program so that you can do this
                                using System;
                                using System.Collections.Generic;
                                using System.Linq;
                                using System.Text;
                                using System.Threading.Tasks;
                                using Test;
                                
                                namespace App
                                {
                                    public class Class1
                                    {
                                        public static void Main()
                                        {
                                            var x = new Form1();
                                            x.Show();
                                        }
                                    }
                                }

                                Comment

                                Working...
                                X