void CreateWrapper() { if (Instance is BindingBase) { wrapper = new BindingWrapper(); } else if (Instance is StaticResourceExtension) { wrapper = new StaticResourceWrapper(); } if (wrapper != null) { wrapper.XamlObject = this; } }
void CreateWrapper() { if (Instance is BindingBase) { wrapper = new BindingWrapper(this); } else if (Instance is StaticResourceExtension) { wrapper = new StaticResourceWrapper(this); } if (wrapper == null && IsMarkupExtension) { var markupExtensionWrapperAttribute = Instance.GetType().GetCustomAttributes(typeof(MarkupExtensionWrapperAttribute), false).FirstOrDefault() as MarkupExtensionWrapperAttribute; if (markupExtensionWrapperAttribute != null) { wrapper = MarkupExtensionWrapper.CreateWrapper(markupExtensionWrapperAttribute.MarkupExtensionWrapperType, this); } else { wrapper = MarkupExtensionWrapper.TryCreateWrapper(Instance.GetType(), this); } } }
void CreateWrapper() { if (Instance is BindingBase) { wrapper = new BindingWrapper(); } else if (Instance is StaticResourceExtension) { wrapper = new StaticResourceWrapper(); } if (wrapper != null) { wrapper.XamlObject = this; } }
void CreateWrapper() { if (Instance is BindingBase) { wrapper = new BindingWrapper(this); } else if (Instance is StaticResourceExtension) { wrapper = new StaticResourceWrapper(this); } if (wrapper == null && IsMarkupExtension) { var markupExtensionWrapperAttribute = Instance.GetType().GetCustomAttributes(typeof(MarkupExtensionWrapperAttribute), false).FirstOrDefault() as MarkupExtensionWrapperAttribute; if(markupExtensionWrapperAttribute != null) { wrapper = MarkupExtensionWrapper.CreateWrapper(markupExtensionWrapperAttribute.MarkupExtensionWrapperType, this); } else { wrapper = MarkupExtensionWrapper.TryCreateWrapper(Instance.GetType(), this); } } }