You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
So I'm trying to implement some new features that I found in the excellent update recently.
I'm trying to implement the adding of a new theme using the 'love' on as a test. Bellow is my complete code for the ResourceDictionary. I've tried it like this <ImageBrush Opacity=".1" ImageSource="/Assets/background.love.jpg" Stretch="UniformToFill" />
and like this <ImageBrush Opacity=".1" ImageSource="/CTaCInformationSystem;component/Assets/background.love.jpg" Stretch="UniformToFill" />
both give me this error: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension during the AppearanceManager.Current.ThemeSource = value.Source; method that is called on line 148 of the AppereanceViewModel.cs. The error put's it right at the Opacity='.1' in the code below.
The images is located in the Assets/background.love.jpg section in the source code.
Found the issue. Needed to set the property of the image to Copy Always in the output directory for the Properties. Wow....that's what you get for self teaching c# 📦
So I'm trying to implement some new features that I found in the excellent update recently.
I'm trying to implement the adding of a new theme using the 'love' on as a test. Bellow is my complete code for the ResourceDictionary. I've tried it like this
<ImageBrush Opacity=".1" ImageSource="/Assets/background.love.jpg" Stretch="UniformToFill" />
and like this
<ImageBrush Opacity=".1" ImageSource="/CTaCInformationSystem;component/Assets/background.love.jpg" Stretch="UniformToFill" />
both give me this error:
Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension
during theAppearanceManager.Current.ThemeSource = value.Source;
method that is called on line 148 of the AppereanceViewModel.cs. The error put's it right at the Opacity='.1' in the code below.The images is located in the Assets/background.love.jpg section in the source code.
Any ideas on how to fix this?
The text was updated successfully, but these errors were encountered: