예제 #1
0
        public DicomPanelView()
        {
            InitializeComponent();
            DicomPanelViewModel vm = (DicomPanelViewModel)DataContext;

            vm.Canvas = OverlayCanvas;
            vm.OnSizeChanged(this.ActualWidth, this.ActualHeight);
            this.Loaded += DicomPanelView_Loaded;

            this.SizeChanged += WorldViewControl_SizeChanged;
        }
예제 #2
0
        private void DicomPanelView_Loaded(object sender, RoutedEventArgs e)
        {
            DicomPanelViewModel vm = (DicomPanelViewModel)DataContext;

            vm.OnSizeChanged(this.ActualWidth, this.ActualHeight);
        }