public static void AddAdditionalChild(BindableObject parent, BindableObject child) { if (ReferenceEquals(parent, null) || ReferenceEquals(child, null)) { return; } var additionalChildren = Css.GetAdditionalChildren(parent); if (additionalChildren == null) { additionalChildren = new List <BindableObject>(); Css.SetAdditionalChildren(parent, additionalChildren); } additionalChildren.Add(child); var domParent = Css.GetDomElement(parent) as DomElement; domParent?.ReloadChildren(); Css.instance?.NewElement(child); }
public IDomElement <BindableObject> GetDomElement(BindableObject obj) { return(Css.GetDomElement(obj) as IDomElement <BindableObject>); }
public void SetHandledCss(BindableObject obj, bool value) { Css.SetHandledCss(obj, value); }
public void SetStyleSheet(BindableObject obj, StyleSheet value) { Css.SetStyleSheet(obj, value); }
public void SetStyle(BindableObject obj, StyleDeclarationBlock value) { Css.SetStyle(obj, value); }
public void SetName(BindableObject obj, string value) { Css.SetId(obj, value); }
public IDomElement <BindableObject, BindableProperty> GetDomElement(BindableObject obj) { return(Css.GetDomElement(obj) as IDomElement <BindableObject, BindableProperty>); }
public string GetClass(BindableObject obj) { return(Css.GetClass(obj)); }
public void SetHadStyle(BindableObject obj, bool?value) { Css.SetHadStyle(obj, value); }
public void SetClass(BindableObject obj, string value) { Css.SetClass(obj, value); }
public bool GetHandledCss(BindableObject obj) { return(Css.GetHandledCss(obj)); }
public StyleSheet GetStyleSheet(BindableObject obj) { return(Css.GetStyleSheet(obj)); }
public StyleDeclarationBlock GetStyle(BindableObject obj) { return(Css.GetStyle(obj)); }
public string GetName(BindableObject obj) { return(Css.GetId(obj)); }
public Style GetInitialStyle(BindableObject obj) { return(Css.GetInitialStyle(obj)); }
public void SetDomElement(BindableObject obj, IDomElement <BindableObject> value) { Css.SetDomElement(obj, value); }
public string[] GetAppliedMatchingStyles(BindableObject obj) { return(Css.GetAppliedMatchingStyles(obj)); }
public void SetInitialStyle(BindableObject obj, Style value) { Css.SetInitialStyle(obj, value); }
public bool?GetHadStyle(BindableObject obj) { return(Css.GetHadStyle(obj)); }
public void SetMatchingStyles(BindableObject obj, string[] value) { Css.SetMatchingStyles(obj, value); }