コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ItemContainerGenerator"/> class.
        /// </summary>
        /// <param name="owner">The <see cref="ItemsControl"/> that owns this generator.</param>
        internal ItemContainerGenerator(ItemsControl owner)
        {
            Contract.Require(owner, "owner");

            this.owner = owner;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ItemCollection"/> class.
        /// </summary>
        /// <param name="owner">The <see cref="ItemsControl"/> that owns the collection.</param>
        public ItemCollection(ItemsControl owner)
        {
            Contract.Require(owner, "owner");

            this.owner = owner;
        }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ItemContainerGenerator"/> class.
        /// </summary>
        /// <param name="owner">The <see cref="ItemsControl"/> that owns this generator.</param>
        internal ItemContainerGenerator(ItemsControl owner)
        {
            Contract.Require(owner, nameof(owner));

            this.owner = owner;
        }