<Controls:MetroWindow x:Class="MedicalReminder.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls" xmlns:local="clr-namespace:MedicalReminder" mc:Ignorable="d" Title="Revolution Pill Reminder" Height="450.305" Width="990.318" ResizeMode="CanMinimize" TitleCaps="False" GlowBrush="{DynamicResource AccentColorBrush}" BorderThickness="2" Loaded="MetroWindow_Loaded" Closing="MetroWindow_Closing" Icon="Medicalwp-Medical-Pills-blue.ico"> <Grid Margin="0,0,4,0"> <TabControl x:Name="tabControl" TabStripPlacement="Left" Height="422" VerticalAlignment="Top" Margin="10,0,0,0"> <TabItem Header="Pill List"> <Grid Background="#FFE5E5E5" Margin="0,0,-6,0" HorizontalAlignment="Left" Width="802"> <ListView x:Name="PillList" HorizontalAlignment="Left" Height="412" VerticalAlignment="Top" Width="802" ContextMenuOpening="PillList_ContextMenuOpening"> <ListView.View> <GridView> <GridViewColumn Header="ID" Width="30" DisplayMemberBinding="{Binding ID}"/> <GridViewColumn Header="Pill Name" Width="200" DisplayMemberBinding="{Binding PillName}"/> <GridViewColumn Header="Alert Time" Width="200" DisplayMemberBinding="{Binding AlertTime}"/> <GridViewColumn Header="Sound Alert" Width="200" DisplayMemberBinding="{Binding SoundAlert}"/> <GridViewColumn Header="Status" Width="170" DisplayMemberBinding="{Binding Status}"/> </GridView> </ListView.View> <ListView.ContextMenu> <ContextMenu> <MenuItem Name="AddNewPillContext" Header="Add New Pill" Click="AddNewPill"/> <MenuItem Name="EditPillContext" Header="Edit Pill" IsEnabled="False" Click="EditPill"/> <MenuItem Name="RemovePillContext" Header="Remove Pill" IsEnabled="False" Click="RemovePill"/> <MenuItem Name="PillTakenContext" Header="Pill Taken" IsEnabled="False" Click="PillTakenEvent"/> </ContextMenu> </ListView.ContextMenu> </ListView> </Grid> </TabItem> <TabItem Header="Settings"> <Grid Background="#FFE5E5E5"> <Label x:Name="SettingsLabel" Content="Settings" HorizontalAlignment="Left" Margin="279,10,0,0" VerticalAlignment="Top" Width="156" Height="68" FontSize="36"/> <GroupBox x:Name="SettingsGroupBox" Header="Common Settings" HorizontalAlignment="Left" Height="319" Margin="10,83,0,0" VerticalAlignment="Top" Width="775"> <Grid HorizontalAlignment="Left" Height="284" VerticalAlignment="Top" Width="765" Margin="0,0,-2,-4"> <CheckBox x:Name="SavePillsCheckBox" Content="Save Pills To External File(Recommended)" HorizontalAlignment="Left" Margin="24,236,0,0" VerticalAlignment="Top" Checked="SavePillsChecked_Changed" Unchecked="SavePillsChecked_Changed"/> <Label x:Name="ChooseSoundLabel" Content="Choose Alert Sound:" HorizontalAlignment="Left" Margin="24,47,0,0" VerticalAlignment="Top"/> <RadioButton x:Name="ArmyTrumpetSoundBtn" Content="Army Trumpet" HorizontalAlignment="Left" Margin="24,93,0,0" VerticalAlignment="Top" IsChecked="True" Checked="SoundCheck_Changed"/> <RadioButton x:Name="DizzySoundBtn" Content="Dizzy Sound" HorizontalAlignment="Left" Margin="166,93,0,0" VerticalAlignment="Top" Checked="SoundCheck_Changed"/> <CheckBox x:Name="StartUpCheckBox" Content="Start Program at Windows Startup" HorizontalAlignment="Left" Margin="24,164,0,0" VerticalAlignment="Top" Width="211" Checked="StartupChecked_Changed" Unchecked="StartupChecked_Changed"/> </Grid> </GroupBox> </Grid> </TabItem> <TabItem Header="About"> <Grid Background="#FFE5E5E5"> <GroupBox x:Name="groupBox" Header="About Information" Height="319" Margin="10,83,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="775"> <TextBlock x:Name="AboutTextBlock" HorizontalAlignment="Left" Margin="29,27,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="190" Width="636">Revolution's Pill Reminder is an open source program under the MIT license. The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software. <LineBreak/><LineBreak/> Credits: <LineBreak/>Copyright (c) 2016 MahApps</TextBlock> </GroupBox> <Label x:Name="AboutLabel" Content="About" HorizontalAlignment="Left" Margin="279,10,0,0" VerticalAlignment="Top" Width="156" Height="68" FontSize="36"/> </Grid> </TabItem> </TabControl> </Grid> </Controls:MetroWindow>
P.S For some reason the format of the xaml code has been spoiled using the code tags. I don't know how to dix it
