Microsoft.Windows.Controls.Ribbon.RibbonComboBox.InitializeStringContentTemplate C# (CSharp) Method

InitializeStringContentTemplate() private static method

private static InitializeStringContentTemplate ( ) : void
return void
        private static void InitializeStringContentTemplate()
        {
            DataTemplate template;
            FrameworkElementFactory text;

            // Default template for strings
            template = new DataTemplate();
            text = new FrameworkElementFactory(typeof(TextBlock));
            text.SetValue(TextBlock.TextProperty, new TemplateBindingExtension(ContentPresenter.ContentProperty));
            template.VisualTree = text;
            template.Seal();
            s_StringTemplate = template;
        }