<EjsDialog @ref="DialogObj" Target="#target" Height="500px" Width="275x" ShowCloseIcon="true">
<DialogEvents OnOpen="OnDialogOpen"></DialogEvents>
<DialogTemplates>
<Header> Tab </Header>
<Content>
<EjsTab @ref="TabObj">
<TabItems>
<TabItem Content="@Content1">
<ChildContent>
<TabHeader Text="Twitter"></TabHeader>
</ChildContent>
</TabItem>
<TabItem Content="@Content2">
<ChildContent>
<TabHeader Text="Facebook"></TabHeader>
</ChildContent>
</TabItem>
<TabItem Content="@Content3">
<ChildContent>
<TabHeader Text="Whatsapp"></TabHeader>
</ChildContent>
</TabItem>
</TabItems>
</EjsTab>
</Content>
</DialogTemplates>
</EjsDialog>
@code {
EjsTab TabObj;
public void OnDialogOpen()
{
if (TabObj != null)
{
TabObj.Select(0);
}
}
…
} |