Ahoj ve wpf sem su udelal novy prvek button mam dotaz jak tento prvek dostanu do groupbox protoze vlastnost Controls a metoda add zde nejsou ?
<Grid>
<Button Name="cau" Background="Black" Margin="100,100,125,111">
</Button>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
Muj x = new Muj();
groupBox1.//zde neni metoda controls
}
private void Muj_Click(object sender, RoutedEventArgs e)
{
}
}