コード例 #1
0
ファイル: Element.cs プロジェクト: typehm/Xamarin.Forms
        protected virtual void OnChildAdded(Element child)
        {
            child.Parent = this;

            child.ApplyBindings(skipBindingContext: false, fromBindingContextChanged: true);

            ChildAdded?.Invoke(this, new ElementEventArgs(child));

            OnDescendantAdded(child);
            foreach (Element element in child.Descendants())
            {
                OnDescendantAdded(element);
            }
        }
コード例 #2
0
ファイル: Element.cs プロジェクト: zxyang178/Xamarin.Forms
        protected virtual void OnChildAdded(Element child)
        {
            child.Parent = this;
            if (Platform != null)
            {
                child.Platform = Platform;
            }

            child.ApplyBindings();

            if (ChildAdded != null)
            {
                ChildAdded(this, new ElementEventArgs(child));
            }

            OnDescendantAdded(child);
            foreach (Element element in child.Descendants())
            {
                OnDescendantAdded(element);
            }
        }
コード例 #3
0
ファイル: Element.cs プロジェクト: Costo/Xamarin.Forms
		protected virtual void OnChildAdded(Element child)
		{
			child.Parent = this;
			if (Platform != null)
				child.Platform = Platform;

			child.ApplyBindings();

			if (ChildAdded != null)
				ChildAdded(this, new ElementEventArgs(child));

			OnDescendantAdded(child);
			foreach (Element element in child.Descendants())
				OnDescendantAdded(element);
		}