This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See: http://developer.xamarin.com/guides/android/advanced_topics/garbage_collection/#Configuration | |
MONO_GC_PARAMS=bridge-implementation=tarjan,nursery-size=32m,soft-heap-limit=512m,evacuation-threshold=80 | |
# See: http://www.mono-project.com/docs/advanced/runtime/logging-runtime-events/#trace-levels | |
MONO_LOG_LEVEL=info | |
# See: http://www.mono-project.com/docs/advanced/runtime/logging-runtime-events/#trace-filters | |
MONO_LOG_MASK=gc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace MyApp.Attributes | |
{ | |
/// <summary> | |
/// Apply the design time binding context attribute to your code-behind class to inform tools of your intended runtime binding context. | |
/// </summary> | |
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] | |
public class DesignTimeBindingContextAttribute : Attribute | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using System.Linq; | |
using System.Threading; | |
using Java.Util; | |
using MyApp.Droid; | |
using MyApp.il8n; | |
using Xamarin.Forms; | |
[assembly: Dependency(typeof(Localize))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using System.Threading; | |
using Foundation; | |
using MyApp.il8n; | |
using MyApp.iOS; | |
using Xamarin.Forms; | |
[assembly: Dependency(typeof(Localize))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using System.Reflection; | |
using System.Resources; | |
using Xamarin.Forms.Xaml; | |
using Xamarin.Forms; | |
namespace MyApp.il8n | |
{ | |
// You exclude the 'Extension' suffix when using in Xaml markup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
namespace MyApp.il8n | |
{ | |
public interface ILocalize | |
{ | |
CultureInfo GetCurrentCultureInfo(); | |
void SetLocale(); |
NewerOlder