How can I add LinearGradientBrush
as ContentPage.Background
in App.xaml
's ResourceDictionary
? My code pasted below:
<LinearGradientBrush EndPoint="0,1">
<GradientStop Color="LightBlue"
Offset="0.1" />
<GradientStop Color="DarkBlue"
Offset="1.0" />
</LinearGradientBrush>
As LinearGradientBrush is a preview concept,don't forgget to add below codes in your
App.xaml.cs
.and add below to the
App.xaml
: