June CTP Problem

Hi

iam having a problem with the June CTP.... i have created a Tabcontrol which had a Listbox inside it, I changed its margin property as"-200,0,0,0"...in Beta 2 the portion of the Listbox outside the tabcontrol was visible... But inJune CTP it is not ... am i missing out some thing....need help regarding this...

<TabControl Margin="93,26,99,1" x:Name="TabControl" IsSynchronizedWithCurrentItem="True">
<TabItem Margin="10,-2,-2,-1" Width="80" Height="42" x:Name="TabItem" Header="TabItem">
<ListBox Margin="-200,0,0,0" Width="323" Height="41" x:Name="ListBox" IsSynchronizedWithCurrentItem="True"/>
</TabItem>
</TabControl>

Regards

Raguvind Ganesh

[810 byte] By [Raguvind] at [2007-12-23]
# 1

To closer match the native Tab Control, the WPF TabControl now uses Z-Index to keep the currently selected tab on top of the other tabs. This required setting ClipToBounds inside the TabControl control template to prevent tabs from extending outside the bounds of the control. Typically this isn't an issue because most TabControl panes do not go outside selected content area. However, your scenario requires the ListBox to extend beyond the bounds of the TabControl.

To work around this behavior, you will need to provide a new Template for the TabControl that does not include ClipToBounds. See the following for starting points on creating TabControl templates:

http://windowssdk.msdn.microsoft.com/en-us/library/ms754137.aspx

http://windowssdk.msdn.microsoft.com/en-us/library/ms752032.aspx

NeilKronlage at 2007-8-30 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified