Home Forums WPF controls Xceed DataGrid for WPF DataGrid 1.2 ‘GroupLevelIndicatorPane’ object cannot be adde

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24100 |

    I just downloaded new DataGrid 1.2 because I want to use GroupFooter. I had 1.1 already installed.
    I Installed it, changed reference in my Visual Studio Project (which works OK with 1.1) and when I run my application following Exception has shown.

    System.Windows.Markup.XamlParseException was unhandled
    Message=”‘GroupLevelIndicatorPane’ object cannot be added to ‘Grid’. ‘GroupLevelIndicator’ TargetType does not match type of element ‘GroupLevelIndicatorPane’. Error at object ‘Xceed.Wpf.DataGrid.GroupLevelIndicatorPane’ in markup file ‘Xceed.Wpf.DataGrid;;;component/themes/Common/TableView.GridElementTemplates.xaml’.”
    Source=”PresentationFramework”
    LineNumber=0
    LinePosition=0
    NameContext=”groupLevelIndicatorPane”
    StackTrace:
    at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
    at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
    at System.Windows.Markup.BamlRecordReader.ThrowException(String message, Exception innerException)
    at System.Windows.Markup.BamlRecordReader.AddToContentProperty(Object container, Object contentProperty, Object value)
    at System.Windows.Markup.BamlRecordReader.SetPropertyValueToParent(Boolean fromStartTag, Boolean& isMarkupExtension)
    at System.Windows.Markup.BamlRecordReader.SetPropertyValueToParent(Boolean fromStartTag)
    at System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
    at System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
    at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
    at System.Windows.StyleHelper.LoadOptimizedTemplateContent(DependencyObject container, ParserContext parserContext, OptimizedTemplateContent optimizedTemplateContent, FrameworkTemplate frameworkTemplate, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
    at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
    at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
    at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
    at System.Windows.FrameworkElement.ApplyTemplate()
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
    at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
    at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
    at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
    at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
    at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
    at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
    at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
    at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
    at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
    at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.Border.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.Control.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
    at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size availableSize)
    at System.Windows.Controls.Border.MeasureOverride(Size constraint)
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
    at System.Windows.UIElement.Measure(Size avai

    Imported from legacy forums. Posted by Remigiusz (had 914 views)

    User (Old forums)
    Member
    Post count: 23064

    I get the same thing, even when running the sample applications. Xceed.Wpf.DataGrid.Samples.CustomViews throws the exception when switched from “Custom card view” to “Custom table view”

    Imported from legacy forums. Posted by mkb137 (had 578 views)

    Xceed Support
    Member
    Post count: 5658

    Thank you for reporting this… as well as for the workaround.

    We will check into this particular scenario and keep you informed in this thread.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 333 views)

    Xceed Support
    Member
    Post count: 5658

    mkb137:

    Can you confirm that the same exception is raised in a non-modified Xceed.Wpf.DataGrid.Samples.CustomViews sample?

    I need to ask because original post from SeeR implies playing within UxTheme to modify theming…

    Imported from legacy forums. Posted by Marcus [Xceed] (had 182 views)

    User (Old forums)
    Member
    Post count: 23064

    It was unmodified. I opened .csproj in Visual Studio and clicked “Run” and that was it.

    In an application of my own, I found that changing the default TableView theme was enough to work around the problem, e.g.:
    <xcdg:DataGridControl.View>
    <xcdg:TableView Theme=”AeroNormalColorTheme” />
    </xcdg:DataGridControl.View>

    Imported from legacy forums. Posted by mkb137 (had 584 views)

    Xceed Support
    Member
    Post count: 5658

    I have been able to narrow down the repro conditions and here is the problem:

    Issue will happen when in table view for users whose OS theme is “XP Silver” ( Luna.Metallic ) or for those that “force” it using UxTheme ;).

    The proposed workaround is to explicitly set the appropriate theme on the DataGridControl:

    <DataGridControl View=”TableView.Luna.Metallic” />

    This way, the appropriate look will appear on the DataGridControl…

    The next service release will contain the fix for this issue.

    Thank you for reporting this to our attention.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 271 views)

    User (Old forums)
    Member
    Post count: 23064

    Also, I use to style GroupLevelIndicator:
    <Style TargetType=”{x:Type xcdg:GroupLevelIndicator}”>
    <Setter Property=”Background” Value=”#D5D5EB”/>
    <Setter Property=”BorderThickness” Value=”0″/>
    </Style>

    And since new release 1.2, it doesn’t work. Is there any way to do it?
    Thanks. Lena

    Imported from legacy forums. Posted by Lena (had 220 views)

    User (Old forums)
    Member
    Post count: 23064

    Never mind. I found a way doing it. I gave the style name
    and referenced it in GroupLevelConfiguration definition. It works. Thanks. Lena

    Imported from legacy forums. Posted by Lena (had 205 views)

    Xceed Support
    Member
    Post count: 5658

    This problem was fixed and you can download the latest version to try the fix

    Imported from legacy forums. Posted by Vince [Xceed] (had 621 views)

    User (Old forums)
    Member
    Post count: 23064

    What is the version number that contains this fix?

    Imported from legacy forums. Posted by Lori (had 494 views)

    Xceed Support
    Member
    Post count: 5658

    Latest version available, which is 3.1.7467.13300.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 7561 views)

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.