I created a Xamarin forms application based on the tabbed page structure. There are around 5 tabs. 1 tabs has an entry. When I fill the entry, I want the other 4 tabs to show the entry in a label. How can I achieve this?
People usually say that you shouldn't bind multiple views to 1 viewmodel, each page should have it's own VM. If that's true, how can those views be updated? Should I refresh each tab when I navigate to it?
It sounds like you want to synchronize data between viewmodels. I would have the viewmodel with the entry publish the new updated value via the Xamarin Forms Messaging Center.
The other tabs viewmodels can subscribe to these changes and update their properties accordingly
Related
I am trying to implement UISplitViewController on iPhone similar to the Discover App. The Primary View controller has to semi-overlay on top of the detail View Controller. I have tried the existing frameworks but in all of them the master/primary view controller pushes the detail view controller when the menuItem/Hamburger button on detailView is pressed. Any ideas or resources related to my specific requirement ?
I am trying to implement something similar to the picture
When you click on a certain item in the master , the corresponding view is pushed to the detailView and the master closes
I have just started web development.I want to make a screen to do basic add modify and delete operation.
The screen I've designed will have 3 tabs which will be add , display and delete.When I click on any of this tab a sub-screen should open for doing the operation accordingly. Another I thing I want to do is , I've a text field when I enter a number in it , I want to check for validation and tell him immediately if he's correct or not.
What controls I need to know to do this or how should I go about doing this?
Follow this tutorial on ASP.NET MVC to get started in ASP.NET web development.
http://nerddinnerbook.s3.amazonaws.com/Intro.htm
The tutorial will show you how to create a database for your application and how to interact with it in code. It shows how to create views (web pages) and actions for Add, Read, Update and Delete operations.
Hmmm... Controls to use. How about a FormView or DetailsView, possibly a DataGrid and definitely some validators.. RegularExpression and Required...
And maybe watch some Asp.Net vidos... There are plenty here: http://www.asp.net/web-forms <--- This is where you should start.
Or you could use MVC or Dynamic Data
Lots of choices...
I'm developing an InfoPath form for Forms Services. It has these views:
View 1 asks the user to input some basic initial data
View 2 calls a web service based on data in View 1 and populates drop-downs accordingly
At the bottom of View 1 I've added a Next > button to move to View 2. As part of clicking that button I would like the inputs in View 1 to be validated first. However, there don't appear to be any rules that validate a view or anything in the object model to execute validation rules.
Is there code that can trigger a field's validation event?
The answer to this, at least for InfoPath 2007 (which this question is targeted at), is no. The only solution is to handle all validation manually.
I have 5 views in my ASP.NET MVC application. Some data were captured from these views and I am navigating through these views using 2 buttons: the Previous and Next buttons.
So I fill the data in View 1 and I go to view 2 and enter the data there and so on.. till View 5.
Now the question is: If I come back again to previous views, how to retain the data entered there in that particular view.
In addition, I want to submit the data from all the 5 views at a time, once I finish entering data to all 5 views.
What is the best way to do it?
I can think of a number of approaches to your issue. You could create a single view with a number of 'panels' which are hidden or revealed depending on which step you are on in the process, like a wizard control. You could try and use a cookie but that's not very clean. Ideally, you embrace the statelessness of the MVC pattern and the fact the View is a view of the Model and update your Model as each page posts back to your Controller and you persist the Model (however you choose) between pages.
Simplicity might lead me to suggest the 'wizard' approach if you don't want to persist anything until the process is complete. I'm certain jQuery could help you out with this solution.
If you only want to submit the content once all pages are filled, you will probably need to store entered data into a cookie on the client machine. You can do this with javascript:
http://www.quirksmode.org/js/cookies.html
I am developing an ASP.Net web app that needs to run in a Kiosk/Touch screen environment.
The existing ASP.Net web controls are not too touch-screen friendly as they seem better suited for a mouse/touchpad.
The hot potato dropped in my lap when the powers-that-be decided we need some sort of composite control similar to the ASP.Net Radio Button List, but instead of radio buttons I want the items to be displayed as large rubber buttons. The selected item's button needs to be indented for example or depict this graphically somehow.
I still need to have access to a selecteditem/ selectedvalue type property to determine what was selected...
What would be the best approach in achieving this? Creating a custom server control that overrides the radiobutton control or using a .Net control 'skin' file somehow that allows me to graphically alter a standard radio button list via CSS?
Your input is appreciated.
You can do this with the existing control- see here for an example. See if that does what you require before considering extending an existing control or writing a custom one.