I am making a WPF Application for Listing Schools, but if i load the schools from my mariaDB Table i get a Stackoverflow Exception.
My Schools_View class where i bind the collection to the list and load the Static ressource
<Page x:Class="School_Share.Schools.Schools_View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:School_Share.Schools"
mc:Ignorable="d" Title="">
<Page.DataContext>
<local:Schools_View/>
</Page.DataContext>
<Grid Background="#36393f">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="400"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Border BorderBrush="black" BorderThickness="1" Grid.Column="0">
<StackPanel Orientation="Vertical">
<TextBlock Text="Schools" HorizontalAlignment="Center" Padding="10" FontSize="25" Foreground="#ffffff"/>
<ListView ItemsSource="{Binding Schools}" Background="Transparent"
BorderThickness="0" ItemContainerStyle="{StaticResource SchoolsCard}"/>
</StackPanel>
</Border>
<Border BorderBrush="black" Grid.Column="1">
<StackPanel>
<TextBlock>TEST</TextBlock>
</StackPanel>
</Border>
</Grid>
</Page>
susmi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
13