private static object FindByNameControlMember(IBindingMemberInfo bindingMemberInfo, Control control, object[] arg3)
        {
            var root = PlatformExtensions.GetRootControl(control);

            if (root != null)
            {
                control = root;
            }
            return(control.Controls.Find((string)arg3[0], true).FirstOrDefault());
        }
Ejemplo n.º 2
0
        private static void AddTemplate(ResourceDictionary dictionary, Type type)
        {
            if (!typeof(IViewModel).IsAssignableFrom(type))
            {
                return;
            }

            DataTemplate dataTemplate = PlatformExtensions.DefaultViewModelTemplateFactory(type);

            if (dataTemplate != null && SetItem(dictionary, new DataTemplateKey(type), dataTemplate))
            {
                Tracer.Info("The DataTemplate with key type {0} was added.", type);
            }
        }