CustomIconUrlDialog.xaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <Border x:Class="GeekDesk.Control.Other.CustomIconUrlDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:hc="https://handyorg.github.io/handycontrol"
  5. CornerRadius="3"
  6. Width="400"
  7. Height="230"
  8. Opacity="0.95">
  9. <Border.Resources>
  10. <Style x:Key="LeftTB" TargetType="TextBlock" BasedOn="{StaticResource TextBlockBaseStyle}">
  11. <Setter Property="Width" Value="100"/>
  12. <Setter Property="HorizontalAlignment" Value="Left"/>
  13. <Setter Property="VerticalAlignment" Value="Center"/>
  14. <Setter Property="FontSize" Value="14"/>
  15. </Style>
  16. </Border.Resources>
  17. <Border.Background>
  18. <SolidColorBrush Color="AliceBlue" Opacity="1"/>
  19. </Border.Background>
  20. <hc:SimplePanel Margin="10">
  21. <Grid Margin="8,20,8,20">
  22. <hc:UniformSpacingPanel Spacing="10" Margin="0,10,0,-10">
  23. <TextBlock Text="SVG 图标地址:" Style="{StaticResource LeftTB}"/>
  24. <TextBox x:Name="IconUrl" Text="{Binding Name, Mode=OneWay}" Width="240" FontSize="14"/>
  25. </hc:UniformSpacingPanel>
  26. <hc:UniformSpacingPanel Spacing="10" Margin="0,58.276,0,-58.276">
  27. <TextBlock Text="JSON 配置地址:" Style="{StaticResource LeftTB}"/>
  28. <TextBox x:Name="JsonUrl" Text="{Binding Name, Mode=OneWay}" Width="240" FontSize="14"/>
  29. </hc:UniformSpacingPanel>
  30. <!--<hc:UniformSpacingPanel Spacing="10" Margin="246.206,124.551,-246.206,-124.551">
  31. <Button Content="取消" Click=""
  32. />
  33. <Button Content="保存" Click=""
  34. Background="#5BC0DE"
  35. Foreground="White"/>
  36. </hc:UniformSpacingPanel>-->
  37. </Grid>
  38. <!--<Button Width="22" Height="22" Command="hc:ControlCommands.Close" Style="{StaticResource ButtonIcon}" Foreground="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" hc:IconElement.Geometry="{StaticResource ErrorGeometry}" Padding="0" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,4,4,0"/>-->
  39. </hc:SimplePanel>
  40. </Border>