-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathModifyOffset.xaml
82 lines (82 loc) · 3.62 KB
/
ModifyOffset.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<Window x:Class="KafkaSniffer.ModifyOffset"
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:KafkaSniffer"
mc:Ignorable="d"
Title="Modify Offset" Height="Auto" Width="500" SizeToContent="Height" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
<Window.Resources>
<Style TargetType="Label">
<Setter Property="Width" Value="80" />
<Setter Property="HorizontalContentAlignment" Value="Right" />
</Style>
<Style TargetType="Grid">
<Setter Property="Margin" Value="0,5" />
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<GroupBox Grid.Row="0" Header="Parameter">
<StackPanel>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0">Endpoint:</Label>
<TextBox Width="Auto" Grid.Column="1" Text="{Binding EndPoint}"/>
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0">Topic:</Label>
<TextBox Width="Auto" Grid.Column="1" Text="{Binding Topic}"/>
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0">Group ID:</Label>
<TextBox Width="Auto" Grid.Column="1" Text="{Binding GroupId}"/>
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="1" Click="Refresh_Click">Refresh</Button>
<Button Grid.Column="2" Click="Apply_Click">Apply</Button>
</Grid>
</StackPanel>
</GroupBox>
<GroupBox Grid.Row="1" Header="Topic Partition Offset Setup">
<ItemsControl ItemsSource="{Binding TopicPartionList}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label>Partition:</Label>
<Label>
<TextBlock Text="{Binding Partition}"/>
</Label>
<Label>Offset:</Label>
<TextBox Text="{Binding Offset}" ToolTip="{Binding Tooltip}"/>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</GroupBox>
</Grid>
</Window>