Ejemplo n.º 1
0
        /// <summary>
        /// Theme change callback when theme is changed, this callback will be trigger.
        /// </summary>
        /// <param name="sender">The sender</param>
        /// <param name="e">The event data</param>
        /// <since_tizen> 8 </since_tizen>
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            TabStyle tabStyle = StyleManager.Instance.GetViewStyle(style) as TabStyle;

            if (tabStyle != null)
            {
                Style.CopyFrom(tabStyle);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Theme change callback when theme is changed, this callback will be trigger.
        /// </summary>
        /// <param name="sender">The sender</param>
        /// <param name="e">The event data</param>
        /// <since_tizen> 8 </since_tizen>
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            SwitchStyle switchStyle = StyleManager.Instance.GetViewStyle(style) as SwitchStyle;

            if (null != switchStyle)
            {
                Style.CopyFrom(switchStyle);
            }
        }
Ejemplo n.º 3
0
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            PopupAttributes tempAttributes = StyleManager.Instance.GetAttributes(style) as PopupAttributes;

            if (tempAttributes != null)
            {
                attributes = popupAttributes = tempAttributes;
                RelayoutRequest();
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Theme change callback when theme is changed, this callback will be trigger.
        /// </summary>
        /// <param name="sender">The sender</param>
        /// <param name="e">The event data</param>
        /// <since_tizen> 8 </since_tizen>
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            SliderStyle sliderStyle = StyleManager.Instance.GetViewStyle(StyleName) as SliderStyle;

            if (sliderStyle != null)
            {
                Style?.CopyFrom(sliderStyle);
                RelayoutRequest();
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Theme change callback when theme is changed, this callback will be trigger.
        /// </summary>
        /// <param name="sender">The sender</param>
        /// <param name="e">The event data</param>
        /// <since_tizen> 8 </since_tizen>
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            ButtonStyle buttonStyle = StyleManager.Instance.GetViewStyle(StyleName) as ButtonStyle;

            if (buttonStyle != null)
            {
                Style.CopyFrom(buttonStyle);
                UpdateUIContent();
            }
        }
Ejemplo n.º 6
0
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            ProgressStyle tempStyle = StyleManager.Instance.GetViewStyle(StyleName) as ProgressStyle;

            if (null != tempStyle)
            {
                progressStyle.CopyFrom(tempStyle);
                RelayoutRequest();
            }
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Theme change callback when theme is changed, this callback will be trigger.
        /// </summary>
        /// <param name="sender">The sender</param>
        /// <param name="e">The event data</param>
        /// <since_tizen> 8 </since_tizen>
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            ScrollBarStyle tempStyle = StyleManager.Instance.GetViewStyle(style) as ScrollBarStyle;

            if (tempStyle != null)
            {
                Style.CopyFrom(tempStyle);
                UpdateValue();
            }
        }
Ejemplo n.º 8
0
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            TabAttributes tempAttributes = StyleManager.Instance.GetAttributes(style) as TabAttributes;

            if (tempAttributes != null)
            {
                tempAttributes.UseTextNaturalSize = tabAttributes.UseTextNaturalSize; // keep IsNatureTextWidth as original
                attributes = tabAttributes = tempAttributes;
                RelayoutRequest();
            }
        }
Ejemplo n.º 9
0
 protected virtual void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
 {
 }
Ejemplo n.º 10
0
 protected virtual void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
 {
     onThemeChangedEventOverrideChecker = false;
 }