Click here to Skip to main content
15,913,941 members
Home / Discussions / WPF
   

WPF

 
Questionblackjack game using silverlight and c# Pin
Member 452593522-Dec-08 10:05
Member 452593522-Dec-08 10:05 
AnswerRe: blackjack game using silverlight and c# Pin
Pete O'Hanlon22-Dec-08 10:10
mvePete O'Hanlon22-Dec-08 10:10 
GeneralRe: blackjack game using silverlight and c# Pin
Member 452593522-Dec-08 10:26
Member 452593522-Dec-08 10:26 
GeneralRe: blackjack game using silverlight and c# Pin
Pete O'Hanlon22-Dec-08 22:24
mvePete O'Hanlon22-Dec-08 22:24 
QuestionTO Write Custom Delete Event for WPF Control [modified] Pin
BharathGandhi21-Dec-08 20:15
BharathGandhi21-Dec-08 20:15 
AnswerRe: TO Write Custom Delete Event for WPF Control Pin
Christian Graus22-Dec-08 0:34
protectorChristian Graus22-Dec-08 0:34 
GeneralRe: TO Write Custom Delete Event for WPF Control Pin
Thomas Stockwell22-Dec-08 6:26
professionalThomas Stockwell22-Dec-08 6:26 
GeneralRe: TO Write Custom Delete Event for WPF Control Pin
BharathGandhi22-Dec-08 17:04
BharathGandhi22-Dec-08 17:04 
AnswerRe: TO Write Custom Delete Event for WPF Control Pin
Mark Salsbery22-Dec-08 6:37
Mark Salsbery22-Dec-08 6:37 
GeneralRe: TO Write Custom Delete Event for WPF Control Pin
BharathGandhi22-Dec-08 16:30
BharathGandhi22-Dec-08 16:30 
QuestionWPF crop image help!! Pin
siten030821-Dec-08 17:43
siten030821-Dec-08 17:43 
AnswerRe: WPF crop image help!! Pin
Christian Graus22-Dec-08 0:32
protectorChristian Graus22-Dec-08 0:32 
GeneralRe: WPF crop image help!! Pin
siten030822-Dec-08 6:19
siten030822-Dec-08 6:19 
GeneralRe: WPF crop image help!! Pin
Mark Salsbery22-Dec-08 6:42
Mark Salsbery22-Dec-08 6:42 
GeneralRe: WPF crop image help!! Pin
siten030823-Dec-08 10:27
siten030823-Dec-08 10:27 
QuestionRe: WPF crop image help!! Pin
Mark Salsbery23-Dec-08 12:19
Mark Salsbery23-Dec-08 12:19 
GeneralRe: WPF crop image help!! Pin
Pete O'Hanlon23-Dec-08 23:03
mvePete O'Hanlon23-Dec-08 23:03 
GeneralRe: WPF crop image help!! Pin
siten030824-Dec-08 6:11
siten030824-Dec-08 6:11 
QuestionBackground image issue Pin
hotthoughtguy20-Dec-08 4:18
hotthoughtguy20-Dec-08 4:18 
AnswerRe: Background image issue Pin
DaveX8621-Dec-08 5:08
DaveX8621-Dec-08 5:08 
QuestionCustom markup extensions in the VS wpf designer Pin
jamie55019-Dec-08 23:40
jamie55019-Dec-08 23:40 
I am using VS2008 SP1.

I have a solution with two projects.

Project A is a class library, and has a markup extension.
public class BadExtension : MarkupExtension
{
    public string A { get; set; }
    public string B { get; set; }

    public BadExtension() { }
    public BadExtension(string a) { this.A = a; }
    public BadExtension(string a, string b) { this.A = a; this.B = b; }

    public override object ProvideValue(IServiceProvider serviceProvider) { return A + B; }
}


Project B is a wpf project. Part of the code of a window is
<button grid.row="0" content="{l:Bad ItemA}" />
<button grid.row="1" content="{l:Bad ItemA, ItemB}" />


Now, the WPF designer refuses to load, saying that no constructor for BadExtension has 1 parameter.
However, when I run the app, it loads perfectly and both button texts display perfectly.

This is the kicker: In the BadExtension.cs file, if I switch the (string) and (string, string) constructors, the designer now complains about no constructor having 2 parameters.

p.s. Or should this be in the Visual Studio forum?
AnswerRe: Custom markup extensions in the VS wpf designer Pin
Mark Salsbery20-Dec-08 9:30
Mark Salsbery20-Dec-08 9:30 
GeneralRe: Custom markup extensions in the VS wpf designer Pin
jamie55021-Dec-08 23:41
jamie55021-Dec-08 23:41 
GeneralRe: Custom markup extensions in the VS wpf designer Pin
Mark Salsbery22-Dec-08 6:30
Mark Salsbery22-Dec-08 6:30 
GeneralRe: Custom markup extensions in the VS wpf designer Pin
Mark Salsbery22-Dec-08 6:32
Mark Salsbery22-Dec-08 6:32 

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.