Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Reference to XamDataGrid inside DataTemplate
posted

Hi!

Below is an exact example of my Xaml file with

<igTiles:XamTilesControl.ItemTemplateMaximized  >
                            <DataTemplate x:Name="Maximus">
                               
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="1*" ></ColumnDefinition>
                                        <ColumnDefinition Width="1*" ></ColumnDefinition>
                                    </Grid.ColumnDefinitions>
                                    <Grid Grid.Column="0" Grid.Row="0" >
                                        <Image Margin="10"
                                        Source="{Binding PlikPodgladu}"
                                        VerticalAlignment="Center"
                                        HorizontalAlignment="Center"
                                    />
                                    </Grid>
                                    <Grid Grid.Column="1" Grid.Row="0" >
                                        <StackPanel>
                                            <Label Content="Produkt:"></Label>
                                            <TextBlock Text="{Binding Produkt}" Foreground="Black" FontSize="14" FontWeight="Bold"></TextBlock>
                                            <Label Content="Nakład:"></Label>
                                            <TextBlock Text="{Binding Naklad}" Foreground="Black" FontSize="14" FontWeight="Bold"></TextBlock>
                                            <Label Content="Termin realizacji:"></Label>
                                            <TextBlock Text="{Binding TerminRealizacji, StringFormat={}{0:dd-MM-yyyy}}" Background="{Binding TerminRealizacji, Converter={StaticResource TermConverter}}"></TextBlock>
                                            <Label Content="Papiery:"></Label>
                                            <TextBlock  Text="{Binding Papier}" Foreground="Black" FontSize="14" FontWeight="Bold"></TextBlock>
                                            <Label Content="Kolorystyka:"></Label>
                                            <TextBlock  Text="{Binding Kolorystyka}" Foreground="Black" FontSize="14" FontWeight="Bold"></TextBlock>
                                            <Label Content="Uszlachetnianie:"></Label>
                                            <TextBlock  Text="{Binding Uszlachetnianie}" Foreground="Black" FontSize="14" FontWeight="Bold"></TextBlock>
                                            <Label Content="Uwagi:"></Label>
                                            <TextBlock  Text="{Binding uwagiNaklejka}" Foreground="Red" FontSize="14" FontWeight="Bold"></TextBlock>
                                        </StackPanel>
                                    </Grid>
                                  
                                    <Grid Grid.Column="0" Grid.Row="1">
                                        <igDP:XamDataGrid HorizontalAlignment="Stretch" Name="KomentarzeDG" AutoFit="True" VerticalAlignment="Stretch" Background="Cornsilk" Theme="Office2k7Blue" GroupByAreaMode="DefaultFieldLayoutOnly">
                                            <igDP:XamDataGrid.GroupByArea>
                                                <igDP:GroupByArea Visibility="Hidden" IsEnabled="False" />
                                            </igDP:XamDataGrid.GroupByArea>
                                            <igDP:XamDataGrid.FieldSettings>
                                                <igDP:FieldSettings AllowResize="True" AllowEdit="False" AllowRecordFiltering="True" FilterClearButtonVisibility="Visible"  />
                                            </igDP:XamDataGrid.FieldSettings>
                                        </igDP:XamDataGrid>
                                    </Grid>
                                    <Grid Grid.Column="1" Grid.Row="1">
                                        <igDP:XamDataGrid HorizontalAlignment="Stretch" Name="UwagiDG" AutoFit="True" VerticalAlignment="Stretch" Background="Cornsilk" Theme="Office2k7Blue" GroupByAreaMode="DefaultFieldLayoutOnly">
                                            <igDP:XamDataGrid.GroupByArea>
                                                <igDP:GroupByArea Visibility="Hidden" />
                                            </igDP:XamDataGrid.GroupByArea>
                                            <igDP:XamDataGrid.FieldSettings>
                                                <igDP:FieldSettings  AllowResize="True"  AllowEdit="False" AllowRecordFiltering="True" FilterClearButtonVisibility="Visible" Width="Auto" />
                                            </igDP:XamDataGrid.FieldSettings>
                                        </igDP:XamDataGrid>
                                    </Grid>
                                </Grid>
                            </DataTemplate>
                        </igTiles:XamTilesControl.ItemTemplateMaximized>

So, inside of my XamTilesControl I have a ItemTemplateMaximized with DataTemplate and inside of it is XamDataGrid. I need to bind some dynamically changed data (I set TileStateChanging event) but I can't find reference to these objects.

Any help will be welcome.

Thanks