Click here to Skip to main content
15,881,882 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF - Sync Combox Pin
Kevin Marois12-Jan-13 15:19
professionalKevin Marois12-Jan-13 15:19 
AnswerRe: WPF - Sync Combox Pin
Mycroft Holmes13-Jan-13 0:50
professionalMycroft Holmes13-Jan-13 0:50 
GeneralRe: WPF - Sync Combox Pin
Kevin Marois13-Jan-13 17:24
professionalKevin Marois13-Jan-13 17:24 
GeneralRe: WPF - Sync Combox Pin
Mycroft Holmes14-Jan-13 0:11
professionalMycroft Holmes14-Jan-13 0:11 
GeneralRe: WPF - Sync Combox Pin
Kevin Marois14-Jan-13 5:25
professionalKevin Marois14-Jan-13 5:25 
GeneralRe: WPF - Sync Combox Pin
SledgeHammer0114-Jan-13 9:34
SledgeHammer0114-Jan-13 9:34 
GeneralRe: WPF - Sync Combox Pin
Kevin Marois23-Jan-13 17:41
professionalKevin Marois23-Jan-13 17:41 
QuestionStyle From Resource File Not Being Applied Pin
Kevin Marois12-Jan-13 10:20
professionalKevin 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 Pin
Richard MacCutchan12-Jan-13 23:44
mveRichard MacCutchan12-Jan-13 23:44 
GeneralRe: Style From Resource File Not Being Applied Pin
Mycroft Holmes13-Jan-13 0:45
professionalMycroft Holmes13-Jan-13 0:45 
GeneralRe: Style From Resource File Not Being Applied Pin
Richard MacCutchan13-Jan-13 1:24
mveRichard MacCutchan13-Jan-13 1:24 
GeneralRe: Style From Resource File Not Being Applied Pin
Kevin Marois13-Jan-13 10:58
professionalKevin Marois13-Jan-13 10:58 
QuestionRoutedEvent vs AttachedEvent - Syntax difference only? Confused Pin
devvvy9-Jan-13 20:05
devvvy9-Jan-13 20:05 
QuestionHow to play an Audio File After another has Finished in WPF MediaElement Pin
Vimalsoft(Pty) Ltd4-Jan-13 3:58
professionalVimalsoft(Pty) Ltd4-Jan-13 3:58 
AnswerRe: How to play an Audio File After another has Finished in WPF MediaElement Pin
Pete O'Hanlon4-Jan-13 4:13
mvePete O'Hanlon4-Jan-13 4:13 
GeneralRe: How to play an Audio File After another has Finished in WPF MediaElement Pin
Vimalsoft(Pty) Ltd4-Jan-13 6:08
professionalVimalsoft(Pty) Ltd4-Jan-13 6:08 
QuestionWPF tutorial book website pdf Pin
David C# Hobbyist.1-Jan-13 10:44
professionalDavid C# Hobbyist.1-Jan-13 10:44 
AnswerRe: WPF tutorial book website pdf Pin
Richard MacCutchan1-Jan-13 22:31
mveRichard MacCutchan1-Jan-13 22:31 
GeneralRe: WPF tutorial book website pdf Pin
David C# Hobbyist.2-Jan-13 1:47
professionalDavid C# Hobbyist.2-Jan-13 1:47 
GeneralRe: WPF tutorial book website pdf Pin
Pete O'Hanlon2-Jan-13 5:48
mvePete O'Hanlon2-Jan-13 5:48 
GeneralRe: WPF tutorial book website pdf Pin
Richard MacCutchan2-Jan-13 6:09
mveRichard MacCutchan2-Jan-13 6:09 
GeneralRe: WPF tutorial book website pdf Pin
Pete O'Hanlon2-Jan-13 6:10
mvePete O'Hanlon2-Jan-13 6:10 
AnswerRe: WPF tutorial book website pdf Pin
Abhinav S2-Jan-13 2:21
Abhinav S2-Jan-13 2:21 
GeneralRe: WPF tutorial book website pdf Pin
David C# Hobbyist.2-Jan-13 7:08
professionalDavid C# Hobbyist.2-Jan-13 7:08 
AnswerRe: WPF tutorial book website pdf Pin
Fernando E. Braz2-Jan-13 5:15
Fernando E. Braz2-Jan-13 5: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.