TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Manu xaml
NA
19
0
Hiding Label based on tag value
May 21 2009 5:16 PM
I am trying to hide a label based on its value = N/A as passed into the tag. Does not seem to work any advice?
<Grid>
<Grid.Resources>
<Style TargetType="{x:Type Label}" x:Key="LabelTextStyle">
<Style.Triggers>
<Trigger Property="Tag" Value="N/A">
<Setter Property="Visibility" Value="Hidden"/>
<Setter Property="Background" Value="Blue"/>
<Setter Property="FontFamily" Value="Trebuchet MS"/>
<Setter Property="FontSize" Value="18"/>
</Trigger>
</Style.Triggers>
</Style>
</Grid.Resources>
<Label Style="{StaticResource LabelTextStyle}" FontSize="14" Tag="{Binding Path=lblCOO}" FontWeight="Bold" Foreground="#FFF9F7F7" Margin="23,9,59,36" Name="lblCOO" Grid.Column="3" Grid.Row="1"></Label>
</Grid>
Reply
Answers (
0
)
sql date
Single window / Multiple UIs