Blending without vomiting Blend

In WPF, it’s great that I have to use {StaticResource MyBackground} instead of “White” in my entire application, and then by changing the resource definitions redefine the look of my entire application.

The problem is that the Expression Blend expression just doesn't work if you have links to global resources in the subcontroller. Is there any other way to theme your application? I don’t want to lose the support of the Blend designer or to replicate the / xaml code snippet in every single control. It seems astounding to me that they have not corrected a mistake of this magnitude.

Any ideas?

Greetings

+3
source share
2 answers

, , . , . , , .:)

Blend :

<DesignTime Condition="'$(SolutionPath)'!='' AND Exists('$(SolutionPath)')">true</DesignTime>

…. 
<ApplicationDefinition Condition="'$(DesignTime)'=='true' AND '$(BuildingInsideVisualStudio)'!='true' AND '$(BuildingInsideExpressionBlend)'!='true'" Include="App.xaml"> 
      <Generator>MSBuild:Compile</Generator> 
      <SubType>Designer</SubType> 
</ApplicationDefinition>

app.xaml , , . , , msbuild , .

+1

All Articles