示例#1
0
        private void GoDetailed()
        {
            BeginInit();

            _imageScrollViewer.ScrollToHorizontalOffset(0);
            _imageScrollViewer.ScrollToVerticalOffset(0);

            WindowState = WindowState.Maximized;
            WindowStyle = WindowStyle.SingleBorderWindow;

            _imageScrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
            _imageScrollViewer.VerticalScrollBarVisibility   = ScrollBarVisibility.Auto;

            _imageViewState = ImageViewState.Detailed;
            _image.Source   = _imageFile.GetImage();

            EndInit();
        }