-
Structure:The xaml is quite big, so I'm posting the structure:
The element: <StackPanel Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2"
Orientation="Vertical"
Spacing="10">
<RadioButton IsChecked="{Binding DNSv4DHCP}"
IsEnabled="{Binding IPv4DHCP}"
Content="Automatic DNS assignment from DHCP"/>
<StackPanel Orientation="Horizontal" Spacing="10">
<RadioButton IsChecked="{Binding !DNSv4DHCP}"
Content="Manual DNS assignment"/>
<DropDownButton Content="Presets"
IsEnabled="{Binding !DNSv4DHCP}">
<DropDownButton.Flyout>
<MenuFlyout Placement="Right" ItemsSource="{Binding DNSv4Presets}"/>
</DropDownButton.Flyout>
</DropDownButton>
</StackPanel>
</StackPanel> When accessing to the second tab (IPv6) the However, when I access the first tab (IPv4) Note that the IPv6 dropdownbutton is written same way as the IPv4 counter part, it just use different binds, corresponding to IPv6: <StackPanel Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2"
Orientation="Vertical"
Spacing="10">
<RadioButton IsChecked="{Binding DNSv6DHCP}"
IsEnabled="{Binding IPv6DHCP}"
Content="Automatic DNS assignment from DHCP"/>
<StackPanel Orientation="Horizontal" Spacing="10">
<RadioButton IsChecked="{Binding !DNSv6DHCP}"
Content="Manual DNS assignment"/>
<DropDownButton Content="Presets"
IsEnabled="{Binding !DNSv6DHCP}">
<DropDownButton.Flyout>
<MenuFlyout Placement="Right" ItemsSource="{Binding DNSv6Presets}"/>
</DropDownButton.Flyout>
</DropDownButton>
</StackPanel>
</StackPanel>
Additional notes:I first write the IPv4 panel raw without a TabControl, button worked, as soon I moved inside TabControl, it start with this error. Any ideias? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the problem... |
Beta Was this translation helpful? Give feedback.
Found the problem...
Was adding the same submenu reference twice on the
DNSv4Presets
.Removing the dup line fixed the problem.