Click here to Skip to main content
15,891,136 members
Home / Discussions / WPF
   

WPF

 
SuggestionRe: Dynamically creating controls in WPF/MVV Pin
Richard MacCutchan16-Jul-14 2:25
mveRichard MacCutchan16-Jul-14 2:25 
Questionhow this code works and why tag is used Pin
anil42010-Jul-14 22:57
anil42010-Jul-14 22:57 
AnswerRe: how this code works and why tag is used Pin
simbos10-Jul-14 23:28
simbos10-Jul-14 23:28 
SuggestionRe: hello Pin
Richard MacCutchan10-Jul-14 22:34
mveRichard MacCutchan10-Jul-14 22:34 
QuestionConfused about MarkupExtension class reference in XAML Pin
Mc_Topaz9-Jul-14 3:38
Mc_Topaz9-Jul-14 3:38 
AnswerRe: Confused about MarkupExtension class reference in XAML Pin
Pete O'Hanlon9-Jul-14 4:45
mvePete O'Hanlon9-Jul-14 4:45 
QuestionRe: Confused about MarkupExtension class reference in XAML Pin
Mc_Topaz9-Jul-14 5:34
Mc_Topaz9-Jul-14 5:34 
AnswerRe: Confused about MarkupExtension class reference in XAML Pin
Pete O'Hanlon9-Jul-14 5:55
mvePete O'Hanlon9-Jul-14 5:55 
Mc_Topaz wrote:
Another question: Is the MarkupExtension class meant to execute XAML code in design-time as well as runtime?
Well, that's the thing. Basically, in order to render a view of your UI in the designer, your code is periodically compiled and a new "snapshot" instance of the UI is rendered into place. This means that you get a version of a running app displayed, so it renders a design time view that just happens to have been created from a runtime version. So yes, your MarkupExtension will run.

Ooh, a simple MarkupExtension. Now, that's a thing. The good Dr WPF has some great examples here[^] that might shed some light for you.

However, a point for you to ponder - the use of {...} in XAML indicates that there's a MarkupExtension in there. So, whenever you see Binding, StaticResource, DynamicResource, etc, these are all markup extensions - indeed, if you were to look in the Object Browser, you would see they all have Extension after them - so it's BindingExtension, etc.
GeneralRe: Confused about MarkupExtension class reference in XAML Pin
Richard Deeming9-Jul-14 8:01
mveRichard Deeming9-Jul-14 8:01 
GeneralRe: Confused about MarkupExtension class reference in XAML Pin
Pete O'Hanlon9-Jul-14 8:33
mvePete O'Hanlon9-Jul-14 8:33 
QuestionNeed some idea for resizing my control Pin
Super Lloyd8-Jul-14 4:22
Super Lloyd8-Jul-14 4:22 
QuestionShow items in multiple columns Pin
pjank423-Jul-14 22:06
pjank423-Jul-14 22:06 
AnswerRe: Show items in multiple columns Pin
Pete O'Hanlon3-Jul-14 23:03
mvePete O'Hanlon3-Jul-14 23:03 
GeneralRe: Show items in multiple columns Pin
pjank424-Jul-14 5:26
pjank424-Jul-14 5:26 
QuestionMultipass MeasureOverride() not calculating updated items size (added code sample) Pin
Super Lloyd2-Jul-14 3:50
Super Lloyd2-Jul-14 3:50 
QuestionDraw a rectangular box Pin
Subin Mavunkal1-Jul-14 23:24
Subin Mavunkal1-Jul-14 23:24 
AnswerRe: Draw a rectangular box Pin
Matt T Heffron2-Jul-14 13:53
professionalMatt T Heffron2-Jul-14 13:53 
QuestionXAML Pin
Member 97193591-Jul-14 22:21
Member 97193591-Jul-14 22:21 
AnswerRe: XAML Pin
Pete O'Hanlon1-Jul-14 22:55
mvePete O'Hanlon1-Jul-14 22:55 
QuestionWPF Expander Problem Pin
Kevin Marois1-Jul-14 13:49
professionalKevin Marois1-Jul-14 13:49 
AnswerRe: WPF Expander Problem Pin
Pete O'Hanlon1-Jul-14 19:11
mvePete O'Hanlon1-Jul-14 19:11 
QuestionWPF - PRism Framework Pin
Muhammed Nigil29-Jun-14 23:36
professionalMuhammed Nigil29-Jun-14 23:36 
AnswerRe: WPF - PRism Framework Pin
Pete O'Hanlon30-Jun-14 0:17
mvePete O'Hanlon30-Jun-14 0:17 
GeneralRe: WPF - PRism Framework Pin
Muhammed Nigil30-Jun-14 1:00
professionalMuhammed Nigil30-Jun-14 1:00 
GeneralRe: WPF - PRism Framework Pin
Pete O'Hanlon30-Jun-14 3:03
mvePete O'Hanlon30-Jun-14 3:03 

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.