/// <summary>
        /// Called when content is changed. This is a good place to get the style (which depends on the LLMS layout)
        /// because the controll template has not yet been expanded
        /// </summary>
        /// <param name="oldContent"></param>
        /// <param name="newContent"></param>
        protected override void OnContentChanged(object oldContent, object newContent)
        {
            LongListMultiSelector llms = FindContainer(this);

            if (llms != null)
            {
                llms.ConfigureItem(this);
            }
            base.OnContentChanged(oldContent, newContent);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Called when content is changed. This is a good place to get the style (which depends on the LLMS layout)
        /// because the control template has not yet been expanded.
        /// </summary>
        /// <param name="oldContent"></param>
        /// <param name="newContent"></param>
        protected override void OnContentChanged(object oldContent, object newContent)
        {
            // Finds the LongListMultiSelector to which the LongListMultiSelectorItem belongs
            LongListMultiSelector llms = this.GetParentByType <LongListMultiSelector>();

            if (llms != null)
            {
                llms.ConfigureItem(this);
            }
            base.OnContentChanged(oldContent, newContent);
        }