Ejemplo n.º 1
0
        protected internal override void OnPreRender(IDotvvmRequestContext context)
        {
            isFormattingRequired = !string.IsNullOrEmpty(FormatString) ||
                                   ValueType != FormatValueType.Text ||
                                   Literal.NeedsFormatting(GetValueBinding(TextProperty));
            if (isFormattingRequired)
            {
                context.ResourceManager.AddCurrentCultureGlobalizationResource();
            }

            base.OnPreRender(context);
        }