Exemplo n.º 1
0
        private static void ScaleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Thumbnail thumbnail = d as Thumbnail;

            if (thumbnail != null)
            {
                thumbnail.UpdateLayoutInternal();
            }
        }
Exemplo n.º 2
0
        private static void ClientAreaOnlyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Thumbnail thumbnail = d as Thumbnail;

            if (thumbnail != null)
            {
                thumbnail.ResetDrawnRegion();
                thumbnail.UpdateLayoutInternal();
            }
        }