Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CS :
public static class NavigationManager { public static bool IsSomethingSomething{ get{ return true;}} }
这是否以任何方式可绑定(当然是一种方式)?
尝试这个 :
xmlns:local="clr-namespace:WpfApplication1" "{x:Static local:YourClass.YourProperty}"
例如 :
<Button Content="{x:Static local:Constants.ConstantString}" />