|
109 | 109 | <StackPanel Orientation="Horizontal" |
110 | 110 | Margin="0,10,0,0"> |
111 | 111 | <TextBlock Text="Embedding" |
112 | | - Style="{StaticResource MaterialDesignHeadline6TextBlock}" |
113 | | - VerticalAlignment="Center" /> |
| 112 | + Style="{StaticResource MaterialDesignSubtitle2TextBlock}" |
| 113 | + VerticalAlignment="Center" |
| 114 | + Width="140" /> |
114 | 115 | <TextBlock Text="Endpoint:" |
115 | | - Margin="20,0,0,0" |
116 | 116 | VerticalAlignment="Center" |
117 | 117 | Style="{StaticResource MaterialDesignBody2TextBlock}" /> |
118 | 118 | <ComboBox ItemsSource="{Binding EndpointService.AvailableEndpoints,Mode=OneWay}" |
119 | 119 | SelectedItem="{Binding EmbeddingEndpoint,Mode=TwoWay}" |
120 | 120 | Style="{StaticResource MaterialDesignFilledComboBox}" |
| 121 | + Padding="12,5" |
121 | 122 | DisplayMemberPath="DisplayName" |
122 | 123 | MinWidth="120" |
123 | 124 | Margin="12,0,0,0" /> |
|
133 | 134 | <StackPanel Orientation="Horizontal" |
134 | 135 | Margin="0,10,0,0"> |
135 | 136 | <TextBlock Text="Summarization" |
136 | | - Style="{StaticResource MaterialDesignHeadline6TextBlock}" |
| 137 | + Style="{StaticResource MaterialDesignSubtitle2TextBlock}" |
| 138 | + Width="140" |
137 | 139 | VerticalAlignment="Center" /> |
138 | 140 | <materialDesign:PopupBox Padding="2,0" |
139 | 141 | StaysOpen="True" |
140 | | - Margin="10,0,0,0" |
| 142 | + Margin="0,0,0,0" |
141 | 143 | VerticalAlignment="Center" |
142 | | - ToolTip="添加suggestion" |
| 144 | + ToolTip="选择模型" |
| 145 | + ToolTipService.InitialShowDelay="0" |
143 | 146 | Style="{StaticResource MaterialDesignToolPopupBox}" |
144 | 147 | PopupContentTemplate="{StaticResource PopupSelectModelDataTemplate}" |
145 | 148 | PopupContent="{Binding SelectionViewModel,Mode=OneTime}"> |
|
157 | 160 | </materialDesign:PopupBox> |
158 | 161 | <TextBlock Margin="12,0,0,0" |
159 | 162 | VerticalAlignment="Center" |
160 | | - Style="{StaticResource MaterialDesignBody2TextBlock}"> |
161 | | - <TextBlock.Text> |
162 | | - <MultiBinding StringFormat="{}终结点:{0} 模型:{1}"> |
163 | | - <Binding Path="DigestClientPersist.EndPointName" Mode="TwoWay" /> |
164 | | - <Binding Path="DigestClientPersist.ModelName" Mode="OneWay" /> |
165 | | - </MultiBinding> |
166 | | - </TextBlock.Text> |
167 | | - </TextBlock> |
| 163 | + Style="{StaticResource MaterialDesignBody2TextBlock}" |
| 164 | + Text="{Binding Path=DigestClientPersist.ModelName, Mode=OneWay, StringFormat=模型:{0}}" /> |
168 | 165 | </StackPanel> |
169 | | - <TextBlock Text="DbConnection:" |
170 | | - Margin="0,10,0,0" /> |
171 | 166 | <Grid Margin="0,10,0,0"> |
172 | | - <TextBox Text="{Binding DBConnection,Mode=TwoWay}" |
| 167 | + <Grid.ColumnDefinitions> |
| 168 | + <ColumnDefinition Width="Auto" /> |
| 169 | + <ColumnDefinition /> |
| 170 | + </Grid.ColumnDefinitions> |
| 171 | + <TextBlock Text="DbConnection" |
| 172 | + Width="140" |
| 173 | + VerticalAlignment="Center" |
| 174 | + Style="{StaticResource MaterialDesignSubtitle2TextBlock}" /> |
| 175 | + <TextBox Grid.Column="1" |
| 176 | + Text="{Binding DBConnection,Mode=TwoWay}" |
173 | 177 | Style="{StaticResource MaterialDesignFilledTextBox}" /> |
174 | | - <Button Content="{materialDesign:PackIcon Kind=DatabasePlus}" |
| 178 | + <Button Grid.Column="1" |
| 179 | + Content="{materialDesign:PackIcon Kind=DatabasePlus}" |
175 | 180 | Margin="0,0,10,0" |
176 | 181 | Width="28" |
177 | 182 | Height="28" |
|
180 | 185 | Command="{Binding SelectDatabaseCommand}" |
181 | 186 | Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}" /> |
182 | 187 | </Grid> |
183 | | - <StackPanel Orientation="Horizontal"> |
184 | | - <TextBlock Text="APIParallelism:" /> |
| 188 | + <StackPanel Orientation="Horizontal" |
| 189 | + Margin="0,10,0,0"> |
| 190 | + <TextBlock Text="API Parallelism" |
| 191 | + VerticalAlignment="Center" |
| 192 | + Width="140" |
| 193 | + Style="{StaticResource MaterialDesignSubtitle2TextBlock}" /> |
185 | 194 | <TextBox Text="{Binding MaxDigestParallelism,Mode=TwoWay}" |
186 | 195 | Width="80" /> |
187 | 196 | </StackPanel> |
|
0 commit comments