protected void SerializeDefault(FrameworkElement elm) { position = new PositionSize(elm); ControlDef.Serialize(elm); ContID = elm.Name; ControlVisibility = elm.Visibility; if (elm.Effect != null) { effect = new Effect_Serializer(elm.Effect); } else { effect = null; } }
public WebPage_Serialization(WebPage_Control control, DataStore data) { position = new PositionSize(control); Buttons = control.BackForwardVisibility; URL = control.WebUrl; Toolbar = control.ToolbarPanel.Visibility; ContID = control.Name; ControlVisibility = control.Visibility; if (control.Effect != null) { effect = new Effect_Serializer((DropShadowEffect)control.Effect); } else { effect = null; } CPbrush.SerializeWithKey(control.ControlPanelBack, data, control.PathToCPImage); CPbrush.SerializeQuality(control); }