简体   繁体   中英

Can I have dll files as wpf modules that are used as TabItems

Is it possible to make like 5 different wpf files and saving them as a class library and then on runtime use import them into a application and use them as tabs?

So like

<TabControl>
        <TabItem>
           ----Some imported dll----
        </TabItem>
        <TabItem>
           ----Some other imported dll----
        </TabItem>
</TabControl>

Fixed it with

    xmlns:TechLog="clr-namespace:TechLog;assembly=TechLog"

                    <TabItem Header="System log">
                        <TechLog:UserControl1></TechLog:UserControl1>
                    </TabItem>

TechLog is a WPF User Control Library project that is added to the solution and that outputs a .dll which I wanted

well i assume that in your 5 dlls are somekind of usercontrols or views you wanna display? you should really look into MEF for a wpf plugin system. there are a lot of informations out there. i use MEF alot and its really nice and handy.

btw if not you should specify your question. what does import mean for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM