powered by simpleCommunicator - 2.0.51     © 2025 Programmizd 02
Форумы / WPF, Silverlight [игнор отключен] [закрыт для гостей] / 'DataGrid' object cannot be added to 'Grid'.
1 сообщений из 1, страница 1 из 1
'DataGrid' object cannot be added to 'Grid'.
    #37306504
chikanok
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Добрый день.
В программке при запуске под отладчиком, под Windows XP sp3, вылетает исключение:
XamlParserException:
'DataGrid' object cannot be added to 'Grid'. Exception from HRESULT: 0x88980406 Error at object 'Microsoft.Windows.Controls.DataGrid' in markup file 'UPCW;component/winmain.xaml'.

Вот кусок xaml файла где используется DataGrid:
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
<Window x:Class="UPCW.winMain"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="UPCW" Height="300" Width="600" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="10"></RowDefinition>
                <RowDefinition Height="50"></RowDefinition>
            </Grid.RowDefinitions>
            <my:DataGrid Grid.Row="0" AutoGenerateColumns="False" Name="dgFiles" ItemsSource="{Binding Files}" >
                <my:DataGrid.Columns>
                    <my:DataGridTextColumn Header="Source File" IsReadOnly="True" Binding="{Binding SourceFilePath}"></my:DataGridTextColumn>
                    <my:DataGridTextColumn Header="Destination File Name" Binding="{Binding DestinationFileName}"></my:DataGridTextColumn>
                    <my:DataGridTextColumn Header="File Size" IsReadOnly="True" Binding="{Binding FileSize}"></my:DataGridTextColumn>
                </my:DataGrid.Columns>
            </my:DataGrid>

На моей машине (Win 7 ) все ок.
Скажите, пожалуйста, чем косяк?
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / WPF, Silverlight [игнор отключен] [закрыт для гостей] / 'DataGrid' object cannot be added to 'Grid'.
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]