开发者

Problem adding a UserControl in a TabItem

开发者 https://www.devze.com 2023-03-25 20:02 出处:网络
I tried adding a UserControl to a TabItem in the following way: <TabControl Margin=\"1\"> <TabItem Header=\"Control\" >

I tried adding a UserControl to a TabItem in the following way:

<TabControl Margin="1">
        <TabItem Header="Control" >
        </TabItem>
        <TabItem Header="Tray" >
            <local:SettingView>
            </local:SettingView>
        </TabItem>
</T开发者_如何学CabControl>

It showed in the UI, but bindings appear to be evaluated while the DataContext of the UserControl is still null (Nothing). Why isn't this working?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号