示例#1
0
        /// <summary>
        /// Overrides this method if want to handle behavior when the system language is changed.
        /// If base.OnLocaleChanged() is not called, the event 'LocaleChanged' will not be emitted.
        /// </summary>
        /// <param name="e">The locale changed event argument</param>
        /// <since_tizen> 3 </since_tizen>
        protected virtual void OnLocaleChanged(LocaleChangedEventArgs e)
        {
            if (!GlobalizationMode.Invariant)
            {
                ChangeCurrentUICultureInfo(e.Locale);
            }

            LocaleChanged?.Invoke(this, e);
        }
示例#2
0
 /// <summary>
 /// Overrides this method if want to handle behavior when the system language is changed.
 /// If base.OnLocaleChanged() is not called, the event 'LocaleChanged' will not be emitted.
 /// </summary>
 /// <param name="e">The locale changed event argument</param>
 /// <since_tizen> 3 </since_tizen>
 protected virtual void OnLocaleChanged(LocaleChangedEventArgs e)
 {
     ChangeCurrentCultureInfo(e.Locale);
     LocaleChanged?.Invoke(this, e);
 }
 /// <summary>
 /// Overrides this method if want to handle behavior when the system language is changed.
 /// If base.OnLocaleChanged() is not called, the event 'LocaleChanged' will not be emitted.
 /// </summary>
 protected virtual void OnLocaleChanged(LocaleChangedEventArgs e)
 {
     LocaleChanged?.Invoke(this, e);
 }
示例#4
0
 /// <summary>
 /// This method is to handle behavior when the system language is changed.
 /// </summary>
 /// <param name="e">The locale changed event argument</param>
 /// <since_tizen> 10 </since_tizen>
 public virtual void OnLocaleChanged(LocaleChangedEventArgs e)
 {
 }