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?