![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Bug: Opacity modifier doesn't work inside a datatrigger for an Image Hi The following style <Style x:Key="VisaImageStyle" TargetType="{x:Type Control}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Control}"> <Image x:Name="Card" Source="pack://application:,,,/Images/Visa.png" Width="30" Opacity="0.6"/> <ControlTemplate.Triggers> <DataTrigger Binding="{Binding Path=Payment.CardType}" Value="Visa"> <Setter Property="Opacity" Value="1" TargetName="Card"/> <Setter Property="Width" Value="40" TargetName="Card"/> <Setter Property="BitmapEffect" Value="{StaticResource CardShadow}" TargetName="Card"/> </DataTrigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> Will properly add a drop shadow, modify the width of the image, but it will not change the opacity of the image when the trigger is activated. This is on the Feb CTP. Phil |
| | #2 (permalink) |
| Guest | RE: Bug: Opacity modifier doesn't work inside a datatrigger for an Ima Hi Phillipe, Can you remove the BitmapEffect and confirm if this still repros? [There is a bug in Feb CTP that causes opacity to not update when BitmapEffect is applied. This is fixed for the next release (Beta 2) though.] Thanks! Rahul Patil "Philippe Lavoie" wrote: > Hi > > The following style > > <Style x:Key="VisaImageStyle" TargetType="{x:Type Control}"> > <Setter Property="Template"> > <Setter.Value> > <ControlTemplate TargetType="{x:Type Control}"> > <Image x:Name="Card" > Source="pack://application:,,,/Images/Visa.png" Width="30" Opacity="0.6"/> > <ControlTemplate.Triggers> > <DataTrigger Binding="{Binding Path=Payment.CardType}" Value="Visa"> > <Setter Property="Opacity" Value="1" TargetName="Card"/> > <Setter Property="Width" Value="40" TargetName="Card"/> > <Setter Property="BitmapEffect" Value="{StaticResource > CardShadow}" TargetName="Card"/> > </DataTrigger> > </ControlTemplate.Triggers> > </ControlTemplate> > </Setter.Value> > </Setter> > </Style> > > Will properly add a drop shadow, modify the width of the image, but it > will not change the opacity of the image when the trigger is activated. > > This is on the Feb CTP. > > Phil > |
| | #3 (permalink) |
| Guest | Re: Bug: Opacity modifier doesn't work inside a datatrigger for anIma You are correct. Removing the Bitmap effect fixes the problem. Any ideas when Beta 2 will be out the door. Phil Rahul Patil wrote: > Hi Phillipe, > Can you remove the BitmapEffect and confirm if this still repros? > > [There is a bug in Feb CTP that causes opacity to not update when > BitmapEffect is applied. This is fixed for the next release (Beta 2) though.] > > Thanks! > Rahul Patil > > "Philippe Lavoie" wrote: > > >>Hi >> >>The following style >> >><Style x:Key="VisaImageStyle" TargetType="{x:Type Control}"> >> <Setter Property="Template"> >> <Setter.Value> >> <ControlTemplate TargetType="{x:Type Control}"> >> <Image x:Name="Card" >>Source="pack://application:,,,/Images/Visa.png" Width="30" Opacity="0.6"/> >> <ControlTemplate.Triggers> >> <DataTrigger Binding="{Binding Path=Payment.CardType}" Value="Visa"> >> <Setter Property="Opacity" Value="1" TargetName="Card"/> >> <Setter Property="Width" Value="40" TargetName="Card"/> >> <Setter Property="BitmapEffect" Value="{StaticResource >>CardShadow}" TargetName="Card"/> >> </DataTrigger> >> </ControlTemplate.Triggers> >> </ControlTemplate> >> </Setter.Value> >> </Setter> >></Style> >> >>Will properly add a drop shadow, modify the width of the image, but it >>will not change the opacity of the image when the trigger is activated. >> >>This is on the Feb CTP. >> >>Phil >> |
| | #4 (permalink) |
| Guest | Re: Bug: Opacity modifier doesn't work inside a datatrigger for an We are working on getting it out the door, the dates are not finalized though (sorry ).Thanks! Rahul Patil. "Philippe Lavoie" wrote: > You are correct. Removing the Bitmap effect fixes the problem. Any ideas > when Beta 2 will be out the door. > > Phil > > Rahul Patil wrote: > > Hi Phillipe, > > Can you remove the BitmapEffect and confirm if this still repros? > > > > [There is a bug in Feb CTP that causes opacity to not update when > > BitmapEffect is applied. This is fixed for the next release (Beta 2) though.] > > > > Thanks! > > Rahul Patil > > > > "Philippe Lavoie" wrote: > > > > > >>Hi > >> > >>The following style > >> > >><Style x:Key="VisaImageStyle" TargetType="{x:Type Control}"> > >> <Setter Property="Template"> > >> <Setter.Value> > >> <ControlTemplate TargetType="{x:Type Control}"> > >> <Image x:Name="Card" > >>Source="pack://application:,,,/Images/Visa.png" Width="30" Opacity="0.6"/> > >> <ControlTemplate.Triggers> > >> <DataTrigger Binding="{Binding Path=Payment.CardType}" Value="Visa"> > >> <Setter Property="Opacity" Value="1" TargetName="Card"/> > >> <Setter Property="Width" Value="40" TargetName="Card"/> > >> <Setter Property="BitmapEffect" Value="{StaticResource > >>CardShadow}" TargetName="Card"/> > >> </DataTrigger> > >> </ControlTemplate.Triggers> > >> </ControlTemplate> > >> </Setter.Value> > >> </Setter> > >></Style> > >> > >>Will properly add a drop shadow, modify the width of the image, but it > >>will not change the opacity of the image when the trigger is activated. > >> > >>This is on the Feb CTP. > >> > >>Phil > >> > |
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sidebar opacity | Peter O. | Vista General | 3 | 05-22-2008 04:21 PM |
| Modifier keys show up as tooltips on monitor | LPent | Vista General | 0 | 05-13-2008 11:17 AM |
| DataTrigger problem | Rob Hill | Avalon | 0 | 03-01-2008 01:53 PM |
| Sidebar opacity | dev | Vista General | 4 | 05-14-2007 08:25 AM |
| DataTrigger non Equal Value | Arran Pearce | Avalon | 0 | 04-12-2006 06:23 AM |