Im пытается изменить заставку по умолчанию для моего приложения для оркестра. нашел SplashScreen.png, включенный по умолчанию в папку ресурсов/изображений и перезаписал его с моей собственной (такой же ширины и высоты). Заставка не изменилась.Изменение заставки для приложения Catel + Orchestra
Я пошел и посмотрел на код Оркестра и нашел вид SplashScreen. И увидел, что у вас есть местозаполнитель для компании.
<Image Grid.Row="3" Grid.Column="0" Source="{Binding CompanyLogoForSplashScreenUri}" HorizontalAlignment="Left"
Margin="10" VerticalAlignment="Bottom" Stretch="Uniform" Opacity="0.7"
Visibility="{Binding CompanyLogoForSplashScreenUri, Converter={catel:ReferenceToCollapsingVisibilityConverter}}"/>
На модели представления я узнал, конструктор вызывает на IAboutInforService
public SplashScreenViewModel(IAboutInfoService aboutInfoService)
{
Argument.IsNotNull(() => aboutInfoService);
var aboutInfo = aboutInfoService.GetAboutInfo();
CompanyLogoForSplashScreenUri = aboutInfo.CompanyLogoForSplashScreenUri;
}
но свойство CompanyLogoForSplashScreenUri в объекте AboutInfo вернулся из GetAboutInfo всегда нуль. Конструктор никогда не добавляет ссылку на uri.
public AboutInfo GetAboutInfo()
{
var aboutInfo = new AboutInfo(new Uri("pack://application:,,,/Resources/Images/CompanyLogo.png", UriKind.RelativeOrAbsolute));
return aboutInfo;
}
public AboutInfo(Uri companyLogoUri = null, string logoImageSource = null, string url = null, Assembly assembly = null, Uri companyLogoForSplashScreenUri = null)
И что делать, если вы хотите добавить фирму в список брандмауэров?