Loading... 去年折腾了一段时间的WuuTool开发,中间因为种种原因,鸽了。 思来想去,最终还是把它给捡起来,然后进行完善。 # 一.解决问题 ## 1.修复了字体模糊的bug 之前文字在bord内,且bord设置了effect,导致文字胡的简直没法看。 通过查阅,发现应该采用如下方式: ```c# <Grid> <Border Margin="2" BorderThickness="1" Width="180" Height="50" Background="White" CornerRadius="5"> <Border.Effect> <DropShadowEffect Color="#Dcdcdc" ShadowDepth="2" BlurRadius="10" Opacity="0.8" Direction="270" RenderingBias="Performance"/> </Border.Effect> </Border> <StackPanel Margin="5" Orientation="Horizontal" UseLayoutRounding="True"> <Image Margin="5 0" RenderOptions.BitmapScalingMode="HighQuality" Width="30" Stretch="Uniform" Source="{Binding Ico}"/> <TextBlock Margin="10 0" VerticalAlignment="Center" Text="{Binding FileName}"/> </StackPanel> </Grid> ``` 而不是: ```c# <Border Margin="2" BorderThickness="1" Width="180" Height="50" Background="White" CornerRadius="5"> <Border.Effect> <DropShadowEffect Color="#Dcdcdc" ShadowDepth="2" BlurRadius="10" Opacity="0.8" Direction="270" RenderingBias="Performance"/> </Border.Effect> <StackPanel Margin="5" Orientation="Horizontal" UseLayoutRounding="True"> <Image Margin="5 0" RenderOptions.BitmapScalingMode="HighQuality" Width="30" Stretch="Uniform" Source="{Binding Ico}"/> <TextBlock Margin="10 0" VerticalAlignment="Center" Text="{Binding FileName}"/> </StackPanel> </Border> ``` ## 2.解决了ListBoxItem双击事件触发问题 ```c# <ListBox.ItemTemplate> <DataTemplate > <Grid> <Grid.InputBindings> <MouseBinding MouseAction="LeftDoubleClick" Command="{Binding RunAsNormalCommand}"/> </Grid.InputBindings> </Grid> </DataTemplate> </ListBox.ItemTemplate> ``` ## 3.去除了MaterialDesignTheme依赖 由于MaterialDesignTheme主题与自定义样式冲突,导致两者无法并存。因此对MaterialDesignTheme进行了剥离去除。 ## 4.初步完成TextBox美化 ```c# <Grid Margin="5"> <Rectangle HorizontalAlignment="Stretch" Fill="#1ab394" Margin="0 4" Height="1" VerticalAlignment="Bottom"/> <TextBox Height="26" Margin="0 0 5 -10" x:Name="floatNum" MinWidth="150" MaxWidth="150" BorderThickness="0" Background="Transparent" HorizontalAlignment="Center" Text="{Binding FloatStr1}" Cursor="IBeam"> </TextBox> </Grid> ``` # 二.目前进展情况 ## 1.快速启动功能基本完成 ## 2.实用工具:浮点转换完成 # 三.效果   最后修改:2022 年 04 月 23 日 11 : 36 PM © 允许规范转载