How to auto-capitalize keyboard/entry in xamarin forms
Subramanyam Raju Blog
by Subramanyam Raju
3y ago
Introduction: The Keyboard class also has a Create factory method that can be used to customize a keyboard by specifying capitalization, spellcheck, and suggestion behavior Description: KeyboardFlags enumeration values are specified as arguments to the method, with a customized Keyboard being returned. The KeyboardFlags enumeration contains the following values: None – no features are added to the keyboard. CapitalizeSentence – indicates that the first letter of the first word of each entered sentence will be automatically capitalized.  Spellcheck – indicates that spellcheck will be perf ..read more
Visit website
Resolved: ScrollTo not working with grouped ListView in Xamarin.Forms
Subramanyam Raju Blog
by Subramanyam Raju
4y ago
Introduction: Sometimes ListView contains a grouped ItemsSource represented by a custom model class, and we may need to scroll to first item programatically. Description: Let's assume 'myListView' is binding with collection object 'EmployeeList<string,Employee>' which is from HomeViewModel. And if we want to make myListView scroll to first grouped item with 'ScrollTo (object item, object group, Xamarin.Forms.ScrollToPosition position, bool animated)' method, write below code void ResetAtoZListScroll(object sender, EventArgs e)      &n ..read more
Visit website
How to get a keyboard start capital letter in Entry in xamarin.Forms (C# - Xaml)
Subramanyam Raju Blog
by Subramanyam Raju
4y ago
Introduction: The Entry control defines a Keyboard property that allows an app to select the virtual keyboard that is displayed for the control. For example, a keyboard for entering a phone number should be different from a keyboard for entering an email address. Description: The Keyboard property is of type Keyboard. This class defines read-only properties that are appropriate for different keyboard uses: Default  Text  Chat  Url  Email  Telephone  Numeric In major chatting application like the first letter is always capital letter when the user touched the tex ..read more
Visit website
Resolved: MISSING_PERMISSION_ACCESS_COARSE_LOCATION in Xamarin.Android (C# - Xaml)
Subramanyam Raju Blog
by Subramanyam Raju
4y ago
Introduction: Android considers accessing device location to be a secure permission, which typically requires the user to grant their permission to access the resource. The user may revoke this permission at any time. This means that a run time permission request should be performed prior to location permission. Description: Permission Model before M (API 23): Before API 23, the permission model was simpler to the developer but offered less control and security to the user – requested permissions are presented to the user before installing the application. The user needs to decide wheth ..read more
Visit website
Xamarin.Forms: How to identify website link broken or not reachable (C# - Xaml)
Subramanyam Raju Blog
by Subramanyam Raju
4y ago
Introduction: We know that WebView is a view for displaying web and HTML content in your app. Due to security, sometimes website links will not work with outside network, so we need to identify it to show custom dialog to user.  Description: In Xamarin.Forms, WebView raises the following events to help you respond to changes in state: Navigating – event raised when the WebView begins loading a new page. Navigated – event raised when the page is loaded and navigation has stopped. ReloadRequested – event raised when a request is made to reload the current content. So we can use Navigated ..read more
Visit website
Xamarin.Forms: how to prevent to open specific Url links from WebView (C# - Xaml)
Subramanyam Raju Blog
by Subramanyam Raju
4y ago
Introduction: We know that WebView is a view for displaying web and HTML content in your app. Due to security, sometimes we may need to restrict to open specific urls in our app.  Description: In Xamarin.Forms, WebView raises the following events to help you respond to changes in state: Navigating – event raised when the WebView begins loading a new page. Navigated – event raised when the page is loaded and navigation has stopped. ReloadRequested – event raised when a request is made to reload the current content. So we can use Navigating event, because this event args has a Cancel pro ..read more
Visit website
Xamarin.Forms Resolved: Cleartext HTTP traffic not permitted in Android
Subramanyam Raju Blog
by Subramanyam Raju
4y ago
Introduction: Starting with Android 9 (API level 28) cleartext(non-HTTPS) support is disabled by default? It is always recommended to make connections over HTTPS to ensure that any web communication is secure. This policy may have an impact on your development cycle if your app needs to download an image or file on a server hasn’t been configured for HTTPS. Description: We can resolve "Cleartext HTTP traffic not permitted" error In Xamarin.Forms by following few steps for android Go to Android Project, then click on properties Click on AssemblyInfo.cs and paste code below [assembly: Applica ..read more
Visit website
Xamarin.Forms Custom Renderer: Borderless Entry (C# - Xaml)
Subramanyam Raju Blog
by Subramanyam Raju
4y ago
Introduction: In this article, we can learn how to create entry without border using custom renderer Description: In Xamarin.Forms, there is no way to set border less properties to entry. Alternately we have use custom renders like below in platform specific projects Let's create render class in Android project [assembly: ExportRenderer(typeof(Entry), typeof(BorderlessEntryRenderer))]   namespace FirstApp.Android.Renderers   {       public class BorderlessEntryRenderer : EntryRenderer       {           protected override void OnElementChanged(ElementChangedEventArgs<Entry> e ..read more
Visit website
Xamarin: How to sign an Android APK file in Visual Studio for Mac
Subramanyam Raju Blog
by Subramanyam Raju
4y ago
Introduction: After an application has been coded and tested, it is necessary to prepare a package for distribution. The first task in preparing this package is to build the application for release, which mainly entails setting some application attributes. In this article, we can learn how o sign Android APK in Visual studio for Mac. Description: Archive Manager was used to build the app and place it in an archive for signing and publishing. This section explains how to create an Android signing identity, create a new signing certificate for Android applications, and publish the archived app ..read more
Visit website
Format DatePicker value to MM/dd/yyyy or MM-dd-yyyy in Xamarin.Forms (C# - Xaml)
Subramanyam Raju Blog
by Subramanyam Raju
4y ago
Introduction: In Xamarin.Forms, we can format datepicker value to specific date format using "Format" property in Xaml or C# code. But you might be faced the issues with date format. For example if you set datepicker Format to "MM/dd/yyyy", value will be shown in different format for some devices like "MM-dd-yyyy". In this article, we can learn how to fix this issues. Description: We can achieve custom date formats for date picker with custom renderers In your Android project add below custom renderer for DatePicker to format date value to "MM/dd/yyyy" using System.ComponentModel;   using ..read more
Visit website

Follow Subramanyam Raju Blog on FeedSpot

Continue with Google
Continue with Apple
OR