Click here to Skip to main content
15,902,275 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Custom classes in XAML - Assign properties after parents set Pin
Ian Shlasko4-Aug-09 15:57
Ian Shlasko4-Aug-09 15:57 
QuestionHow can I cache data in WPF application? Pin
Kunal Chowdhury «IN»3-Aug-09 1:06
professionalKunal Chowdhury «IN»3-Aug-09 1:06 
AnswerRe: How can I cache data in WPF application? Pin
Pete O'Hanlon3-Aug-09 1:32
mvePete O'Hanlon3-Aug-09 1:32 
AnswerRe: How can I cache data in WPF application? Pin
Kunal Chowdhury «IN»3-Aug-09 2:43
professionalKunal Chowdhury «IN»3-Aug-09 2:43 
QuestionHow to Give Header in multicolunm TreeView and also implement sorting algo? Pin
sachinjadhavcm2-Aug-09 23:54
sachinjadhavcm2-Aug-09 23:54 
QuestionAdjusting Panels in WPF programatically ? Pin
Krishna Aditya2-Aug-09 20:31
Krishna Aditya2-Aug-09 20:31 
AnswerRe: Adjusting Panels in WPF programatically ? Pin
Christian Graus2-Aug-09 22:02
protectorChristian Graus2-Aug-09 22:02 
QuestionGlobal Styles - Update Pin
#realJSOP2-Aug-09 1:02
professional#realJSOP2-Aug-09 1:02 
Okay, I found out what's eating my (non-keyed) global style. I had this in my app.xaml (my global textbox style is in Styles.xaml):

<ResourceDictionary Source="/PresentationFramework.Aero;V3.0.0.0;31bf3856ad364e35;component/themes/aero.normalcolor.xaml" >
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/WpfTest;component/Dictionaries/Resources.xaml" />
        <ResourceDictionary Source="/WpfTest;component/Dictionaries/Styles.xaml" />
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>


When I changed it to this, all of a sudden my style started to work as expected:

<ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/WpfTest;component/Dictionaries/Resources.xaml" />
        <ResourceDictionary Source="/WpfTest;component/Dictionaries/Styles.xaml" />
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>


0) Why does this work like this? Is it a bug or "as designed"?

1) The reason I was adding the aero.normalcolor resource dictionary was to force XP to use the aero theme. How do I force the aero look and still be able to use my own global style overrides? Can I do this and get the same results?

<ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/PresentationFramework.Aero;V3.0.0.0;31bf3856ad364e35;component/themes/aero.normalcolor.xaml" />
        <ResourceDictionary Source="/WpfTest;component/Dictionaries/Resources.xaml" />
        <ResourceDictionary Source="/WpfTest;component/Dictionaries/Styles.xaml" />
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>



"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


QuestionHow to display a document in silverlight? Pin
CBenac31-Jul-09 14:27
CBenac31-Jul-09 14:27 
AnswerRe: How to display a document in silverlight? Pin
Michael Sync31-Jul-09 18:21
Michael Sync31-Jul-09 18:21 
QuestionUse Themes? Pin
#realJSOP31-Jul-09 1:09
professional#realJSOP31-Jul-09 1:09 
AnswerRe: Use Themes? Pin
Super Lloyd31-Jul-09 1:52
Super Lloyd31-Jul-09 1:52 
AnswerRe: Use Themes? Pin
Pete O'Hanlon31-Jul-09 1:53
mvePete O'Hanlon31-Jul-09 1:53 
QuestionHow to add silverlight. Pin
Blikkies30-Jul-09 21:20
professionalBlikkies30-Jul-09 21:20 
AnswerRe: How to add silverlight. Pin
Mark Salsbery31-Jul-09 5:08
Mark Salsbery31-Jul-09 5:08 
GeneralRe: How to add silverlight. Pin
Blikkies2-Aug-09 8:17
professionalBlikkies2-Aug-09 8:17 
QuestionUse XAML file as vector image Pin
Jack Valmadre30-Jul-09 12:01
Jack Valmadre30-Jul-09 12:01 
AnswerRe: Use XAML file as vector image Pin
Christian Graus30-Jul-09 13:57
protectorChristian Graus30-Jul-09 13:57 
QuestionHow to define windows property in resourcedictionary Pin
vidster30-Jul-09 3:23
vidster30-Jul-09 3:23 
AnswerRe: How to define windows property in resourcedictionary Pin
Pete O'Hanlon30-Jul-09 4:35
mvePete O'Hanlon30-Jul-09 4:35 
GeneralRe: How to define windows property in resourcedictionary [modified] Pin
vidster30-Jul-09 5:37
vidster30-Jul-09 5:37 
GeneralRe: How to define windows property in resourcedictionary Pin
Pete O'Hanlon30-Jul-09 8:46
mvePete O'Hanlon30-Jul-09 8:46 
GeneralRe: How to define windows property in resourcedictionary Pin
vidster30-Jul-09 23:21
vidster30-Jul-09 23:21 
GeneralRe: How to define windows property in resourcedictionary Pin
Pete O'Hanlon31-Jul-09 1:08
mvePete O'Hanlon31-Jul-09 1:08 
GeneralRe: How to define windows property in resourcedictionary Pin
vidster31-Jul-09 1:18
vidster31-Jul-09 1:18 

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.