Files
ServiceBus98/ServiceBus98/Controls/ServiceBusMessageControl.xaml
2025-09-05 20:21:45 -04:00

48 lines
2.5 KiB
XML

<UserControl x:Class="ServiceBus95.Controls.ServiceBusMessageControl"
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:ServiceBus95.Controls"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" Background="Transparent">
<UserControl.Resources>
<Style x:Key="MessageDetailsLabel" TargetType="{x:Type Label}">
<Setter Property="Width" Value="100" />
<Setter Property="Margin" Value="0,1,0,3" />
</Style>
</UserControl.Resources>
<StackPanel>
<StackPanel Style="{StaticResource FormField}">
<Label Style="{StaticResource MessageDetailsLabel}">Connection String:</Label>
<TextBox Template="{StaticResource TextBox9x}" Width="454" x:Name="ConnectionString"/>
</StackPanel>
<StackPanel Style="{StaticResource FormField}">
<Label Style="{StaticResource MessageDetailsLabel}">Queue Name:</Label>
<TextBox Template="{StaticResource TextBox9x}" Width="454" x:Name="QueueName"/>
</StackPanel>
<StackPanel Style="{StaticResource FormField}">
<Label Style="{StaticResource MessageDetailsLabel}">Content Type:</Label>
<ComboBox Template="{StaticResource ComboBox9x}" IsEditable="True" x:Name="ContentType" Width="454">
<ComboBoxItem>application/json</ComboBoxItem>
<ComboBoxItem>text/plain</ComboBoxItem>
<ComboBoxItem>text/xml</ComboBoxItem>
</ComboBox>
<!--<TextBox Template="{StaticResource TextBox9x}" Text="text/plain"/>-->
</StackPanel>
<StackPanel Style="{StaticResource FormField}">
<Label Style="{StaticResource MessageDetailsLabel}">Message:</Label>
<TextBox Template="{StaticResource TextBox9x}" Padding="0, 3" FontFamily="Lucida Console" AcceptsReturn="True" FontSize="12" x:Name="Message" Width="454" Height="193" />
</StackPanel>
<Border Padding="5" HorizontalAlignment="Right">
<Button x:Name="Send" Click="Send_Click" Template="{StaticResource Button9xTemplate}" Style="{StaticResource ToolWindowButton9x}">Send</Button>
</Border>
</StackPanel>
</UserControl>