locked
XAML to Code-Behind RRS feed

  • Question

  • Hi,

    How can i write the following XAML code in code-behind file (.vb)

    <data:DataGrid x:Name="dg">
                <data:DataGrid.Columns>
                    <data:DataGridTemplateColumn Header="Options">
                        <data:DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <HyperlinkButton Content="Test">
                                    <Image Source="Edit.jpeg"></Image>
                                </HyperlinkButton>
                            </DataTemplate>
                        </data:DataGridTemplateColumn.CellTemplate>
                    </data:DataGridTemplateColumn>
                </data:DataGrid.Columns>
            </data:DataGrid>

    Thanks in Advance

    Tuesday, September 29, 2009 2:51 AM

Answers

All replies