Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
Sample code for adding xamTree into xamOutlookbar
posted

Hi All,

Can we add a xamtree silverlight control into xamOutlookbar as we did for winform.

I really appreciate if I can get a sample code to do this case.

Thanks a lot.

Han

Parents
  • 5595
    posted

    Hi,

    It could be done like:

            <ig:XamOutlookBar HorizontalAlignment="Left">

                <ig:OutlookBarGroup>

                    <ig:XamTree>

                        <ig:XamTreeItem Header="Level1Node1">

                            <ig:XamTreeItem Header="Level1Node1Level2Node1"/>

                            <ig:XamTreeItem Header="Level1Node1Level2Node2"/>

                            <ig:XamTreeItem Header="Level1Node1Level2Node3"/>

                            <ig:XamTreeItem Header="Level1Node1Level2Node4"/>

                        </ig:XamTreeItem>

                        <ig:XamTreeItem Header="Level1Node2">

                            <ig:XamTreeItem Header="Level1Node2Level2Node1"/>

                            <ig:XamTreeItem Header="Level1Node2Level2Node2"/>

                            <ig:XamTreeItem Header="Level1Node2Level2Node3"/>

                            <ig:XamTreeItem Header="Level1Node2Level2Node4"/>

                        </ig:XamTreeItem>

                        <ig:XamTreeItem Header="Level1Node3">

                            <ig:XamTreeItem Header="Level1Node3Level2Node1"/>

                            <ig:XamTreeItem Header="Level1Node3Level2Node2"/>

                            <ig:XamTreeItem Header="Level1Node3Level2Node3"/>

                            <ig:XamTreeItem Header="Level1Node3Level2Node4"/>

                        </ig:XamTreeItem>

                        <ig:XamTreeItem Header="Level1Node4">

                            <ig:XamTreeItem Header="Level1Node4Level2Node1"/>

                            <ig:XamTreeItem Header="Level1Node4Level2Node2"/>

                            <ig:XamTreeItem Header="Level1Node4Level2Node3"/>

                            <ig:XamTreeItem Header="Level1Node4Level2Node4"/>

                        </ig:XamTreeItem>

                    </ig:XamTree>

                </ig:OutlookBarGroup>

            </ig:XamOutlookBar>

    HTH, 

Reply Children