Moving MainWindow.xaml

后端 未结 2 1077
有刺的猬
有刺的猬 2021-01-07 18:28

I\'ve built a WPF app, which completely works now. However, to clean it up a bit I wish to move my MainWindow.xaml to the view folder I\'ve created. After I\'ve

2条回答
  •  时光说笑
    2021-01-07 19:19

    The answer of @Rohit Vats is quite good!

    However that's a good point to remember: you have to change all the absolute paths (in XAML) to your resources, prepending them by a / in order to indicate that these paths are relative to the root directory.


    Example:

    From

    To and so on.

提交回复
热议问题