Esempio n. 1
0
        private static void OnCreateContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ThreadedVisualHost bvh = (ThreadedVisualHost)d;

            if (bvh.IsContentHidden)
            {
                bvh.HideContentHelper();
                if (e.NewValue != null)
                {
                    bvh.CreateContentHelper();
                }
            }
        }
Esempio n. 2
0
        private static void OnIsContentHiddenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ThreadedVisualHost bvh = (ThreadedVisualHost)d;

            if (bvh.CreateContent != null)
            {
                if (!(bool)e.NewValue)
                {
                    bvh.CreateContentHelper();
                }
                else
                {
                    bvh.HideContentHelper();
                }
            }
        }