Skip to content

Commit

Permalink
Add commented out background image
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari committed Sep 24, 2024
1 parent d5ca8e7 commit 099173b
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Reactive.Disposables;
using Avalonia.Media;
using Avalonia.ReactiveUI;
using ReactiveUI;

Expand All @@ -12,6 +13,15 @@ public CollectionDownloadView()

this.WhenActivated(d =>
{

// Uncomment this to enable the background image
/*
this.WhenAnyValue(view => view.ViewModel!.BackgroundImage)
.WhereNotNull()
.SubscribeWithErrorLogging(image => Body.Background = new ImageBrush { Source = image })
.DisposeWith(d);
*/

this.WhenAnyValue(view => view.ViewModel!.TileImage)
.WhereNotNull()
.SubscribeWithErrorLogging(image => Image38.Source = image)
Expand Down

0 comments on commit 099173b

Please sign in to comment.