Click here to Skip to main content
13,297,547 members (48,470 online)

Silverlight / WPF

 
QuestionWPF - Sync Combox Pin
Kevin Marois12-Jan-13 16:19
memberKevin Marois12-Jan-13 16:19 
AnswerRe: WPF - Sync Combox Pin
Mycroft Holmes13-Jan-13 1:50
memberMycroft Holmes13-Jan-13 1:50 
GeneralRe: WPF - Sync Combox Pin
Kevin Marois13-Jan-13 18:24
memberKevin Marois13-Jan-13 18:24 
GeneralRe: WPF - Sync Combox Pin
Mycroft Holmes14-Jan-13 1:11
memberMycroft Holmes14-Jan-13 1:11 
GeneralRe: WPF - Sync Combox Pin
Kevin Marois14-Jan-13 6:25
memberKevin Marois14-Jan-13 6:25 
GeneralRe: WPF - Sync Combox Pin
SledgeHammer0114-Jan-13 10:34
memberSledgeHammer0114-Jan-13 10:34 
GeneralRe: WPF - Sync Combox Pin
Kevin Marois23-Jan-13 18:41
memberKevin Marois23-Jan-13 18:41 
QuestionStyle From Resource File Not Being Applied Pin
Kevin Marois12-Jan-13 11:20
memberKevin Marois12-Jan-13 11: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 Pin
Richard MacCutchan13-Jan-13 0:44
mvpRichard MacCutchan13-Jan-13 0:44 
GeneralRe: Style From Resource File Not Being Applied Pin
Mycroft Holmes13-Jan-13 1:45
memberMycroft Holmes13-Jan-13 1:45 
GeneralRe: Style From Resource File Not Being Applied Pin
Richard MacCutchan13-Jan-13 2:24
mvpRichard MacCutchan13-Jan-13 2:24 
GeneralRe: Style From Resource File Not Being Applied Pin
Kevin Marois13-Jan-13 11:58
memberKevin Marois13-Jan-13 11:58 
QuestionRoutedEvent vs AttachedEvent - Syntax difference only? Confused Pin
devvvy9-Jan-13 21:05
memberdevvvy9-Jan-13 21:05 
QuestionHow to play an Audio File After another has Finished in WPF MediaElement Pin
Vuyiswa Maseko4-Jan-13 4:58
memberVuyiswa Maseko4-Jan-13 4:58 
AnswerRe: How to play an Audio File After another has Finished in WPF MediaElement Pin
Pete O'Hanlon4-Jan-13 5:13
protectorPete O'Hanlon4-Jan-13 5:13 
GeneralRe: How to play an Audio File After another has Finished in WPF MediaElement Pin
Vuyiswa Maseko4-Jan-13 7:08
memberVuyiswa Maseko4-Jan-13 7:08 
QuestionWPF tutorial book website pdf Pin
frazzle-me1-Jan-13 11:44
memberfrazzle-me1-Jan-13 11:44 
AnswerRe: WPF tutorial book website pdf Pin
Richard MacCutchan1-Jan-13 23:31
mvpRichard MacCutchan1-Jan-13 23:31 
GeneralRe: WPF tutorial book website pdf Pin
frazzle-me2-Jan-13 2:47
memberfrazzle-me2-Jan-13 2:47 
GeneralRe: WPF tutorial book website pdf Pin
Pete O'Hanlon2-Jan-13 6:48
protectorPete O'Hanlon2-Jan-13 6:48 
GeneralRe: WPF tutorial book website pdf Pin
Richard MacCutchan2-Jan-13 7:09
mvpRichard MacCutchan2-Jan-13 7:09 
GeneralRe: WPF tutorial book website pdf Pin
Pete O'Hanlon2-Jan-13 7:10
protectorPete O'Hanlon2-Jan-13 7:10 
AnswerRe: WPF tutorial book website pdf Pin
Abhinav S2-Jan-13 3:21
mvpAbhinav S2-Jan-13 3:21 
GeneralRe: WPF tutorial book website pdf Pin
frazzle-me2-Jan-13 8:08
memberfrazzle-me2-Jan-13 8:08 
AnswerRe: WPF tutorial book website pdf Pin
Fernando E. Braz2-Jan-13 6:15
memberFernando E. Braz2-Jan-13 6:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 |
Web03 | 2.8.171207.1 | Last Updated 14 Dec 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid