Example #1
0
        ///  //i need to use the custom renderer NoHelperEntry but I cannot get it to work through xaml
        /// it keeps saying it can't find the thing in the dll
        /// i notice that the pinpoint assembly (dll) is not moved into the bin folder of the ios and droid project, terrible
        /// maybe the answer is here, not sure
        /// https://forums.xamarin.com/discussion/27307/assembly-for-xmlns-locate-not-found-forms-project-with-xaml
        /// </summary>
        void AddEntries()
        {
            var campusKey = new NoHelperEntry()
            {
                Placeholder = "Campus Key"
            };

            campusKey.BindingContext = viewModel;
            campusKey.SetBinding(Entry.TextProperty, "TenancyName", BindingMode.TwoWay);
            Inputs.Children.Insert(3, campusKey);

            var username = new NoHelperEntry()
            {
                Placeholder = "Username"
            };

            username.BindingContext = viewModel;
            username.SetBinding(Entry.TextProperty, "UsernameOrEmailAddress", BindingMode.TwoWay);
            Inputs.Children.Insert(5, username);

            var password = new NoHelperEntry()
            {
                Placeholder = "Password"
            };

            password.BindingContext = viewModel;
            password.SetBinding(Entry.TextProperty, "Password", BindingMode.TwoWay);
            Inputs.Children.Insert(7, password);
        }