Home Forums WPF controls Xceed DataGrid for WPF Why binding don’t work with XAML Browser Application

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

    Hi everybody

    I’m trying to perform the grid binding way that described in the documentation with the template of “XAML Browser Application(WPF)” to use it in web application.

    but i recieve this error:

    “Cannot create instance of ‘Page1’ defined in assembly ‘XAMLTestAgain, Version=1.0.2851.26442, Culture=neutral, PublicKeyToken=null’. Exception has been thrown by the target of an invocation. Error in markup file ‘Page1.xaml’ Line 1 Position 7.”

    That is although I performed the same concept ands code in windows application and it worked properly.

    any advices ?

    Imported from legacy forums. Posted by NAHR_ELGANNAH (had 517 views)

    User (Old forums)
    Member
    Post count: 23064

    Hello. I am experiencing the exact same problem as NAHR_ELGANNAH.

    Does anyone know why this exception is being thrown when we try to display the DataGridControl through an XAML Browser application?

    For info, my xaml looks like this:

    <Page x:Class=”DiggSearch.Page1″
    xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;
    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml&#8221;
    xmlns:my=”clr-namespace:Xceed.Wpf.DataGrid;assembly=Xceed.Wpf.DataGrid”>

    <Grid Background=”#FF5C7590″ ShowGridLines=”True” >

    <Grid.RowDefinitions>
    <RowDefinition Height=”40″/>
    <RowDefinition Height=”*”/>
    </Grid.RowDefinitions>

    <Grid Grid.Row=”0″ Margin=”7″ ShowGridLines=”True” >
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width=”*” />
    <ColumnDefinition Width=”200″/>
    <ColumnDefinition Width=”50″ />
    </Grid.ColumnDefinitions>

    <Border Grid.Column=”0″ CornerRadius=”10″ Background=”#FFDEDEDE”>
    <TextBlock Text=”Digg Search” Foreground=”#FF14517B” Margin=”10,3,0,0″ />
    </Border>

    <TextBox Grid.Column=”1″ FontSize=”14″ Text=”Topic…” Name=”SearchTopicTextBox” />
    <Button Grid.Column=”2″ Content=”Search” Name=”SearchButton” Click=”SearchButton_Click” />

    </Grid>

    <my:DataGridControl Grid.Row=”1″ Margin=”7″ Name=”StoriesList” />

    </Grid>
    </Page>

    and the exception message is:

    Cannot create instance of ‘Page1’ defined in assembly ‘DiggSearch, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Exception has been thrown by the target of an invocation. Error in markup file ‘Page1.xaml’ Line 1 Position 7.

    Any advice would be much appreciated.

    Imported from legacy forums. Posted by Krispy (had 355 views)

    User (Old forums)
    Member
    Post count: 23064

    I managed to get round this issue. It turns out I was running an older version of the DataGridControl (v1.2) on my machine, so I’ve upgraded to the latest version and this issue appears to have ‘gone away’.

    Kev

    Imported from legacy forums. Posted by Krispy (had 3225 views)

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