forked from meancrazy/LINQPadOData4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomHeadersDialog.xaml
28 lines (28 loc) · 1.41 KB
/
CustomHeadersDialog.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<Window x:Class="OData4.LINQPadDriver.CustomHeadersDialog"
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:local="clr-namespace:OData4.LINQPadDriver"
mc:Ignorable="d"
Background="{x:Static SystemColors.ControlBrush}"
Width="450"
WindowStartupLocation="CenterScreen"
SizeToContent="Height"
ResizeMode="NoResize"
Title="CustomHeaders" >
<StackPanel Orientation="Vertical" Margin="4" >
<DataGrid AutoGenerateColumns="False" MinHeight="200" ItemsSource="{Binding CustomHeaders}" SelectedItem="{Binding SelectedCustomHeader}">
<DataGrid.Columns>
<DataGridTextColumn Width="*" Header="Name" Binding="{Binding Name}"/>
<DataGridTextColumn Width="*" Header="Value" Binding="{Binding Value}"/>
</DataGrid.Columns>
</DataGrid>
<DockPanel Margin="0,5,0,0">
<Button Padding="4" Content="Remove selected" DockPanel.Dock="Left" Click="Remove_Click" />
<Button Padding="4" Content="Cancel" Margin="4 0 0 0" Width="60" DockPanel.Dock="Right" Click="Cancel_Click" />
<Button Padding="4" Width="60" Margin="0,0,4,0" Click="OK_Click" Content="OK" DockPanel.Dock="Right"/>
<Grid/>
</DockPanel>
</StackPanel>
</Window>