Wpf 如何使用Caliburn Micro将视图/视图模型绑定到Properties.Settings.Default?
是否可以将视图直接绑定到Properties.settings.Default中的设置?或者我需要创建具有相同名称的属性并手动刷新值?尝试以下操作:Wpf 如何使用Caliburn Micro将视图/视图模型绑定到Properties.Settings.Default?,wpf,caliburn.micro,Wpf,Caliburn.micro,是否可以将视图直接绑定到Properties.settings.Default中的设置?或者我需要创建具有相同名称的属性并手动刷新值?尝试以下操作: <Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Properties="clr-namespace:WpfApplication1.Properties" Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<Label Content="{Binding Source={x:Static Properties:Settings.Default}, Path=BrandOfBeerOfChoice}"/>
</Grid>
</Window>
在这个小应用程序中,我创建了一个名为BrandOfBeerOfChoice
的设置条目