WPF整理--动态绑定到Logical Resource
原文: WPF整理--动态绑定到Logical Resource “What happens if we replace aspecific resource? Would that be reflected in all objects using the resource? And if not, can webind to the resource dynamically?” 接上篇博文,如果我们需要在C#代码中动态替换某个logical resource,我们该如何做呢? 如,Window的Resources属性赋值如下: <Window x:Class="DynamicallyBindingToALogicalResource.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="52...
