IconInfoUrlDialog.xaml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <Border x:Class="GeekDesk.Control.Other.IconInfoUrlDialog"
  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="4"
  6. Width="300"
  7. Height="340"
  8. Style="{StaticResource BorderBG}"
  9. >
  10. <Border.Resources>
  11. <Style x:Key="LeftTB" TargetType="TextBlock" BasedOn="{StaticResource TextBlockBaseStyle}">
  12. <Setter Property="Width" Value="40"/>
  13. <Setter Property="TextAlignment" Value="Center"/>
  14. <Setter Property="HorizontalAlignment" Value="Left"/>
  15. <Setter Property="VerticalAlignment" Value="Center"/>
  16. <Setter Property="Margin" Value="0,8,0,0"/>
  17. <Setter Property="FontSize" Value="14"/>
  18. </Style>
  19. </Border.Resources>
  20. <hc:SimplePanel Margin="10">
  21. <StackPanel>
  22. <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"/>
  23. <hc:UniformSpacingPanel Spacing="10" VerticalAlignment="Center">
  24. <TextBlock Text="名称:" Style="{StaticResource LeftTB}"/>
  25. <TextBox x:Name="IconName" Style="{StaticResource MyTextBoxStyle}" Text="{Binding Name, Mode=OneWay}" Width="180" FontSize="14"/>
  26. </hc:UniformSpacingPanel>
  27. <hc:Divider LineStrokeDashArray="3,3" LineStroke="Black"/>
  28. <hc:UniformSpacingPanel Spacing="10" VerticalAlignment="Center">
  29. <TextBlock Text="Url:" Style="{StaticResource LeftTB}"/>
  30. <TextBox x:Name="IconUrl" Style="{StaticResource MyTextBoxStyle}" Text="{Binding Path, Mode=OneWay}" Width="180" FontSize="14"/>
  31. </hc:UniformSpacingPanel>
  32. <hc:Divider LineStrokeDashArray="3,3" LineStroke="Black"/>
  33. <hc:UniformSpacingPanel Spacing="10" VerticalAlignment="Center">
  34. <TextBlock Text="图标:" Style="{StaticResource LeftTB}"/>
  35. <Image x:Name="IconImg" Source="{Binding BitmapImage, Mode=OneWay}" RenderOptions.BitmapScalingMode="HighQuality" Width="60" Height="60"/>
  36. <Button Style="{StaticResource MyBtnStyle}" Content="修改" Click="EditImage"/>
  37. <Button Style="{StaticResource MyBtnStyle}" Content="重置" Click="ReStoreImage"/>
  38. </hc:UniformSpacingPanel>
  39. <hc:Divider LineStrokeDashArray="3,3" LineStroke="Black"/>
  40. <hc:UniformSpacingPanel Spacing="10">
  41. <Button Content="保存" Click="SaveProperty" Style="{StaticResource MyBtnStyle}" Margin="224,-10,-224,0" />
  42. </hc:UniformSpacingPanel>
  43. </StackPanel>
  44. </hc:SimplePanel>
  45. </Border>