Click here to Skip to main content
       

Silverlight / WPF

 
QuestionWPF - Sync Combox [modified] PinmemberKevin Marois12-Jan-13 15:19 
AnswerRe: WPF - Sync Combox PinmemberMycroft Holmes13-Jan-13 0:50 
GeneralRe: WPF - Sync Combox PinmemberKevin Marois13-Jan-13 17:24 
GeneralRe: WPF - Sync Combox PinmemberMycroft Holmes14-Jan-13 0:11 
GeneralRe: WPF - Sync Combox PinmemberKevin Marois14-Jan-13 5:25 
GeneralRe: WPF - Sync Combox PinmemberSledgeHammer0114-Jan-13 9:34 
GeneralRe: WPF - Sync Combox PinmemberKevin Marois23-Jan-13 17:41 
QuestionStyle From Resource File Not Being Applied PinmemberKevin Marois12-Jan-13 10:20 
In my resource file I have:
 
    <!--*************************************************************************
    * COLORS & BRUSHES
    ************************************************************************-->
    <Color x:Key="TextForeColor">Black</Color>
 
    <SolidColorBrush x:Key="TextForeColorBrush"
                     Color="{StaticResource TextForeColor}"/>
    <!--*************************************************************************
    * BASE STYLES
    ************************************************************************-->
 
    <Style x:Key="BaseTextBlockStyle" 
           TargetType="TextBlock">
        <Setter Property="FontSize" Value="12" />
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="Foreground" Value="{StaticResource TextForeColorBrush}"/>
        <Setter Property="FontStyle" Value="Normal"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="HorizontalAlignment" Value="Center" />
    </Style>
 
    <Style x:Key="TextBlockStyle"
           TargetType="TextBlock"
           BasedOn="{StaticResource BaseTextBlockStyle}">
        <Setter Property="Foreground" Value="{StaticResource DataEnteryTextBlockForeColorBrush}"/>
    </Style>
 
    <Style x:Ke
 
Then in a view I have:
 
<UserControl.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="..\Resources.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</UserControl.Resources>    
    
 
and
 
     <!--Job Header Area-->
        <GroupBox Header=" Job Information "
                  Grid.Row="0"
                  BorderBrush="SteelBlue"
                  Background="#E2F4FF"
                  Foreground="SteelBlue"
                  Height="100"
                  Margin="5"
                  FontSize="14"
                  FontStyle="Italic"
                  FontWeight="Bold">
 
            <Grid>
         
                <!--Job Number-->
                <TextBlock Text="Job #: "
                           Grid.Row="0"
                           Grid.Column="0"
                           Style="{StaticResource TextBlockStyle}"
                           Margin="5,2,2,5"/>
                <TextBlock Text="2013-0001"
                           Grid.Row="0"
                           Grid.Column="1"
                           MinWidth="55"
                           Style="{StaticResource TextBlockDataDisplayStyle}"
                           Margin="5,2,2,5"/>
 
The style on the groupbox is being applied to the TextBlocks and TextBoxes.
 
The style, color, and brush names are all correct.
 
Anyone see what Im doing wrong?
 
Thanks
If it's not broken, fix it until it is

AnswerRe: Style From Resource File Not Being Applied PinmvpRichard MacCutchan12-Jan-13 23:44 
GeneralRe: Style From Resource File Not Being Applied PinmemberMycroft Holmes13-Jan-13 0:45 
GeneralRe: Style From Resource File Not Being Applied PinmvpRichard MacCutchan13-Jan-13 1:24 
GeneralRe: Style From Resource File Not Being Applied PinmemberKevin Marois13-Jan-13 10:58 
QuestionRoutedEvent vs AttachedEvent - Syntax difference only? Confused [modified] Pinmemberdevvvy9-Jan-13 20:05 
QuestionHow to play an Audio File After another has Finished in WPF MediaElement PinmemberVuyiswa Maseko4-Jan-13 3:58 
AnswerRe: How to play an Audio File After another has Finished in WPF MediaElement PinprotectorPete O'Hanlon4-Jan-13 4:13 
GeneralRe: How to play an Audio File After another has Finished in WPF MediaElement PinmemberVuyiswa Maseko4-Jan-13 6:08 
QuestionWPF tutorial book website pdf Pinmemberfrazzle-me1-Jan-13 10:44 
AnswerRe: WPF tutorial book website pdf PinmvpRichard MacCutchan1-Jan-13 22:31 
GeneralRe: WPF tutorial book website pdf Pinmemberfrazzle-me2-Jan-13 1:47 
GeneralRe: WPF tutorial book website pdf PinprotectorPete O'Hanlon2-Jan-13 5:48 
GeneralRe: WPF tutorial book website pdf PinmvpRichard MacCutchan2-Jan-13 6:09 
GeneralRe: WPF tutorial book website pdf PinprotectorPete O'Hanlon2-Jan-13 6:10 
AnswerRe: WPF tutorial book website pdf PinmvpAbhinav S2-Jan-13 2:21 
GeneralRe: WPF tutorial book website pdf Pinmemberfrazzle-me2-Jan-13 7:08 
AnswerRe: WPF tutorial book website pdf PinmemberFernando E. Braz2-Jan-13 5:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 18 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid