예제 #1
0
        public MainWindow(MainWindowViewModel viewModel)
            : this()
        {
            viewModel.Photos.CollectionChanged += Photos_CollectionChanged;

            WireUIElementForDragAndDrop(this.image1, p => { return IsInBounds(p); });
            WireUIElementForDragAndDrop(this.image2, p => { return IsInBounds(p); });

            output.TextChanged += output_TextChanged;
        }
예제 #2
0
파일: App.xaml.cs 프로젝트: pdoh00/Sandbox
        protected override void OnStartup(StartupEventArgs e)
        {
            var mainWinViewModel = new MainWindowViewModel();
            var mainWid = new MainWindow(mainWinViewModel);

            //var img = new Image()
            //{
            //    Source = new BitmapImage(new Uri(@"C:\Users\phil.SONOCINE\Pictures\image001.png"))
            //};
            //mainWinViewModel.Photos.Add(img);

            mainWid.Show();
        }