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); }
protected virtual void SetRequiredSettings(DotvvmControl control, IDotvvmRequestContext context) { control.SetValueRaw(RenderSettings.ModeProperty, RenderMode.Server); }