Category: Infragistics

Infragistics AppMap for Xamarin.Forms

Introduction

Today, Infragistics has made the popular AppMap for Xamarin.Forms available to all developers at no charge.

AppMap enables developers to visually map out and then generate their Xamarin.Forms application.

The code generation includes selected projects (iOS and Android, UWP coming soon), Pages (Views), ViewModels, and navigation code that follows best-practice Prism MVVM architecture.

For example, last month I created a 17 page application in three minutes. Easily saved myself an hour or two with project creation..

Videos

Please watch these short AppMap training videos to ensure you get the most from the AppMap tool and Prism for Xamarin.Forms.

Download and Installation

AppMap is included with the Infragistics Platform Installer and can also be download from the Visual Studio Marketplace.

Additionally, you can install from within Visual Studio using the Extensions and updates dialog.

AppMap works in all versions of Visual Studio 2015 and 2017.

Launching AppMap

AppMap is launched from the Visual Studio New Project Dialog or New Item Dialog.

NewProject

When using the New Item dialog, the name has no impact and is not used by the tool.  You can leave the default name and click the Add button.

Note: The New Item dialog only works with Xamarin.Forms project that were created by AppMap.

NewItem

Sign In

The first time you open AppMap you’ll need to sign in.  If you don’t have an Infragistics account yet, click the link and set one up.

The Customer Experience Improvement Program really does help us plan, allocate resources, is zero impact, and anonymous. As you can imagine, creating and maintaining Visual Studio Tooling is expensive and time consuming. This data helps us provide the best tooling for our customers and provide free tools to the community.

SignIn

Project Selection

This Create New Project dialog allows the developer to select the platforms for project creation. 

UWP will be supported in the coming soon release of AppMap

AppMap uses Prism for Xamarin.Forms. Prism provides a modern framework and developer guidance that embraces separation of concerns, dependency injection (DI), MVVM, and provides an incredibly rich, simple, and easy to use navigation API. The docs can be read here.

This dialog prompts you to select the DI Container you would like to use. When the project is created by AppMap, or when an AppMap Item is added to a project, AppMap automatically registers the added pages with the DI Container for you.

The Show AppMap checkbox allows you to show the AppMap dialog and then create the projects, or when unchecked, just create the projects.

The purpose of this dialog option is to enable a real-world application development workflow. Most developers have their own ViewModel base class.  AppMap allows developers to select the ViewModel base class to use for code generation. You can use one of two provided bases classes, or selected your own. So, by first creating  empty projects (projects without pages), developers can then bring in their own libraries and frameworks to the solution.  Then, launch the add New Item dialog, and in the AppMap select your ViewModel base class.

If your not familiar with the provided AppMap ViewModel base classed, please review them.  They both implement Prism navigation interfaces and have several commands that AppMap expects a ViewModel to have.  When AppMap generates your views, it wires up buttons and toolbar buttons to commands on the ViewModel. Optionally, you can derive your own ViewModel base class from one of the provided ones, but this is not a requirement.

ProjectDialog

AppMap

AppMap provides a diagram tool for laying out pages and creating relationships between them. These relationships provide the tool metadata for generating navigation code.

A feature of AppMap is to parse the entered Name, and set the Title property. You can edit the Name by double clicking the name in the diagram page or use the Properties panel.

The Code Generations Options panel is where you decide where your ViewModels will be placed, which folder names you would like to use, and the ViewModel base class to use.

Again, please watch the series of videos on AppMap to get a full understanding of it’s capabilities and features.

AppMap

This is the solution that was created by the above AppMap selections.  It took me 30 seconds to lay my application out and create it.

Notice that I like my ViewModels nested under my views.  This is not a requirement, but a personal preference.

Solution

Road Map

In the near future, we’ll release a new version of AppMap with these features:

  • .NET Standard 2.0 Xamarin.Forms Project Creation
  • Option to create UWP Project

Close

I always use AppMap for creating my projects as it saves so much time and saves me from having to create the pages and ViewModels one by one.

Have a great day,

Just a grain of sand on the worlds beaches.

Laser-Focused Internet Searching

Introduction

I work at Infragistics. Our company has been publishing UI control suites for many years. For each major release of a control suite, we publish online documentation specific to that release.

Today, when I perform a search for, “xamdatagrid fieldlayoutsettings” I get results for many previous versions of our WPF Help Docs that relate to the search. Unfortunately, the results contain links to old versions of our help docs; this is not what I’m looking for, but this is the nature of Internet searching.

I’ve tried limiting my results to the last year, but the results are still not optimal.

Solution

By providing the search engine (I’ve tested with both Google and Bing) with a “site:” argument, the search only returns results from the specified site. The site can be much more than just a domain name.  You must supply the subdomain such as “www”, and then you can specify a top-level fold to search.

If I modify the above search to this:   “site:www.infragistics.com/help/wpf/ xamdatagrid fieldlayoutsettings” I’ll get laser focus search results, drawn from the current documentation only because the current Infragistics English WPF docs are all under this URL, https://www.infragistics.com/help/wpf/

Having to remember and type “site:www.infragistics.com/help/wpf/” each time I need to search the current Infragistics WPF Help Docs would be a bit of a pain.

Happy Searching

The solution to never having to remember or re-enter the “site” argument is to set up a browser Favorite for each of the sites you search most often.

To do this:

  • Open your browser of choice
  • Navigate to your search engine of choice
  • For each site, you need laser focused search results for, type in or paste in the site criteria into the search and press Enter.
  • Save the current URL to a Favorite.  (I have several I’ve dragged to my Favorites bar.)

Below, I have provided some Infragistics site criteria that you can use to create search favorites for these products.

English Help Sites

site:www.infragistics.com/help/wpf/

site:www.infragistics.com/help/xamarin/

site:www.infragistics.com/help/winforms/

Japanese Help Sites

site:jp.infragistics.com/help/wpf/

site:jp.infragistics.com/help/xamarin/

site:jp.infragistics.com/help/winforms/

Searching

Now to search, open the favorite, this will cause the browser to navigate to the search engine and place the “site:” argument in the search box.  Now, you just enter your search criteria and enjoy happy and productive searching.

  1. Click on the Favorite you created
  2. Enter your additional search criteria.

9-20-2017 10-45-02 AM

Close

Obviously, this technique will work for any site, not just Infragistics. If you find yourself wanting to search a specific site or folders within that site, considering setting up a Favorite for that search.

Have a great day,

Just a grain of sand on the worlds beaches.

Infragistics Xamarin Toolbox Free For All Users

Infragistics has published two Xamarin productivity tools on the Visual Studio Marketplace and made them free for all developers.

The Infragistics Xamarin.Forms Toolbox is the first NuGet-powered toolbox.  It includes all the Xamarin.Forms controls by Infragistics, as well as the Xamarin controls native to the platform.  The Toolbox enables developers to quickly design your page – automatically adding the namespace and XAML for your selected control.

The Infragistics Xamarin.Forms Control Configurators provides visual configuration of rich Infragistics controls like charts, gauges, and the data grid right in the XAML editor, shaving hours off your development time. Configure your controls and bind data directly from XAML files with pre-built styles and themes and rich property editing. Use the control configurator to learn the rich API’s of the Xamarin Forms controls.

Please visit the above links to install and for detailed documentation.

Enjoy!

Just a grain of sand on the world’s beaches