Superb article and nice explanation
http://visualstudiomagazine.com/articles/2014/08/01/manage-asynchronous-tasks.aspx
http://visualstudiomagazine.com/articles/2014/08/01/manage-asynchronous-tasks.aspx
This blog is primarily a compilation of frequently faced issues by developers with solutions which I have implemented to solve them
<Compile>
element for MyTemplate.cs, and add a <DependentUpon>
element under it:<Compile Include="MyTemplate.cs">
<DependentUpon>MyTemplate.xaml</DependentUpon>
</Compile>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}" Value="True"/>
<Condition Binding="{Binding Path=Model.IsRunning, Mode=OneWay}" Value="false"></Condition>
</MultiDataTrigger.Conditions>
<Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource DarkBrushMouseOver}" />
</MultiDataTrigger>