在使用Caliburn.Micro时,是否可以将App.xaml添加回Xamarin.Forms项目?

在使用Caliburn.Micro时,是否可以将App.xaml添加回Xamarin.Forms项目?,xamarin.forms,caliburn.micro,Xamarin.forms,Caliburn.micro,Caliburn.Micro Xamarin.Forms示例(设置和功能都说明了在没有附带App.xaml的情况下使用App.cs 我希望有一个App.xaml文件,这样我就可以将应用程序级别的资源添加到xaml中,这些资源现在应该在Xamarin.Forms中。这可能吗?我该怎么做呢?注意,我以后从来没有添加过一个,这是未经测试的,但应该可以像这样工作 App.xaml后来被引入到Xamarin.Forms包和模板中,可能是因为引入了您所指的应用程序级资源。但基本上,App.xaml与任何其他

Caliburn.Micro Xamarin.Forms示例(设置和功能都说明了在没有附带App.xaml的情况下使用App.cs


我希望有一个App.xaml文件,这样我就可以将应用程序级别的资源添加到xaml中,这些资源现在应该在Xamarin.Forms中。这可能吗?我该怎么做呢?

注意,我以后从来没有添加过一个,这是未经测试的,但应该可以像这样工作

App.xaml
后来被引入到Xamarin.Forms包和模板中,可能是因为引入了您所指的应用程序级资源。但基本上,
App.xaml
与任何其他xaml文件都没有什么不同

添加一个新的App.xaml文件,该文件看起来有点像:

<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="YourNamespace.YourClass">
    <Application.Resources>
        <!-- Application resource dictionary -->
    </Application.Resources>
</Application>

虽然这看起来更好,但并不是绝对必要的。

谢谢……我曾经尝试过类似的方法,但由于某种原因它不起作用。我可能错过了一些东西。我会尽快再试一次,并将报告返回是否有效。谢谢!
<Compile Include="App.xaml.cs">
  <DependentUpon>App.xaml</DependentUpon>
</Compile>