mui icon indicating copy to clipboard operation
mui copied to clipboard

ModernTab: show content defined in the same UserControl

Open robertosalemi opened this issue 10 years ago • 5 comments

Hi, I'm using the ModernTab, where i defined two link, for example "Link 1" and "Link 2".

As source, I not want use the external page, but I want define the content of Link 1 and Link 2 in the same UserControl where I defined a section for link 1 and a section for link 2.

It's possibile? How?

Thanks.

robertosalemi avatar Mar 13 '15 16:03 robertosalemi

Hi, yes it's possible. Just add the "source" in the definition of your links.

        <mui:ModernTab >
        <mui:ModernTab.Links>

            <mui:Link DisplayName="Link1" Source="Page1.xaml"/>

            <mui:Link DisplayName="Link2" Source="Page2.xaml"/>

        </mui:ModernTab.Links>
    </mui:ModernTab>

Azerty92 avatar Apr 30 '15 09:04 Azerty92

Hi, I have used the links in the same way, the problem is page doesn't refresh when it is clicked each time. Can u please help me how to reload the page each time when it is selected?

Hrchandra avatar Jul 21 '16 07:07 Hrchandra

It uses the same reference of the user control if they have the same control links the modern tab, is there a way to make each link refer to a stand alone object for the same link but different fragments?

phoeson avatar Apr 05 '17 10:04 phoeson

I'm looking for the same feature. I think there should be something like "TabItemChanged" or "TabItemClicked" instead of SelectedSourceChanged.

zenglian avatar Dec 13 '17 06:12 zenglian

I found this which solved my problem: https://mui.codeplex.com/discussions/560428

zenglian avatar Dec 14 '17 08:12 zenglian