mercredi 14 mai 2014

How to bind a value in XAML to applications Properties.Settings values


Vote count:

0




Here is what I am currently trying to do with no success:



<Application x:Class="ApplicationName"
xmlns="http://ift.tt/o66D3f"
xmlns:x="http://ift.tt/mPTqtT"
xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:pr="clr-namespace:ApplicationName.Properties"
StartupUri="MainWindow.xaml">

<Application.Resources>

<!--Control colors.-->

<SolidColorBrush x:Key="ThemeSolidColorBrushBlue" Color="{Binding Source={Static pr:Settings.Default}, Path=ThemeColorBlue}"/>
</Application.Resources>


But this fails saying that the type Static is not found. What am I missing here?



asked 30 secs ago






Aucun commentaire:

Enregistrer un commentaire