private ProxyUIElement CreateProxyUIElement(UIElement child) { var proxyElement = new ProxyUIElement(child); SetProxyUIElement(child, proxyElement); var props = GetAllAttachedProperties(); foreach (var d in props) { d.SetValue(proxyElement, d.GetValue(child)); } return(proxyElement); }
private ProxyUIElement CreateProxyUIElement(UIElement child) { var proxyElement = new ProxyUIElement(child); SetProxyUIElement(child, proxyElement); var props = GetAllAttachedProperties(); foreach (var d in props) { d.SetValue(proxyElement, d.GetValue(child)); } return proxyElement; }