EmailForm.xaml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <wpf:ThemableWindow x:Class="PRSDesktop.EmailForm"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:dynamicgrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.DynamicGrid"
  7. xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
  8. WindowStartupLocation="CenterOwner"
  9. mc:Ignorable="d"
  10. Title="Compose Message" Height="700" Width="1000">
  11. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="80" />
  14. <ColumnDefinition Width="Auto" />
  15. <ColumnDefinition Width="*" />
  16. <ColumnDefinition Width="160" />
  17. </Grid.ColumnDefinitions>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="Auto" />
  20. <RowDefinition Height="Auto" />
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="Auto" />
  23. <RowDefinition Height="*" />
  24. </Grid.RowDefinitions>
  25. <Button x:Name="Send" Grid.Row="0" Grid.Column="0" Grid.RowSpan="4" Margin="5,5,0,5" Click="SendClick">
  26. <StackPanel Orientation="Vertical" VerticalAlignment="Center">
  27. <Image x:Name="EmailImage" Source="pack://application:,,,/Resources/email.png" Width="32" />
  28. <Label Content="Send" />
  29. </StackPanel>
  30. </Button>
  31. <Label Content="To:" Grid.Row="0" Grid.Column="1" Margin="5" />
  32. <TextBox x:Name="To" Grid.Row="0" Grid.Column="2" Margin="0,5,5,5" Background="LightYellow"
  33. VerticalContentAlignment="Center" />
  34. <Label Content="CC:" Grid.Row="1" Grid.Column="1" Margin="5,0,5,5" />
  35. <TextBox x:Name="CC" Grid.Row="1" Grid.Column="2" Margin="0,0,5,5" Background="LightYellow"
  36. VerticalContentAlignment="Center" />
  37. <Label Content="BCC:" Grid.Row="2" Grid.Column="1" Margin="5,0,5,5" />
  38. <TextBox x:Name="BCC" Grid.Row="2" Grid.Column="2" Margin="0,0,5,5" Background="LightYellow"
  39. VerticalContentAlignment="Center" />
  40. <Label Content="Re:" Grid.Row="3" Grid.Column="1" Margin="5,0,5,5" />
  41. <DockPanel Grid.Row="3" Grid.Column="2" Margin="0,0,5,5">
  42. <Button x:Name="ApplyTemplate" DockPanel.Dock="Right" Content=".." Padding="10,0,10,0" Margin="5,0,0,0"
  43. Click="ApplyTemplate_Click" />
  44. <TextBox x:Name="Subject" Background="LightYellow" DockPanel.Dock="Left" VerticalContentAlignment="Center" />
  45. </DockPanel>
  46. <DockPanel Grid.Row="0" Grid.Column="3" Margin="0,5,5,5">
  47. <Button x:Name="AddAttachment" Content="+" DockPanel.Dock="Left" Click="AddAttachment_Click" Width="25" />
  48. <Button x:Name="DeleteAttachment" Content="-" DockPanel.Dock="Right" Click="DeleteAttachment_Click"
  49. Width="25" />
  50. <Label Content="Attachments" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
  51. </DockPanel>
  52. <ListBox x:Name="Attachments" Grid.Row="1" Grid.RowSpan="3" Grid.Column="3" Grid.ColumnSpan="2"
  53. Margin="0,0,5,5" Background="LightYellow" DisplayMemberPath="Item1" />
  54. <dynamicgrid:RichTextEditor x:Name="Body" Grid.Row="4" Grid.ColumnSpan="4" Background="LightYellow"
  55. Margin="5,0,5,5" />
  56. <!--<Button x:Name="OK" Content="OK" Grid.Row="5" Grid.Column="2" Margin="0,0,5,5" Click="OK_Click" IsEnabled="false"/>
  57. <Button x:Name="Cancel" Content="Cancel" Grid.Row="5" Grid.Column="3" Margin="0,0,5,5" Click="Cancel_Click"/>-->
  58. </Grid>
  59. </wpf:ThemableWindow>