Note that there are some explanatory texts on larger screens.

plurals
  1. POmoonlight vs. silverlight :: datagrid incompatibility?
    text
    copied!<p>I'm trying to develop an application in moonlight. Now I'm trying to use a DataGrid to show some data. </p> <p>In an old silverlight project I used a DataGrid in this way:</p> <pre><code>&lt;UserControl x:Class="One.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"&gt; &lt;Grid x:Name="LayoutRoot" Background="White"&gt; &lt;StackPanel Orientation="Vertical"&gt; &lt;TextBlock x:Name="lbl1"&gt;lblInfo1&lt;/TextBlock&gt; &lt;TextBlock x:Name="lbl2"&gt;lblInfo2&lt;/TextBlock&gt; &lt;TextBox x:Name="txt1"&gt;Write here&lt;/TextBox&gt; &lt;Button x:Name="btn1" Content="Send" Click="btn1_Click" /&gt; &lt;my:DataGrid x:Name="grData" Grid.Row="1" Width="500" Height="250" Margin="10" AutoGenerateColumns="False"&gt; &lt;my:DataGrid.Columns&gt; &lt;my:DataGridTextColumn Header="Código" /&gt; &lt;my:DataGridTextColumn Header="Lote" /&gt; &lt;my:DataGridTextColumn Header="Ciudad" /&gt; &lt;my:DataGridTextColumn Header="País" /&gt; &lt;/my:DataGrid.Columns&gt; &lt;/my:DataGrid&gt; &lt;/StackPanel&gt; &lt;/Grid&gt; &lt;/UserControl&gt; </code></pre> <p>but if I use the same code in my new moonlight project I get an empty page. I've been looking for some examples and I found a simple one:</p> <ul> <li><a href="http://geeks.ms/blogs/lmblanco/archive/2008/09/02/silverlight-datagrid-crear-una-columna-a-partir-de-varios-valores.aspx" rel="nofollow">http://geeks.ms/blogs/lmblanco/archive/2008/09/02/silverlight-datagrid-crear-una-columna-a-partir-de-varios-valores.aspx</a></li> </ul> <p>Is this example the writer use the DartaGrid in the same way than me. Can anyone explain me why in VS2010 I can use this code and In monodevelop 2.4 or monodevelop 2.8 I can't?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload