Click here to Skip to main content
15,569,696 members
Home / Discussions / WPF
   

WPF

 
Questionfast directory infos for a lot of files Pin
pitwi6-Dec-22 3:14
pitwi6-Dec-22 3:14 
AnswerRe: fast directory infos for a lot of files Pin
pitwi6-Dec-22 3:29
pitwi6-Dec-22 3:29 
GeneralRe: fast directory infos for a lot of files Pin
Dave Kreskowiak6-Dec-22 6:40
mveDave Kreskowiak6-Dec-22 6:40 
AnswerRe: fast directory infos for a lot of files Pin
Richard Deeming6-Dec-22 3:51
mveRichard Deeming6-Dec-22 3:51 
GeneralRe: fast directory infos for a lot of files Pin
pitwi6-Dec-22 7:56
pitwi6-Dec-22 7:56 
QuestionCustom Control Styling Pin
Kevin Marois2-Dec-22 9:58
professionalKevin Marois2-Dec-22 9:58 
AnswerRe: Custom Control Styling Pin
Richard Deeming5-Dec-22 1:27
mveRichard Deeming5-Dec-22 1:27 
GeneralRe: Custom Control Styling Pin
Kevin Marois5-Dec-22 13:15
professionalKevin Marois5-Dec-22 13:15 
Thanks. I learned some new things here.

One question -
That DP syntax you used is unfamiliar to me. How do you set the default value for the TextDecoration's DP?

I've always used this syntax for a DP, but for some reason it won't compile here:
public static readonly DependencyProperty TextDecorationsProperty =
            DependencyProperty.Register("TextDecorations",
            typeof(TextDecorations),
            typeof(MaroisHyperlink),
            new PropertyMetadata(TextDecorations.Underline));

public TextDecorations TextDecorations
{
    get { return (TextDecorations)GetValue(TextDecorationsProperty);}
    set { SetValue(TextDecorationsProperty, value); }
}
I get 3 compilation errors:
Cannot convert to static type 'TextDecorations'
'TextDecorations': static types cannot be used as return types
'TextDecorations': static types cannot be used as paramters
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

GeneralRe: Custom Control Styling Pin
Richard Deeming5-Dec-22 22:57
mveRichard Deeming5-Dec-22 22:57 
GeneralRe: Custom Control Styling Pin
Kevin Marois5-Dec-22 14:57
professionalKevin Marois5-Dec-22 14:57 
GeneralRe: Custom Control Styling Pin
Kevin Marois5-Dec-22 15:10
professionalKevin Marois5-Dec-22 15:10 
QuestionWPF .Net Core Relay Command with Parameters Pin
Kevin Marois1-Dec-22 14:50
professionalKevin Marois1-Dec-22 14:50 
QuestionForgot Password Pin
Kevin Marois1-Dec-22 14:06
professionalKevin Marois1-Dec-22 14:06 
AnswerRe: Forgot Password Pin
Richard Deeming1-Dec-22 23:10
mveRichard Deeming1-Dec-22 23:10 
QuestionWPF Core Hyperlkink Custom Control Pin
Kevin Marois29-Nov-22 17:29
professionalKevin Marois29-Nov-22 17:29 
AnswerRe: WPF Core Hyperlkink Custom Control Pin
Richard Deeming29-Nov-22 22:59
mveRichard Deeming29-Nov-22 22:59 
GeneralRe: WPF Core Hyperlkink Custom Control Pin
Kevin Marois30-Nov-22 6:46
professionalKevin Marois30-Nov-22 6:46 
GeneralRe: WPF Core Hyperlkink Custom Control Pin
Richard Deeming30-Nov-22 22:25
mveRichard Deeming30-Nov-22 22:25 
QuestionPath Images Pin
Kevin Marois29-Nov-22 15:57
professionalKevin Marois29-Nov-22 15:57 
AnswerRe: Path Images Pin
Richard Deeming30-Nov-22 0:46
mveRichard Deeming30-Nov-22 0:46 
QuestionDropShadowEffect Above & Below Pin
Kevin Marois29-Nov-22 15:30
professionalKevin Marois29-Nov-22 15:30 
AnswerRe: DropShadowEffect Above & Below Pin
Richard Deeming30-Nov-22 0:43
mveRichard Deeming30-Nov-22 0:43 
GeneralRe: DropShadowEffect Above & Below Pin
Kevin Marois30-Nov-22 6:32
professionalKevin Marois30-Nov-22 6:32 
GeneralRe: DropShadowEffect Above & Below Pin
Richard Deeming30-Nov-22 22:30
mveRichard Deeming30-Nov-22 22:30 
QuestionWhat's Wrong With This Style? Pin
Kevin Marois21-Nov-22 10:57
professionalKevin Marois21-Nov-22 10:57 

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.