Untitled
unknown
plain_text
2 years ago
15 kB
5
Indexable
<Grid> <Grid x:Name="panelstud" Visibility="Visible" Height="Auto" Opacity="0.9" Background="{StaticResource Background}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="200,0,0,0"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <materialDesign:Card VerticalAlignment="Top" Grid.Row="0" HorizontalContentAlignment="Stretch" materialDesign:ElevationAssist.Elevation="Dp12" UniformCornerRadius="5" Height="70" Background="{StaticResource ContentBackground}" Margin="10,30"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch"> <Button Width="70" Height="50" Margin="10,10,0,10" HorizontalAlignment="Left" Foreground="{StaticResource Highlighter}" x:Name="btnaddstudent" Click="Btnaddstudent_OnClick" Background="{x:Null}" BorderThickness="0" ToolTip="Add"> <materialDesign:PackIcon Kind="Plus" Margin="0" Height="30" Width="30" VerticalAlignment="Stretch" Foreground="{StaticResource Highlighter}" HorizontalAlignment="Stretch" RenderTransformOrigin="0.543,0.5"/> </Button> <Button Width="70" Height="50" Margin="10,10,0,10" HorizontalAlignment="Left" Foreground="{StaticResource Highlighter}" Background="{x:Null}" BorderThickness="0" ToolTip="Add" Click="ButtonBase_OnClick"> <materialDesign:PackIcon Kind="Edit" Margin="0" Height="30" Width="30" Foreground="{StaticResource Highlighter}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0.543,0.5"/> </Button> <Button Width="70" Height="50" Margin="10,10,0,10" HorizontalAlignment="Left" Foreground="{StaticResource Highlighter}" Background="{x:Null}" BorderThickness="0" ToolTip="Add" x:Name="btnstudentprofile" Click="btnstudentprofile_Click"> <materialDesign:PackIcon Kind="Person" Margin="0" Height="30" Width="30" Foreground="{StaticResource Highlighter}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0.543,0.5"/> </Button> <Button Width="70" Height="50" Margin="10,10,0,10" IsEnabled="False" HorizontalAlignment="Left" Foreground="{StaticResource Highlighter}" x:Name="btndelete" Background="{x:Null}" BorderThickness="0" ToolTip="Delete" Click="Btndelete_OnClick"> <materialDesign:PackIcon Kind="Delete" Margin="0" Height="30" Width="30" Foreground="{StaticResource Highlighter}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0.543,0.5"/> </Button> <Button Width="70" Height="50" Margin="10,10,0,10" x:Name="studrefresh" HorizontalAlignment="Left" Foreground="{StaticResource Highlighter}" Click="Studrefresh_OnClick" Background="{x:Null}" BorderThickness="0" ToolTip="Refresh"> <materialDesign:PackIcon Kind="Refresh" Margin="0" Height="30" Width="30" Foreground="{StaticResource Highlighter}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0.543,0.5"/> </Button> <StackPanel Margin="0" VerticalAlignment="Center"> <StackPanel Height="50" Margin="10" Width="2" Background="{StaticResource SeparatorColor}"/> </StackPanel> <TextBox materialDesign:HintAssist.Hint="Search..." Margin="15" Width="350" x:Name="txtsearchstudent" materialDesign:HintAssist.HintOpacity="0.4" SelectionBrush="{StaticResource SeparatorColor}" materialDesign:HintAssist.IsFloating="True" PreviewTextInput="Txtsearchstudent_OnPreviewTextInput" TextChanged="txtsearchstudent_OnTextChanged" Foreground="{StaticResource TextColor}" CaretBrush="{StaticResource SeparatorColor}" FontSize="15" FontWeight="Normal"/> <Button Width="70" Height="50" x:Name="btnclosesearch" BorderBrush="Transparent" Click="Btnclosesearch_OnClick" Background="Transparent"> <materialDesign:PackIcon Kind="CloseCircle" Margin="0" Height="30" Width="30" Foreground="{StaticResource Highlighter}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" RenderTransformOrigin="0.543,0.5"/> </Button> <!--material Search bar--> <StackPanel Margin="0" VerticalAlignment="Center"> <StackPanel Height="50" Margin="10" Width="2" Background="{StaticResource SeparatorColor}"/> </StackPanel> <StackPanel HorizontalAlignment="Right" Orientation="Horizontal"> <TextBlock Text="()" x:Name="txtstudentcount" VerticalAlignment="Center" Foreground="{StaticResource SubTextColor}"/> </StackPanel> </StackPanel> </materialDesign:Card> <Grid Height="Auto" Grid.Row="1" Margin="0 ,0,0,0"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <ProgressBar Grid.Row="0" x:Name="studprogress" Visibility="Collapsed" IsIndeterminate="True" Foreground="{StaticResource ButtonColor}"/> <ListBox Grid.Row="1" x:Name="ListStudents" ItemsSource="{Binding Students}" Margin="20" ScrollViewer.VerticalScrollBarVisibility="Visible" SelectionMode="Single" SelectionChanged="ListStudents_OnSelectionChanged"> <ListBox.ItemTemplate> <DataTemplate> <materialDesign:Card x:Name="studcard" Margin="0" Width="300" Height="150" UniformCornerRadius="10" Background="{x:Null}" BorderBrush="{x:Null}" Padding="0"> <Grid Margin="5"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="110"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Border Grid.Row="0" Grid.Column="0" Background="{StaticResource Highlighter}" VerticalAlignment="Center" Width="110" Height="110" HorizontalAlignment="Left" CornerRadius="55"> <Border Width="105" Height="105" CornerRadius="55"> <Border.Background> <ImageBrush x:Name="studimage" ImageSource="{Binding img}" Stretch="UniformToFill" /> </Border.Background> </Border> </Border> <Grid Grid.Row="0" Grid.Column="1" Margin="5" VerticalAlignment="Center"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding LRN}" FontSize="12" Height="20" FontFamily="Tahoma" FontWeight="Bold" Foreground="{StaticResource Highlighter}" /> <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding fullname}" FontSize="12" Height="20" FontFamily="Tahoma" FontWeight="Bold" Foreground="{StaticResource TextColor}" /> <TextBlock Grid.Row="2" Grid.Column="0" Text="{Binding gender}" FontSize="12" Height="20" FontFamily="Tahoma" FontWeight="Light" Foreground="{StaticResource TextColor}" /> <Separator Grid.Row="3" Grid.Column="0" Margin="0,5" Opacity="0.4" /> <TextBlock Grid.Row="4" Grid.Column="0" Text="{Binding guardian_name}" FontSize="12" Height="20" FontFamily="Tahoma" FontWeight="Light" Foreground="{StaticResource TextColor}" /> <TextBlock Grid.Row="5" Grid.Column="0" Text="{Binding guardian_mobile}" FontSize="12" Height="20" FontFamily="Tahoma" FontWeight="Light" Foreground="{StaticResource TextColor}" /> <TextBlock Grid.Row="6" Grid.Column="0" FontSize="12" Height="20" FontFamily="Tahoma" FontWeight="Light"><Run Text="Last DA: " Foreground="{StaticResource SubTextColor}"/><Run Text=" "/><Run Text="{Binding last_date_attended}" Foreground="{StaticResource Highlighter}"/></TextBlock> </Grid> </Grid> </materialDesign:Card> </DataTemplate> </ListBox.ItemTemplate> <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel /> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> </Grid> </Grid> <!--left panel--> <Grid x:Name="grid" Background="Black" Width="200" HorizontalAlignment="Left"> <StackPanel> <Grid Height="150" VerticalAlignment="Top" > <Button x:Name="BTNclose" Width="60" Height="60" PreviewMouseLeftButtonDown="BTNclose_PreviewMouseLeftButtonDown" Background="{x:Null}" BorderBrush="{x:Null}" VerticalAlignment="Top" HorizontalAlignment="Right" Visibility="Visible" Foreground="{StaticResource Highlighter}"> <materialDesign:PackIcon Kind="ArrowLeft" Height ="25" Width="25"/> </Button> <Button x:Name="BTNexpand" Width="60" Height="60" Background="{x:Null}" BorderBrush="{x:Null}" PreviewMouseLeftButtonDown="BTNexpand_PreviewMouseLeftButtonDown" VerticalAlignment="Top" HorizontalAlignment="Right" Visibility="Collapsed" Foreground="{StaticResource Highlighter}"> <materialDesign:PackIcon Kind="Menu" Height ="25" Width="25"/> </Button> </Grid> <ListView Foreground="{StaticResource Highlighter}" VerticalAlignment="Stretch" Background="{StaticResource Header}" VerticalContentAlignment="Stretch" BorderBrush="{x:Null}" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled"> <ListViewItem Height="60" x:Name="dbrd"> <StackPanel x:Name="btnborad" Orientation="Horizontal"> <materialDesign:PackIcon Kind="ViewDashboard" Margin="10" Height="30" Width="30" VerticalAlignment="Center"/> <TextBlock Text="Home" VerticalAlignment="Center" Margin="20,10"/> </StackPanel> </ListViewItem> </ListView> </StackPanel> </Grid> </Grid>
Editor is loading...