提交记录修改UI/Controls/Button/IconButton.cs+1 −1看文件
修改UI/Resources/Themes/Dark.xaml+6 −0看文件
修改UI/Resources/Themes/Light.xaml+7 −0看文件
修改UI/Themes/Button/IconButton.xaml+7 −2看文件
修改UI/Themes/Generic.xaml+1 −0看文件
修改UI/Themes/SettingPanel/SettingPanelMultiItem.xaml+42 −14看文件
修改UI/UI.csproj+5 −0看文件
| @@ -10,7 +10,7 @@ using UI.Controls.Base; | ||
| 10 | 10 | |
| 11 | 11 | namespace UI.Controls.Button |
| 12 | 12 | { |
| 13 | 删除: public class IconButton : Control | |
| 13 | 新增: public class IconButton : ContentControl | |
| 14 | 14 | { |
| 15 | 15 | public ICommand Command |
| 16 | 16 | { |
| @@ -103,4 +103,10 @@ | ||
| 103 | 103 | <SolidColorBrush x:Key="InputBoxHoverBrush" Color="{StaticResource InputBoxHoverColor}" /> |
| 104 | 104 | <Color x:Key="InputBoxFocusedBgColor">#4F4E4E</Color> |
| 105 | 105 | <SolidColorBrush x:Key="InputBoxFocusedBgBrush" Color="{StaticResource InputBoxFocusedBgColor}" /> |
| 106 | 新增: | |
| 107 | 新增: <!--expander--> | |
| 108 | 新增: <Color x:Key="ExpanderBgColor">#4F4F4F</Color> | |
| 109 | 新增: <SolidColorBrush x:Key="ExpanderBgBrush" Color="{StaticResource ExpanderBgColor}" /> | |
| 110 | 新增: <Color x:Key="ExpanderContentBgColor">#7e7e7e</Color> | |
| 111 | 新增: <SolidColorBrush x:Key="ExpanderContentBgBrush" Color="{StaticResource ExpanderContentBgColor}" /> | |
| 106 | 112 | </ResourceDictionary> |
| 文件末尾没有换行 | ||
| @@ -102,4 +102,11 @@ | ||
| 102 | 102 | <SolidColorBrush x:Key="InputBoxHoverBrush" Color="{StaticResource InputBoxHoverColor}" /> |
| 103 | 103 | <Color x:Key="InputBoxFocusedBgColor">#FFFFFF</Color> |
| 104 | 104 | <SolidColorBrush x:Key="InputBoxFocusedBgBrush" Color="{StaticResource InputBoxFocusedBgColor}" /> |
| 105 | 新增: | |
| 106 | 新增: <!--expander--> | |
| 107 | 新增: <Color x:Key="ExpanderBgColor">#ffffff</Color> | |
| 108 | 新增: <SolidColorBrush x:Key="ExpanderBgBrush" Color="{StaticResource ExpanderBgColor}" /> | |
| 109 | 新增: <Color x:Key="ExpanderContentBgColor">#f7f7f7</Color> | |
| 110 | 新增: <SolidColorBrush x:Key="ExpanderContentBgBrush" Color="{StaticResource ExpanderContentBgColor}" /> | |
| 111 | 新增: | |
| 105 | 112 | </ResourceDictionary> |
| 文件末尾没有换行 | ||
| @@ -17,9 +17,14 @@ | ||
| 17 | 17 | <!--<Border Background="{TemplateBinding Background}" x:Name="Border">--> |
| 18 | 18 | |
| 19 | 19 | <Border Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" x:Name="BoxBorder" CornerRadius="4" Padding="5" Background="Transparent"> |
| 20 | 删除: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="{DynamicResource StandardTextBrush}" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" > | |
| 20 | 新增: <Grid> | |
| 21 | 新增: | |
| 22 | 新增: <base:Icon x:Name="Icon" IconType="{TemplateBinding Icon}" Foreground="{DynamicResource StandardTextBrush}" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" > | |
| 21 | 23 | |
| 22 | 删除: </base:Icon> | |
| 24 | 新增: </base:Icon> | |
| 25 | 新增: <ContentPresenter /> | |
| 26 | 新增: </Grid> | |
| 27 | 新增: | |
| 23 | 28 | <VisualStateManager.VisualStateGroups> |
| 24 | 29 | <VisualStateGroup x:Name="CommonStates"> |
| 25 | 30 | <VisualStateGroup.Transitions> |
| @@ -40,6 +40,7 @@ | ||
| 40 | 40 | <ResourceDictionary Source="/Tai;component/Themes/Select/Option.xaml"/> |
| 41 | 41 | <ResourceDictionary Source="/Tai;component/Themes/Select/ImageSelect.xaml"/> |
| 42 | 42 | <ResourceDictionary Source="/Tai;component/Themes/Select/DateSelect.xaml"/> |
| 43 | 新增: <ResourceDictionary Source="/Tai;component/Themes/Expander/Expander.xaml"/> | |
| 43 | 44 | |
| 44 | 45 | </ResourceDictionary.MergedDictionaries> |
| 45 | 46 | |
| @@ -2,20 +2,30 @@ | ||
| 2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | 3 | xmlns:local="clr-namespace:UI.Controls.SettingPanel" |
| 4 | 4 | xmlns:base="clr-namespace:UI.Controls.Base" |
| 5 | 删除: xmlns:btn="clr-namespace:UI.Controls.Button"> | |
| 5 | 新增: xmlns:btn="clr-namespace:UI.Controls.Button" | |
| 6 | 新增: xmlns:exp="clr-namespace:UI.Controls.Expander"> | |
| 6 | 7 | <Style TargetType="{x:Type local:SettingPanelMultiItem}"> |
| 7 | 8 | <Setter Property="SnapsToDevicePixels" |
| 8 | 9 | Value="true" /> |
| 9 | 10 | <Setter Property="Margin" Value="0,0,0,20"/> |
| 10 | 删除: | |
| 11 | 删除: <Setter Property="Background" Value="{DynamicResource StandardBackgroundBrush}"/> | |
| 12 | 11 | <Setter Property="Template"> |
| 13 | 12 | <Setter.Value> |
| 14 | 13 | <ControlTemplate TargetType="{x:Type local:SettingPanelMultiItem}"> |
| 15 | 删除: <Border Background="{TemplateBinding Background}" x:Name="Border" CornerRadius="6" > | |
| 14 | 新增: <Border Background="Transparent" x:Name="Border" CornerRadius="6" > | |
| 15 | 新增: <exp:Expander Header="{TemplateBinding Title}" IsExpanded="True"> | |
| 16 | 新增: <Grid> | |
| 17 | 新增: <Grid.RowDefinitions> | |
| 18 | 新增: <RowDefinition Height="auto"/> | |
| 19 | 新增: <RowDefinition Height="auto"/> | |
| 20 | 新增: </Grid.RowDefinitions> | |
| 21 | 新增: <StackPanel x:Name="Container"> | |
| 22 | 新增: </StackPanel> | |
| 16 | 23 | |
| 17 | 删除: <Grid> | |
| 18 | 删除: <Grid.RowDefinitions> | |
| 24 | 新增: <btn:Button Margin="0,10" Grid.Row="1" Content="删除此项" Icon="Delete" Width="80" Background="#f51837" Foreground="White" Command="{TemplateBinding OnRemoveAction}"/> | |
| 25 | 新增: </Grid> | |
| 26 | 新增: | |
| 27 | 新增: </exp:Expander> | |
| 28 | 新增: <!--<Grid.RowDefinitions> | |
| 19 | 29 | <RowDefinition Height="auto"/> |
| 20 | 30 | <RowDefinition Height="*"/> |
| 21 | 31 | |
| @@ -27,24 +37,42 @@ | ||
| 27 | 37 | <btn:IconButton ToolTip="收起" x:Name="FoldBtn" FontSize="14" Command="{TemplateBinding OnFoldAction}" Icon="ChevronUp" Margin="0"></btn:IconButton> |
| 28 | 38 | <btn:IconButton Icon="Delete" FontSize="14" Command="{TemplateBinding OnRemoveAction}" ToolTip="移除此项"></btn:IconButton> |
| 29 | 39 | </StackPanel> |
| 30 | 删除: | |
| 40 | 新增: | |
| 31 | 41 | </Grid> |
| 32 | 42 | <StackPanel x:Name="Container" Grid.Row="1"> |
| 33 | 删除: | |
| 34 | 删除: </StackPanel> | |
| 35 | 删除: | |
| 36 | 删除: </Grid> | |
| 37 | 删除: | |
| 43 | 新增: <StackPanel.RenderTransform> | |
| 44 | 新增: <ScaleTransform ScaleX="1" ScaleY="0"/> | |
| 45 | 新增: </StackPanel.RenderTransform> | |
| 46 | 新增: </StackPanel>--> | |
| 38 | 47 | </Border> |
| 39 | 48 | <ControlTemplate.Triggers> |
| 40 | 删除: <Trigger Property="Fold" | |
| 49 | 新增: <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Fold}" Value="True"> | |
| 50 | 新增: <!--<DataTrigger.EnterActions> | |
| 51 | 新增: <BeginStoryboard> | |
| 52 | 新增: <Storyboard> | |
| 53 | 新增: <DoubleAnimation Storyboard.TargetProperty="(Border.Height)" | |
| 54 | 新增: Storyboard.TargetName="Border" Duration="00:00:0.2" To="100"/> | |
| 55 | 新增: </Storyboard> | |
| 56 | 新增: </BeginStoryboard> | |
| 57 | 新增: </DataTrigger.EnterActions>--> | |
| 58 | 新增: <!--<DataTrigger.ExitActions> | |
| 59 | 新增: <BeginStoryboard> | |
| 60 | 新增: <Storyboard> | |
| 61 | 新增: <DoubleAnimation Storyboard.TargetProperty="(ContentPresenter.RenderTransform). | |
| 62 | 新增: (ScaleTransform.ScaleY)" | |
| 63 | 新增: Storyboard.TargetName="Container" Duration="00:00:0.2" To="0"/> | |
| 64 | 新增: </Storyboard> | |
| 65 | 新增: </BeginStoryboard> | |
| 66 | 新增: </DataTrigger.ExitActions>--> | |
| 67 | 新增: </DataTrigger> | |
| 68 | 新增: <!--<Trigger Property="Fold" | |
| 41 | 69 | Value="True"> |
| 42 | 70 | <Setter TargetName="Container" Property="Visibility" Value="Collapsed"/> |
| 43 | 71 | </Trigger> |
| 44 | 72 | <Trigger Property="Fold" |
| 45 | 73 | Value="False"> |
| 46 | 74 | <Setter TargetName="Container" Property="Visibility" Value="Visible"/> |
| 47 | 删除: </Trigger> | |
| 75 | 新增: </Trigger>--> | |
| 48 | 76 | </ControlTemplate.Triggers> |
| 49 | 77 | </ControlTemplate> |
| 50 | 78 | </Setter.Value> |
| @@ -157,6 +157,7 @@ | ||
| 157 | 157 | <Compile Include="Controls\Converters\HextoColorConverter.cs" /> |
| 158 | 158 | <Compile Include="Controls\DatePickerBar\DatePickerBarItem.cs" /> |
| 159 | 159 | <Compile Include="Controls\DatePickerBar\DatePickerShowType.cs" /> |
| 160 | 新增: <Compile Include="Controls\Expander\Expander.cs" /> | |
| 160 | 161 | <Compile Include="Controls\Input\InputBox.cs" /> |
| 161 | 162 | <Compile Include="Controls\List\BaseList.cs" /> |
| 162 | 163 | <Compile Include="Controls\List\BaseListItem.cs" /> |
| @@ -251,6 +252,10 @@ | ||
| 251 | 252 | <SubType>Designer</SubType> |
| 252 | 253 | <Generator>MSBuild:Compile</Generator> |
| 253 | 254 | </Page> |
| 255 | 新增: <Page Include="Themes\Expander\Expander.xaml"> | |
| 256 | 新增: <SubType>Designer</SubType> | |
| 257 | 新增: <Generator>MSBuild:Compile</Generator> | |
| 258 | 新增: </Page> | |
| 254 | 259 | <Page Include="Resources\Themes\Light.xaml"> |
| 255 | 260 | <Generator>MSBuild:Compile</Generator> |
| 256 | 261 | <SubType>Designer</SubType> |

