Posted 16 years ago
by Crile Carvey
![Avatar](https://secure.gravatar.com/avatar/9cde3efde8cab5335d23c3d1eb325d05.jpg?s=64&d=identicon&r=g)
Given this in XAML:
I'd like to do something like this in the code:
But Visual Studio Intellisense doesn't think it is a good idea.
Any hints?
Crile
[Modified at 11/17/2008 08:12 PM]
<ribbon:StackPanel x:Name="ListButtonPanel" >
<ribbon:PopupButton Label="Button" />
</ribbon:StackPanel>
PopupButton pb = new PopupButton();
pb.Label="New button";
ListButtonPanel.Children.Add(pb);
Any hints?
Crile
[Modified at 11/17/2008 08:12 PM]