I have a problem with VS2010 and version 4 framework with raster effects. If I have the code below and run it in a WPF application using the .NET Framework 4 client profile, the bitmap effect will not appear. If I installed the frame version in the .NET Framework 3.5 client profile (and did not change the code), it will work as expected. At first I thought it was a problem in my application, but I deleted the code and put it in a separate standalone application, and it behaves the same. Does anyone else check that the same problem is happening?
What's going on here?
The version 4 structure in VS2010 simply ignores the effect of the bitmap.
<Window.Resources> <Style x:Key="SectionHeaderTextBlockStyle" TargetType="{x:Type TextBlock}"> <Setter Property="FontFamily" Value="Segoe UI"/> <Setter Property="FontSize" Value="18"/> <Setter Property="FontWeight" Value="Bold"/> <Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="Foreground" Value="LightGreen"/> <Setter Property="BitmapEffect"> <Setter.Value> <OuterGlowBitmapEffect GlowColor="Black" GlowSize="3" /> </Setter.Value> </Setter> </Style> </Window.Resources> <Grid VerticalAlignment="Center" HorizontalAlignment="Center"> <TextBlock Text="Contact Details" Style="{DynamicResource SectionHeaderTextBlockStyle}"/> </Grid>
source share