Dynamic alloct

patrick

Well-known member
Joined
Dec 5, 2021
Messages
314
Programming Experience
1-3
Hello

C#:
<DockPanel>
<DockPanel DockPanel.Dock = "Top">
 <my:abc  x:Name="alarm" />
</DockPanel>
</DockPanel>


Is there a way to change my:abc to my:ddd
With dynamic parameters?
 
The official way to do thing is to put a ContentPresenter where you want your my:abc or my:ddd to go, and then bind the Content property to something in your view model.
 
Back
Top Bottom