Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: Translation Colorpicker

$
0
0
Actually, u could rewrite ColorPick.
set togglebutton Checked and Unchecked event.
code like this:
public class ColorPickerRewrite : ColorPicker
    {
        private ToggleButton _advanced;
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            _advanced = GetTemplateChild("_colorMode") as ToggleButton;
            if (_advanced != null)
            {
                _advanced.Content = "default/advanced";
                _advanced.Unchecked += (sender, e) =>
                    {
                        _advanced.Content = "default/advanced";//uncheck togglebutton, content return to default

                    };
                _advanced.Checked += (sender, e) =>
                    {
                        _advanced.Content = "standard";//checked, get into advanced mode, changed content into standard
                            
                    };
            }
        }
    } 
this is only way that i found to change the language without re-template

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>