Пример #1
0
        protected override void TransferControlProperties(DotvvmControl source, DotvvmControl target)
        {
            if (source.IsPropertySet(Amp.LayoutProperty))
            {
                target.SetValueRaw(AmpControl.LayoutProperty, source.GetValue <AmpLayout>(Amp.LayoutProperty));
            }

            if (source.IsPropertySet(Amp.WidthProperty))
            {
                target.SetValueRaw(AmpControl.WidthProperty, source.GetValue <string>(Amp.WidthProperty));
            }

            if (source.IsPropertySet(Amp.HeightProperty))
            {
                target.SetValueRaw(AmpControl.HeightProperty, source.GetValue <string>(Amp.HeightProperty));
            }

            base.TransferControlProperties(source, target);
        }
Пример #2
0
 protected virtual void SetRequiredSettings(DotvvmControl control, IDotvvmRequestContext context)
 {
     control.SetValueRaw(RenderSettings.ModeProperty, RenderMode.Server);
 }