|
18 | 18 | <TextBlock Text="Models" />
|
19 | 19 | </StackPanel>
|
20 | 20 | <StackPanel DockPanel.Dock="Bottom">
|
21 |
| - <UniformGrid Columns="3"> |
| 21 | + <UniformGrid Columns="5"> |
22 | 22 | <Button Content="Add" Command="{Binding AddCommand}" />
|
23 | 23 | <Button Content="Copy" Command="{Binding CopyCommand}" />
|
24 | 24 | <Button Content="Remove" Command="{Binding RemoveCommand}" />
|
| 25 | + <Button Content="Import" Command="{Binding ImportCommand}" /> |
| 26 | + <Button Content="Export" Command="{Binding ExportCommand}" /> |
25 | 27 | </UniformGrid>
|
26 | 28 | </StackPanel>
|
27 | 29 | <ListBox Margin="0,0,0,2"
|
|
63 | 65 | <DataTemplate>
|
64 | 66 | <DockPanel>
|
65 | 67 | <StackPanel DockPanel.Dock="Left">
|
66 |
| - <userControls:CachedImage ImageUrl="{Binding ModelTemplate.ImageIcon, IsAsync=True}" CacheName="{Binding Name}" Placeholder="{StaticResource PlaceholderIcon}" Height="34" Margin="0,1,3,1" RenderOptions.BitmapScalingMode="HighQuality" SnapsToDevicePixels="True"/> |
| 68 | + <userControls:CachedImage ImageUrl="{Binding ModelTemplate.ImageIcon, IsAsync=True}" CacheName="{Binding Name}" Placeholder="{StaticResource PlaceholderIcon}" Height="34" Margin="0,1,3,1" RenderOptions.BitmapScalingMode="HighQuality" SnapsToDevicePixels="True"/> |
67 | 69 | </StackPanel>
|
68 | 70 | <UniformGrid DockPanel.Dock="Right" Columns="1" Margin="2">
|
69 | 71 | <userControls:FontAwesome Icon="" IconStyle="Light" Size="12" VerticalAlignment="Center">
|
|
149 | 151 | </StackPanel>
|
150 | 152 | <StackPanel></StackPanel>
|
151 | 153 | </DockPanel>
|
152 |
| - <TextBlock Text="This model has been converted to ONNX and tested with OnnxStack" /> |
| 154 | + <TextBlock Text="{Binding SelectedModelSet.ModelTemplate.Description}" /> |
153 | 155 |
|
154 | 156 | <!--Preview Images-->
|
155 | 157 | <TextBlock Text="Preview Images" Margin="0,20, 0, 0" />
|
|
392 | 394 |
|
393 | 395 |
|
394 | 396 | </TabItem>
|
395 |
| - </TabControl> |
396 |
| - |
397 | 397 |
|
| 398 | + <TabItem Header="Details" Width="150" Padding="0,0,0,5"> |
398 | 399 |
|
| 400 | + <StackPanel Margin="5"> |
| 401 | + <UniformGrid Columns="3" > |
| 402 | + <DockPanel Margin="0,0,4,0"> |
| 403 | + <StackPanel DockPanel.Dock="Right" > |
| 404 | + <TextBlock /> |
| 405 | + <Button Command="{Binding RenameCommand, ElementName=UI}" Content="Rename" Height="22" Padding="10,0" /> |
| 406 | + </StackPanel> |
| 407 | + <StackPanel> |
| 408 | + <TextBlock Text="Name" /> |
| 409 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.Name}" IsReadOnly="True" /> |
| 410 | + </StackPanel> |
| 411 | + </DockPanel> |
| 412 | + <StackPanel Margin="0,0,4,0"> |
| 413 | + <TextBlock Text="Author" /> |
| 414 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.Author}" /> |
| 415 | + </StackPanel> |
| 416 | + </UniformGrid> |
| 417 | + <StackPanel Margin="0,5,0,0"> |
| 418 | + <TextBlock Text="Description" /> |
| 419 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.Description}" /> |
| 420 | + </StackPanel> |
| 421 | + <StackPanel Margin="0,5,0,0" > |
| 422 | + <TextBlock Text="Repository" /> |
| 423 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.Repository}" /> |
| 424 | + </StackPanel> |
| 425 | + <UniformGrid> |
| 426 | + <StackPanel Margin="0,5,5,0"> |
| 427 | + <TextBlock Text="Icon Image" /> |
| 428 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ImageIcon}" /> |
| 429 | + <TextBlock Text="Preview Images" Margin="0,5,0,0"/> |
| 430 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.Images[0]}" Margin="0,2,0,0" /> |
| 431 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.Images[1]}" Margin="0,5,0,0" /> |
| 432 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.Images[2]}" Margin="0,5,0,0" /> |
| 433 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.Images[3]}" Margin="0,5,0,0" /> |
| 434 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.Images[4]}" Margin="0,5,0,0" /> |
| 435 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.Images[5]}" Margin="0,5,0,0" /> |
| 436 | + </StackPanel> |
399 | 437 |
|
| 438 | + <StackPanel Margin="5,5,0,0"> |
| 439 | + <TextBlock Text="Download Files" /> |
| 440 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[0]}" /> |
| 441 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[1]}" Margin="0,5,0,0" /> |
| 442 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[2]}" Margin="0,5,0,0" /> |
| 443 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[3]}" Margin="0,5,0,0" /> |
| 444 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[4]}" Margin="0,5,0,0" /> |
| 445 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[5]}" Margin="0,5,0,0" /> |
| 446 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[6]}" Margin="0,5,0,0" /> |
| 447 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[7]}" Margin="0,5,0,0" /> |
| 448 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[8]}" Margin="0,5,0,0" /> |
| 449 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[9]}" Margin="0,5,0,0" /> |
| 450 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[10]}" Margin="0,5,0,0" /> |
| 451 | + <TextBox Text="{Binding SelectedModelSet.ModelTemplate.ModelFiles[11]}" Margin="0,5,0,0" /> |
| 452 | + </StackPanel> |
400 | 453 |
|
| 454 | + </UniformGrid> |
| 455 | + </StackPanel> |
| 456 | + </TabItem> |
| 457 | + </TabControl> |
401 | 458 |
|
402 | 459 | </DockPanel>
|
403 | 460 |
|
404 |
| - |
405 | 461 | </DockPanel>
|
406 | 462 |
|
407 | 463 | <DockPanel DockPanel.Dock="Bottom">
|
|
0 commit comments