<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:av="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="av"
Title="EF-WPF Sample Form"
Height="700" Width="300">
<StackPanel Margin="10">
<!-- Image -->
<Image Source="https://framerusercontent.com/images/LRmkkOk8c7TWErBSS6H9jhFklU.png" Height="50" Width="200" HorizontalAlignment="Center" Margin="0,0,0,10"/>
<!-- Card-like Box -->
<Border BorderBrush="Gray" BorderThickness="1" CornerRadius="5" Padding="10" Margin="0,0,0,0">
<StackPanel>
<TextBlock Text="EF-WPF Sample Form" FontSize="14" FontWeight="Bold" Margin="0,0,0,10"/>
<TextBlock TextWrapping="Wrap"><Run Text="This example illustrates a WPF form. "/><LineBreak/><Run Text="In WPF, you define the user interface in a "/><Run Text=".xaml file"/><Run Text="(front-end) and then it needs to be connected inside python script to manage behaviour and logic."/></TextBlock>
</StackPanel>
</Border>
<!-- Separator -->
<Separator Margin="0,10,0,10"/>
<!-- Label and TextBox -->
<DockPanel Margin="0,0,0,10">
<Label Content="Enter Text:" Height="25" DockPanel.Dock="Left"/>
<TextBox x:Name="UI_textbox_1" Height="25" Width="Auto" />
</DockPanel>
<!-- Label and TextBox -->
<DockPanel Margin="0,0,0,10">
<Label Content="Enter Text:" Height="25" DockPanel.Dock="Left"/>
<TextBox x:Name="UI_textbox_2" Height="25" Width="Auto" />
</DockPanel>
<!-- CheckBox -->
<StackPanel Orientation="Horizontal">
<CheckBox x:Name="UI_checkbox_1" Content="Check me!" Margin="0,0,10,0"/>
<CheckBox x:Name="UI_checkbox_2" Content="Check me!" Margin="0,0,10,0"/>
<CheckBox x:Name="UI_checkbox_3" Content="Check me!" Margin="0,0,10,0"/>
</StackPanel>
<!-- Separator -->
<Separator Margin="0,10,0,5"/>
<!-- ComboBox -->
<Label Content="Choose an option:"/>
<ComboBox x:Name="UI_combobox" HorizontalAlignment="Stretch" Margin="0,0,0,10">
<ComboBoxItem Content="Option 1"/>
<ComboBoxItem Content="Option 2"/>
<ComboBoxItem Content="Option 3"/>
</ComboBox>
<!-- Separator -->
<Separator Margin="0,10,0,5"/>
<!-- Header3 -->
<TextBlock Text="EF WPF-Form Sample" FontSize="12 " FontWeight="Bold" Margin="0,0,0,10"/>
<!-- Search Box for ListBox-->
<DockPanel Margin="0,0,0,10">
<Label Content="🔍Filter:" Height="25" DockPanel.Dock="Left"/>
<TextBox x:Name="UI_search" Height="25" Width="Auto" HorizontalAlignment="Stretch" TextChanged="UIe_search_changed"/>
</DockPanel>
<!-- ListBox with CheckBoxes -->
<ListBox x:Name="UI_listbox" HorizontalAlignment="Stretch" Height="150" SelectionMode="Single">
</ListBox>
<!-- Select All / Deselect All Buttons -->
<!-- Separator -->
<Separator Margin="0,10,0,10"/>
<!-- Button -->
<Button Click="UIe_button_run" Content="Submit!" Width="75" Height="25" Margin="0,0,0,10"/>
</StackPanel>
</Window>