How to create WPF usercontrol which contains placeholders for later usage
问题 I'd better ask the question by example. Let's say I have UserControl and Window which uses this control. I would like to design this control (named MyControl) in such way (this is sci-fi syntax!): <Grid> <Button>Just a button</Button> <PlaceHolder Name="place_holder/> </Grid> and use in such ways when designing my Window: <MyControl/> or <MyControl> <place_holder> <Button>Button 1</Button> </place_holder> </MyControl> or <MyControl> <place_holder> <Button>Button 1</Button> <Button>Button 2<