0

I'm trying to get tge amob:AmobCombobox but it is inside of another stack panel.

If I doToolStackLeft.Children[i] I get the stackpanels objects. I wanted something like

if (ToolStackLeft.Children[i].Children is AmobComboBox)
{
   //DO SOMETHING
}

My Code

<StackPanel Orientation="Horizontal" >
     <Label Content="5-" Foreground="White" Margin="0,-2,0,0"/>
     <amob:AmobComboBox x:Name="cmbTool10" Width="430" Margin="0,0,35,20" SelectionChanged="cmbTool10_SelectionChanged"/>
</StackPanel>
Liam
  • 27,717
  • 28
  • 128
  • 190
  • [Please don't put tags in question titles](https://stackoverflow.com/help/tagging) – Liam Jun 05 '17 at 09:06
  • @Liam how do you format the code like that? –  Jun 05 '17 at 09:07
  • What technology is this? What's a AmobCombobox? Is this WPF? – Liam Jun 05 '17 at 09:07
  • AmobCombobox is a custom Combobox. Nothing special. Yes, this is WPF –  Jun 05 '17 at 09:08
  • [How do I format my code blocks?](https://meta.stackexchange.com/questions/22186/how-do-i-format-my-code-blocks) – Liam Jun 05 '17 at 09:08
  • WPF, web forms, windows forms, what? – Liam Jun 05 '17 at 09:08
  • Possible duplicate of [How to get children of a WPF container by type?](https://stackoverflow.com/questions/10279092/how-to-get-children-of-a-wpf-container-by-type) – Fruchtzwerg Jun 05 '17 at 09:11
  • As a passing comment - I just did a google search on AmobCombobox - only results were questions asked here by user sdadad & qweqeqwe - any relation??. – PaulF Jun 05 '17 at 09:11

0 Answers0