Welcome to the Xceed Community | Help
Community Search  
More Search Options

Expander bug with 1.0.10075.13300 Themes version

Sort Posts: Previous Next
  •  02-17-2010, 1:44 PM Post no. 25834

    Expander bug with 1.0.10075.13300 Themes version

    I have some Expander controls that are nested inside some grids that are ultimately nested inside a ScrollViewer.  The ScrollViewer only uses a Vertical Scrollboard and I constrain the main grid Width to the ScrollViewers.ActualWidth.  If I run with version 1.0.9417.12000 the Expanders behave and take up the horizontal space of their hosting grid and flow down vertically as much as necessary.  I upgraded to 1.0.10075.13300 and now the Expanders center themselves and do not take all the horizontal space of the hosting grid.  If I downgrade to 1.0.9417.12000 they behave again.  I think this is a bug in 1.0.10075.13000.  I am using the Office2007 Blue theme implicitely by loading it via the Application class.
  •  02-17-2010, 3:09 PM Post no. 25836 in reply to 25834

    Re: Expander bug with 1.0.10075.13300 Themes version

    Hi Mike,

    This issue is being answered through the support ticket you sent in by email. I will post an update in this forum thread when we have more information for others that may find their way here with the same problem.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
  •  05-19-2010, 9:31 PM Post no. 26909 in reply to 25836

    Re: Expander bug with 1.0.10075.13300 Themes version

    Any update on this issue? Expander header have shrunk to just fit the text of the title. Earlier they used to occupy the full length of the containing control.
  •  05-20-2010, 10:37 AM Post no. 26922 in reply to 26909

    Re: Expander bug with 1.0.10075.13300 Themes version

    Hi DeeKay,

    I apologize for not posting an update in this forum thread. An email was sent to Mike directly and I wasn't informed. The fix for the issue was included in the 1.0.10159 build that was released on March 11.

    http://xceed.com/pages/TopMenu/Downloads/Updates.aspx?Lang=EN-CA

    If you found another issue, please submit a bug report to support@xceed.com.  Thank you.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
  •  06-07-2010, 10:49 PM Post no. 27104 in reply to 26922

    Re: Expander bug with 1.0.10075.13300 Themes version

    Hey Diane I am still seeing the broken behavior in the latest version 1.1.10304.11160.

     

    <ScrollViewer Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">

    <Grid MaxWidth="{Binding Path=ActualWidth, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ScrollViewer}}}">

    <Grid.ColumnDefinitions>

    <ColumnDefinition Width="*" />

    </Grid.ColumnDefinitions>

    <Grid.RowDefinitions>

    <RowDefinition Height="auto" />

    <RowDefinition Height="auto" />

    <RowDefinition Height="auto" />

    </Grid.RowDefinitions>

    <Expander Grid.Row="0" Margin="2,2,2,2" IsExpanded="True" Header="Description" FontWeight="Bold">

    <TextBox IsReadOnly="True" FontWeight="Normal"

    Text="{Binding Path=IssueFormat}"

    TextWrapping="Wrap" BorderThickness="0" />

    </Expander>

    <Expander Grid.Row="1" Margin="2,2,2,2" IsExpanded="False" Header="Affected Object Description" FontWeight="Bold">

    <TextBox IsReadOnly="True" FontWeight="Normal"

    Text="{Binding Path=AffectedFormat}"

    TextWrapping="Wrap" BorderThickness="0" />

    </Expander>

    <ctl:BestPracticePanel x:Name="bpTextPanel" Grid.Row="2" Margin="2,2,2,2" />

    </Grid>

    </ScrollViewer>

  •  06-08-2010, 12:04 PM Post no. 27107 in reply to 27104

    Re: Expander bug with 1.0.10075.13300 Themes version

    Hi Mike,

    We couldn't reproduce any problem with the provided code snippet and the 1.1.10304.11160 build. We would need more details as to what is the issue you are seeing. Screenshots, and also which theme(s) trigger the issue, would be helpful. Thank you.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
  •  06-08-2010, 1:21 PM Post no. 27108 in reply to 27107

    Re: Expander bug with 1.0.10075.13300 Themes version

    Look at the Width of the Expander Headers below.  Shouldn't they expand out to fill the width of the Window?  This is using 1.1.10304.11160...

    <Application x:Class="ExpanderRepo.App"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    xmlns:xcpt="http://schemas.xceed.com/wpf/xaml/themes" StartupUri="Window1.xaml">

    <Application.Resources>

    <xcpt:Office2007BlueResourceDictionary LicenseKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />

    </Application.Resources>

    </Application>

    <Window x:Class="ExpanderRepo.Window1"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Title="Window1" Height="300" Width="300">

    <Grid>

    <Grid.RowDefinitions>

    <RowDefinition Height="*" />

    <RowDefinition Height="5" />

    <RowDefinition Height="*" />

    </Grid.RowDefinitions>

     

    <TextBox Grid.Row="0" />

    <GridSplitter Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Height="5" />

    <ScrollViewer Grid.Row="2">

    <Grid MaxWidth="{Binding Path=ActualWidth, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ScrollViewer}}}">

    <Grid.RowDefinitions>

    <RowDefinition Height="*" />

    <RowDefinition Height="*" />

    </Grid.RowDefinitions>

    <Expander Grid.Row="0" Margin="2,2,2,2" IsExpanded="False" Header="blah blah blah" FontWeight="Bold">

    <TextBox />

    </Expander>

    <Expander Grid.Row="1" Margin="2,2,2,2" IsExpanded="False" Header="blah blah blah blah blah blah" FontWeight="Bold">

    <TextBox />

    </Expander>

    </Grid>

    </ScrollViewer>

     

    </Grid>

    </Window>

  •  06-08-2010, 5:00 PM Post no. 27113 in reply to 27108

    Re: Expander bug with 1.0.10075.13300 Themes version

    Attachment: Expander.jpg

    Hi Mike,

    We try to have behaviors as similar as possible to the standard Microsoft controls. It's also the case for the Expander control. By slightly changing the snippet, and not applying any Xceed Theme, we can see that the behavior is the same with the standard MS controls.

    For example:

      <Expander Grid.Row="0"
                       Margin="2,2,2,2"
                       IsExpanded="True"
                       FontWeight="Bold">

        <Expander.Header>
          <Border BorderBrush="Red"
                       BorderThickness="1"
                       HorizontalAlignment="Stretch"
                       VerticalAlignment="Stretch">
            <TextBlock Text="Description" />
          </Border>
        </Expander.Header>

        <TextBox IsReadOnly="True"
                       FontWeight="Normal"
                       Text="{Binding Path=IssueFormat}"
                       TextWrapping="Wrap"
                       BorderThickness="0" />
      </Expander>

      <Expander Grid.Row="1"
                       Margin="2,2,2,2"
                       IsExpanded="False"
                       Header="Affected Object Description"
                       FontWeight="Bold">

        <TextBox IsReadOnly="True"
                       FontWeight="Normal"
                       Text="{Binding Path=AffectedFormat}"
                       TextWrapping="Wrap"
                       BorderThickness="0" />
      </Expander>


    We simply changed the header of the first Expander to a Border with a TextBlock inside. By doing this, we can see that the Border, even when set to HorizontalAlignment="Stretch", does not take the whole horizontal space. (see attached screenshot)

     



    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
  •  06-08-2010, 7:05 PM Post no. 27115 in reply to 27113

    Re: Expander bug with 1.0.10075.13300 Themes version

    Thanks Diane for looking into this.  From reading this thread I wasn't sure what the Designed Behavior was suppossed to be.  My PM won't be happy but I can live with this...
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.