예제 #1
0
        private static void ScaleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Thumbnail thumbnail = d as Thumbnail;

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

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