Is it possible to bind a DynamicResource of clr:string to another source instead of literal?
- 阅读更多 关于 Is it possible to bind a DynamicResource of clr:string to another source instead of literal?
问题 <Window x:Class="WpfTutorialSamples.WPF_Application.ResourceSample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib"> <Window.Resources> <sys:String x:Key="centralRes">Hello, world!</sys:String> </Window.Resources> <StackPanel Margin="10"> <TextBox Name="src" /> <TextBlock Name="dst" Text="{DynamicResource centralRes}" FontSize="56" /> </StackPanel> </Window> I am just