This project is read-only.
2

Closed

Xaml Tab Elements

description

if we define some xaml like so:   <FlowElement xmlns="clr-namespace:DynamicData.Layout.Elements;assembly=DynamicData.Layout" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:r="clr-namespace:Resources" xmlns:s="clr-namespace:System;assembly=mscorlib">   <TabsElement> <TabsElement.TabNames> <s:String>Adress</s:String> <s:String>Misc</s:String> </TabsElement.TabNames> <GroupElement GroupName="AddressG" /> <GroupElement GroupName="MiscG" /> </TabsElement>   </FlowElement>   the resulting details view has a tab control that does not hide the second tab. However, if one defines the xaml like so:   <FlowElement xmlns="clr-namespace:DynamicData.Layout.Elements;assembly=DynamicData.Layout" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:r="clr-namespace:Resources" xmlns:s="clr-namespace:System;assembly=mscorlib"> <ColumnsElement/>   <TabsElement> <TabsElement.TabNames> <s:String>Adress</s:String> <s:String>Misc</s:String> </TabsElement.TabNames> <GroupElement GroupName="AddressG" /> <GroupElement GroupName="MiscG" /> </TabsElement>   </FlowElement>   note the top level '<ColumnsElement/> ' element, then the resulting view looks ok and behaves as it should hiding the non selected controls when changing tabs.   note sure if this is a defect or just the way we have to define the xaml i order for the views to work.
Closed Dec 9, 2010 at 8:52 AM by tomasherceg
Invalid

comments

tomasherceg wrote Dec 8, 2010 at 11:34 AM

Can you please attach a screenshot? Empty ColumnsElement renders something like this:
<table> <tr> </tr> </table> It does not make sense for the TabContainer to work only when it has some element above.

wrote Dec 8, 2010 at 11:42 AM

jhb wrote Dec 9, 2010 at 12:34 AM

Apologies, re-tested and works fine.

jhb wrote Dec 9, 2010 at 12:35 AM

Apologies, re-tested and works fine.

wrote Dec 9, 2010 at 8:52 AM

wrote Dec 9, 2010 at 8:52 AM

wrote Feb 13, 2013 at 7:13 PM

wrote May 16, 2013 at 1:41 AM