Click here to Skip to main content
15,900,461 members
Home / Discussions / WPF
   

WPF

 
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 
GeneralRe: Custom markup extensions in the VS wpf designer Pin
jamie55022-Dec-08 15:16
jamie55022-Dec-08 15:16 
GeneralRe: Custom markup extensions in the VS wpf designer Pin
Mark Salsbery23-Dec-08 6:00
Mark Salsbery23-Dec-08 6:00 
QuestionBound ItemsControl doesn't refresh upon restoring a minimized window Pin
Steve McMohan18-Dec-08 11:25
Steve McMohan18-Dec-08 11:25 
AnswerRe: Bound ItemsControl doesn't refresh upon restoring a minimized window Pin
cechode18-Dec-08 13:30
cechode18-Dec-08 13:30 
GeneralRe: Bound ItemsControl doesn't refresh upon restoring a minimized window Pin
Steve McMohan22-Dec-08 1:40
Steve McMohan22-Dec-08 1:40 
GeneralRe: Bound ItemsControl doesn't refresh upon restoring a minimized window Pin
Steve McMohan22-Dec-08 19:34
Steve McMohan22-Dec-08 19:34 
QuestionSilverlight Spreadsheet Pin
Alixer18-Dec-08 6:09
Alixer18-Dec-08 6:09 
QuestionSlower WPF Performance after a button gets focus Pin
Qwentin18-Dec-08 2:29
Qwentin18-Dec-08 2:29 
AnswerRe: Slower WPF Performance after a button gets focus Pin
Mark Salsbery18-Dec-08 8:15
Mark Salsbery18-Dec-08 8:15 
GeneralRe: Slower WPF Performance after a button gets focus Pin
Qwentin18-Dec-08 22:05
Qwentin18-Dec-08 22:05 
GeneralRe: Slower WPF Performance after a button gets focus Pin
Mark Salsbery19-Dec-08 4:52
Mark Salsbery19-Dec-08 4:52 
GeneralRe: Slower WPF Performance after a button gets focus Pin
Jammer19-Dec-08 0:19
Jammer19-Dec-08 0:19 
QuestionPrint in WPF Pin
VisualLive17-Dec-08 17:40
VisualLive17-Dec-08 17:40 

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.