Click here to Skip to main content
14,486,454 members

Silverlight / WPF

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder16-Jul-09 3:09
cofounderChris Maunder16-Jul-09 3:09 
PinnedHow to get an answer to your question PinPopular
Chris Maunder16-Jul-09 3:05
cofounderChris Maunder16-Jul-09 3:05 
QuestionDP Firing Order Pin
Kevin Marois2hrs 26mins ago
professionalKevin Marois2hrs 26mins ago 
QuestionHow can a class from a class library manipulate XAML/UI Pin
httitb6hrs 37mins ago
Memberhttitb6hrs 37mins ago 
AnswerRe: How can a class from a class library manipulate XAML/UI Pin
Gerry Schmitz1 hr 50mins ago
mveGerry Schmitz1 hr 50mins ago 
GeneralRe: How can a class from a class library manipulate XAML/UI Pin
httitb1 hr 38mins ago
Memberhttitb1 hr 38mins ago 
QuestionPrism doesn't load all modules in the ModulePath Pin
hapy71018-Mar-20 16:39
Memberhapy71018-Mar-20 16:39 
QuestionInstaller Project Problem Pin
Kevin Marois13-Mar-20 13:08
professionalKevin Marois13-Mar-20 13:08 
AnswerRe: Installer Project Problem Pin
Mycroft Holmes14-Mar-20 12:17
professionalMycroft Holmes14-Mar-20 12:17 
GeneralRe: Installer Project Problem Pin
Kevin Marois16-Mar-20 6:36
professionalKevin Marois16-Mar-20 6:36 
AnswerRe: Installer Project Problem Pin
Richard Deeming16-Mar-20 9:37
mveRichard Deeming16-Mar-20 9:37 
GeneralRe: Installer Project Problem Pin
Kevin Marois16-Mar-20 10:57
professionalKevin Marois16-Mar-20 10:57 
GeneralRe: Installer Project Problem Pin
Mycroft Holmes16-Mar-20 11:05
professionalMycroft Holmes16-Mar-20 11:05 
QuestionAForge VideoSourcePlayer Pin
Kevin Marois11-Mar-20 13:56
professionalKevin Marois11-Mar-20 13:56 
QuestionTextBox DynamicResource Not Working Pin
Kevin Marois19-Feb-20 8:39
professionalKevin Marois19-Feb-20 8:39 
I copied the TextBox template from here into my resources. I just want to study it and see how things work, and the TextBox seems simple enough.

I created a a CustomControl of type TextBox called TextBoxEx. I pasted the style into the Generic.xml in the Themes folder, and it doesn't work.

With this code line of in the CTOR, the Border doesn't show up.
public class TextBoxEx : TextBox
{
    static TextBoxEx()
    {
        DefaultStyleKeyProperty.OverrideMetadata(typeof(TextBoxEx), new FrameworkPropertyMetadata(typeof(TextBoxEx)));
    }
}
If I comment the line out, the border appears.

if go into the style and change
<Border.BorderBrush>
    <SolidColorBrush Color="{DynamicResource BorderMediumColor}" />
</Border.BorderBrush>
to a StaticResource
<Border.BorderBrush>
    <SolidColorBrush Color="{StaticResource BorderMediumColor}" />
</Border.BorderBrush>
Then it works ok.

What's going on here?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

QuestionDock DataGrid's column to the right Pin
Mc_Topaz9-Feb-20 21:46
MemberMc_Topaz9-Feb-20 21:46 
AnswerRe: Dock DataGrid's column to the right Pin
Gerry Schmitz10-Feb-20 2:33
mveGerry Schmitz10-Feb-20 2:33 
AnswerRe: Dock DataGrid's column to the right Pin
Richard Deeming10-Feb-20 8:55
mveRichard Deeming10-Feb-20 8:55 
GeneralRe: Dock DataGrid's column to the right Pin
Mc_Topaz10-Feb-20 21:24
MemberMc_Topaz10-Feb-20 21:24 
Question[WPF] Datagrid With Dynamic column Pin
mjaniaut4-Feb-20 19:57
Membermjaniaut4-Feb-20 19:57 
AnswerRe: [WPF] Datagrid With Dynamic column Pin
Gerry Schmitz4-Feb-20 21:21
mveGerry Schmitz4-Feb-20 21:21 
AnswerRe: [WPF] Datagrid With Dynamic column Pin
Richard Deeming5-Feb-20 0:48
mveRichard Deeming5-Feb-20 0:48 
QuestionIm new bie help me fix 1 erorr on wpf, i cant do it? Pin
Member 1468037212-Jan-20 16:07
MemberMember 1468037212-Jan-20 16:07 
GeneralRe: Im new bie help me fix 1 erorr on wpf, i cant do it? Pin
Richard MacCutchan12-Jan-20 22:12
mveRichard MacCutchan12-Jan-20 22:12 
AnswerRe: Im new bie help me fix 1 erorr on wpf, i cant do it? Pin
ZurdoDev13-Jan-20 1:07
mveZurdoDev13-Jan-20 1:07 

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.