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

Locbaml and wpf datagrid exception

Sort Posts: Previous Next
  •  04-10-2012, 3:03 AM Post no. 31967

    Locbaml and wpf datagrid exception

    I am localizing my wpf application using locbaml  but I have trouble with the xceed datagrid (version 4.3.12074.17240).

    When parsing the resource dll with locbaml (e.g. locbaml /parse en-US/wpfapplication1.resources.dll /out:Hello.csv) I get the following exception:

     

    {"The type initializer for 'Xceed.Wpf.DataGrid.Views.TableView' threw an exception."}

     

    Inner exception:

    Invalid URI: Invalid port specified.

     

    Inner exception Stacktrace:

       at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)

       at System.Uri..ctor(String uriString)

       at Xceed.Wpf.DataGrid.Views.TableView.get_DefaultFixedColumnSplitterCursor()

       at Xceed.Wpf.DataGrid.Views.TableView..cctor()

     

     

    Here is an xaml example:

     

    <Window x:Uid="Window_1"

            xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"

            x:Class="WpfApplication1.MainWindow"

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

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

            Title="MainWindow" Height="350" Width="525">

     

        <Grid x:Uid="Grid_1">

            <xcdg:DataGridControl x:Uid="xcdg:DataGridControl_1" >

                <xcdg:DataGridControl.View>

                    <xcdg:TableflowView x:Uid="xcdg:TableflowView_1" UseDefaultHeadersFooters="False">

                        <xcdg:TableflowView.FixedHeaders>

                            <DataTemplate x:Uid="DataTemplate_1">

                                <xcdg:HierarchicalGroupByControl x:Uid="xcdg:HierarchicalGroupByControl_1" xcdg:TableView.CanScrollHorizontally="False" />

                            </DataTemplate>

                            <DataTemplate x:Uid="DataTemplate_2">

                                <xcdg:ColumnManagerRow x:Uid="xcdg:ColumnManagerRow_1" AllowColumnResize="False" />

                            </DataTemplate>

                        </xcdg:TableflowView.FixedHeaders>

                    </xcdg:TableflowView>

                </xcdg:DataGridControl.View>

                <xcdg:DataGridControl.Columns>

                    <xcdg:Column x:Uid="xcdg:Column_1" FieldName="DataSourceFieldName1" Title="Column Header 1" IsMainColumn="True" />

                    <xcdg:Column x:Uid="xcdg:Column_2" FieldName="DataSourceFieldName2" Title="Column Header 2" />

                    <xcdg:Column x:Uid="xcdg:Column_3" FieldName="DataSourceFieldName3" Title="Column Header 3" />

                    <xcdg:Column x:Uid="xcdg:Column_4" FieldName="DataSourceFieldName4" Title="Column Header 4" />

                </xcdg:DataGridControl.Columns>

            </xcdg:DataGridControl>

        </Grid>

    </Window>

     

    The problem occurs when the DataTemplate segments are added.

    Is there a way to avoid this exception?

     

     

  •  04-11-2012, 5:26 PM Post no. 31976 in reply to 31967

    Re: Locbaml and wpf datagrid exception

    Hi Jan-Olof,

    Currently, there is no way to avoid this exception without removing the two DataTemplates. This issue has been reported to us years ago but the developer had to remove the two DataTemplates. I have informed the lead developer of the component about this issue. Unfortunately, there is no available workaround except for the one you had found. I apologize for the inconvenience.


    Marc

    Developer in Technical Support
    Xceed - Multi-talented components - http://xceed.com
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.