Xamarin Edition
Total Page:16
File Type:pdf, Size:1020Kb
ComponentOne Xamarin Edition ComponentOne, a division of GrapeCity 201 South Highland Avenue, Third Floor Pittsburgh, PA 15206 USA Website: http://www.componentone.com Sales: [email protected] Telephone: 1.800.858.2739 or 1.412.681.4343 (Pittsburgh, PA USA Office) Trademarks The ComponentOne product name is a trademark and ComponentOne is a registered trademark of GrapeCity, Inc. All other trademarks used herein are the properties of their respective owners. Warranty ComponentOne warrants that the media on which the software is delivered is free from defects in material and workmanship, assuming normal use, for a period of 90 days from the date of purchase. If a defect occurs during this time, you may return the defective media to ComponentOne, along with a dated proof of purchase, and ComponentOne will replace it at no charge. After 90 days, you can obtain a replacement for the defective media by sending it and a check for $25 (to cover postage and handling) to ComponentOne. Except for the express warranty of the original media on which the software is delivered is set forth here, ComponentOne makes no other warranties, express or implied. Every attempt has been made to ensure that the information contained in this manual is correct as of the time it was written. ComponentOne is not responsible for any errors or omissions. ComponentOne’s liability is limited to the amount you paid for the product. ComponentOne is not liable for any special, consequential, or other damages for any reason. Copying and Distribution While you are welcome to make backup copies of the software for your own use and protection, you are not permitted to make copies for the use of anyone else. We put a lot of time and effort into creating this product, and we appreciate your support in seeing that it is used by licensed users only. Xamarin Edition 1 Table of Contents Getting Started with Xamarin Edition 5 Breaking Changes for Xuni Users 5-6 NuGet Packages 6-7 Redistributable Files 7-8 System Requirements 8-9 Licensing 9 Licensing your app using GrapeCity License Manager Add-in 9-14 Licensing your app using website 14-15 Finding the Application Name 15-17 Creating a New Xamarin.Forms App 17-19 Creating a New Xamarin.Forms App 19-20 Adding NuGet Packages to your App 20-22 Adding Xamarin Components using C# 22-24 Adding Xamarin Components using XAML 24-25 About this Documentation 25 Technical Support 25-26 Controls 27 Calendar 27 Quick Start: Display a Calendar Control 27-30 Interaction Guide 30-31 Features 31 Customizing Appearance 31-33 Customizing Header 33-36 Customizing Day Content 36-39 Orientation 39-40 Selection 40-41 Customizing Selection 41-42 CollectionView 42 Features 42 Grouping 42-44 Incremental Loading 44-47 Sorting 47-48 FlexChart 48-49 Quick Start: Add Data to FlexChart 49-53 Xamarin Edition 2 Chart Elements 53-54 Chart Types 54-58 Features 58 Axes 58-61 Customize Appearance 61-62 Data Binding 62-64 Data Labels 64-67 Header and Footer 67-68 Hit Test 68-70 Legend 70-71 Mixed Charts 71-72 Multiple Y Axes 72-75 Selection 75-76 Themes 76-78 Zones 78-82 FlexGrid 82-83 Quick Start: Add Data to FlexGrid 83-87 Features 87 Custom Cells 87-91 Custom Cell Editor 91 Customize Appearance 91-92 Clipboard and Keyboard Support 92-93 Data Mapping 93-95 Defining Columns 95-96 Editing 96 Inline Editing 96-97 Filtering 97 Search Box Filtering 97-99 Formatting Columns 99-101 Frozen Rows and Columns 101-102 Grouping 102-104 Merging Cells 104-106 Resizing Columns 106 Row Details 106-115 Sorting 115-118 Selecting Cells 118 Xamarin Edition 3 Star and Auto Sizing 118-119 Wordwrap 119-120 FlexPie 120-121 Quick Start: Add data to FlexPie 121-124 Features 124 Customize Appearance 124-125 Data Binding 125-126 Data Labels 126-129 Donut Pie Chart 129-130 Exploded Pie Chart 130 Header and Footer 130-131 Legend 131-132 Themes 132-134 Gauge 134-135 Gauge Types 135-136 Quick Start: Add and Configure 136 BulletGraph Quick Start 136-139 LinearGauge Quick Start 139-141 RadialGauge Quick Start 141-145 Features 145 Animation 145 Customize Appearance 145-146 Data Binding 146-147 Direction 147-148 Range 148-149 User Scenario 149 Poll Results 149-153 Input 153 AutoComplete 153-154 Quick Start: Populating AutoComplete with Data 154-156 Features 157 Data Binding 157 Delay 157 Highlight Matches 157-158 CheckBox 158 ComboBox 158-159 Xamarin Edition 4 Quick Start: Display a ComboBox Control 159-162 Features 162 Custom Appearance 162-163 Data Binding 163 Editing 163-164 DropDown 164 Creating a Custom Date Picker using DropDown 164-166 MaskedTextField 166 Quick Start: Display a MaskedTextField Control 166-168 Mask Symbols 168 Xamarin Edition 5 Getting Started with Xamarin Edition Xamarin Edition is a collection of cross-platform UI controls developed by GrapeCity for Xamarin.iOS, Xamarin.Android, and Xamarin.Forms. Xamarin Edition has been optimized for Xamarin development, and provides native experiences in Android, iOS, and UWP. This beta release provides an opportunity for users to try out the enhanced architecture and provide feedback. For existing Xuni users, the new architecture brings many new features: UWP Support The new architecture adds the ability to use our controls in Xamarin.Forms apps targeting UWP. This grows the number of potential platforms that you can target, and allows you to utilize Microsoft’s newest technologies together. Better Performance The new controls should generally perform better than the old controls (sometimes doubling performance). By specifically focusing on the Xamarin architecture, the controls cut out some intermediary logic and are optimized for the platform. Since they’re entirely in C#, so you can also expect a more consistent experience. Designer Support The new controls should also support Xamarin’s designers for iOS and Android applications. This makes it much easier to construct your Android XML or iOS Storyboards using these controls. New Control Features The controls have been rethought for the new architecture with the combined experience of Xuni, Wijmo, as well as ComponentOne controls. Some controls have a number additional features (such as FlexGrid). The controls will continue to be in active development throughout the course of the beta. Breaking Changes for Xuni Users New Package Names The packages have changed their prefix if you're coming from Xuni. For instance, Xuni.Android.Calendar now corresponds to C1.Android.Calendar Xuni.iOS.Calendar now corresponds to C1.iOS.Calendar Xuni.Forms.Calendar now corresponds to C1.Xamarin.Forms.Calendar We have also moved to a more consistent naming scheme for our controls based on the following pattern: C1.[Platform].[ControlName] For example, FlexGrid is available in C1.Xamarin.Forms.Grid Additionally, FlexChart, FlexPie, and ChartCore have all been consolidated into one single package instead of three different packages. To use FlexChart or FlexPie, you now need to add a single package developed for the platform of your choice: C1.Android.Chart C1.iOS.Chart C1.Xamarin.Forms.Chart Namespace Changes We’ve made some changes to the namespace of the current controls, which are in line with the changes in package names. For example, Xuni.Forms.Calendar now corresponds to C1.Xamarin.Forms.Calendar. Xamarin Edition 6 Minor API Changes There are some minor changes in API between ComponentOne Xamarin Edition and Xuni. These should mostly amount to additions, slight change in syntax, and use of prefix 'C1' instead of 'Xuni' in class and object names. For FlexChart, however, the control is very actively growing in terms of API, so missing features are intended to be added in the future. NuGet Packages The following NuGet packages are available for download: Name Description C1.Android.Calendar Installing this NuGet package adds all the references that enable you to use the Calendar control in your Xamarin.Android application. C1.Android.Core This is the dependency package for the control NuGet packages and is automatically installed when any dependent package is installed. C1.Android.Chart Installing this NuGet package adds all the references that enable you to use the FlexChart and FlexPie controls in your Xamarin.Android application. C1.Android.Grid Installing this NuGet package adds all the references that enable you to use the FlexGrid control in your Xamarin.Android application. C1.Android.Gauge Installing this NuGet package adds all the references that enable you to use the Gauge control in your Xamarin.Android application. C1.Android.Input Installing this NuGet package adds all the references that enable you to use the Input controls in your Xamarin.Android application. C1.CollectionView This is the dependency package for the control NuGet packages and is automatically installed when any dependent package is installed. C1.Xamarin.Forms.Calendar Installing this NuGet package adds all the references that enable you to use the Calendar control in your project. C1.Xamarin.Forms.Core This is the dependency package for the control NuGet packages and is automatically installed when any dependent package is installed. C1.Xamarin.Forms.Chart Installing this NuGet package adds all the references that enable you to use the FlexChart and FlexPie controls in your project. C1.Xamarin.Forms.Grid Installing this NuGet package adds all the references that enable you to use the FlexGrid control in your project. C1.Xamarin.Forms.Gauge Installing this NuGet package adds all the references that enable you to use the Gauge control in your project. C1.Xamarin.Forms.Input Installing this NuGet package adds all the references that enable you to use the Input controls in your project. C1.iOS.Calendar Installing this NuGet package adds all the references that enable you to use the Calendar control in your Xamarin.iOS application.