예제 #1
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            // configure container
            IUnityContainer container = new UnityContainer();

            UnityForms.RegisterTypes(container);
            UnityPlatform.RegisterTypes(container);

            var formsApp = container.Resolve <App>();

            LoadApplication(formsApp);

            return(base.FinishedLaunching(app, options));
        }
예제 #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            // configure container
            IUnityContainer container = new UnityContainer();

            UnityForms.RegisterTypes(container);
            UnityPlatform.RegisterTypes(container, this);

            var app = container.Resolve <App>();

            LoadApplication(app);

            // TODO check permissions (INTERNET)
        }
예제 #3
0
파일: Panel.cs 프로젝트: rickyah/UnityForms
 public Panel(UnityForms.Layouts.Layout layout)
 {
     this.Layout = layout;
 }
예제 #4
0
 private void chatControl1_SendMessage(UnityForms.Control sender, UnityForms.ChatControl.ChatEventArgs e)
 {
     if (this.SendMessage != null)
     {
         this.SendMessage(sender, e);
     }
 }
예제 #5
0
 private void box1_MouseClick(object sender, UnityForms.MouseEventArgs e)
 {
     Debug.Log("box1_MouseClick");
 }
예제 #6
0
 private void textField1_MouseClick(object sender, UnityForms.MouseEventArgs e)
 {
     Debug.Log("textField1_MouseClick");
 }
예제 #7
0
 void label1_MouseClick(object sender, UnityForms.MouseEventArgs e)
 {
     Debug.Log("label1_MouseClick");
 }