Jump to content
Music Box Alpha Forums

how do I make a theme for music box


dompod
 Share

Recommended Posts

2 hours ago, Jason Carr said:

@dompod Should be the ContentBackgroundView. I believe if you name the image something different than "Image", you should be able to override what the background image is. :)

it's not working and keep getting errors

can we please communicate using a VoIP service pm me

Link to comment
Share on other sites

  • 4 years later...
On 3/28/2022 at 11:39 PM, Altersphinx said:

I also would like to know how to change background.

Gave it a shot this morning, and while there's probably better ways to do this, here's how you can change the background to a static image:

  • Go into the MusicBoxAlpha\Themes folder and make a copy of the Default theme (call it whatever you'd like)
  • Place your background image into your new theme folder, under Images (example: MusicBoxAlpha\Themes\[My New Theme]\Images), call the image whatever you'd like (in my example below I called it background.jpg)
  • In your new theme folder, go into the Views folder and open the ContentBackgroundView.xaml file in a text editor. Delete the entire Image line, save and close
<Image Name="Image" HorizontalAlignment="{Binding HorizontalAlignment}" VerticalAlignment="{Binding VerticalAlignment}" Stretch="{Binding Stretch}" RenderOptions.BitmapScalingMode="HighQuality" />
  • Now open the MainView.xaml file in a text editor. The first Grid, close to the top will look something like this: <Grid Background="{Binding SolidContentBackgroundBrush}">
  • Delete the background part: Background="{Binding SolidContentBackgroundBrush}"
  • Now you'll want to add the following code just below <Grid>
		<Grid.Background>
			<ImageBrush ImageSource="pack://siteoforigin:,,,/Themes/[My New Theme]/Images/background.jpg" Stretch="UniformToFill" />
		</Grid.Background>
  • Change [My New Theme] to whatever you called your theme
  • Change background.jpg to whatever you called your image
  • In MusicBoxAlpha, go into the Settings and change to your custom theme, and you should now see your static background image.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...