Example #1
0
        /// <summary>
        /// Returns the hierarchical <see cref="UniForm">UniForm</see> parent of the
        /// <see cref="System.Windows.FrameworkElement">element</see> or null if none.
        /// Threadsafe.
        /// </summary>
        /// <param name="element">The <see cref="System.Windows.FrameworkElement">FrameworkElement</see></param>
        /// <returns>Parent <see cref="UniForm">UniForm</see> or null.</returns>
        public static UniForm GetUniForm(this System.Windows.FrameworkElement element)
        {
            UniForm ret = null;

            App.Invoke(delegate
            {
                ret = element.UnsafeGetUniForm();
            });
            return(ret);
        }