Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev pull request master #119

Merged
merged 128 commits into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
8488f7b
Revert "Update README-zh.md"
yanjinhuagood May 27, 2024
5f5a5ea
Reapply "dev pull request master"
yanjinhuagood May 27, 2024
fb327cb
Update Language.ko-KR.resx
vickyqu115 May 28, 2024
b2748cb
add PackIconKind.ChevronUp
zhaotianff May 29, 2024
cbff057
Merge pull request #100 from zhaotianff/dev
yanjinhuagood May 29, 2024
4052914
MesageBox Buttons support Radius
yanjinhuagood Jun 16, 2024
6fb36a7
Update ChartRect.cs
yanjinhuagood Jun 16, 2024
5f2d7d2
Update BasicControlsExample.xaml.cs
yanjinhuagood Jun 16, 2024
785f86f
Update BasicControlsExample.xaml
yanjinhuagood Jun 16, 2024
a068165
Update Theme.xaml
yanjinhuagood Jun 16, 2024
a1b42d1
Update Styles.ComboBox.xaml
yanjinhuagood Jul 4, 2024
d677060
Update MultiSelectComboBox.xaml
yanjinhuagood Jul 4, 2024
77ea394
Update MultiSelectSearchComboBox.xaml
yanjinhuagood Jul 4, 2024
84f29b1
Fix issue( #102 )
yanjinhuagood Jul 4, 2024
82a40aa
Update MultiSelectSearchComboBoxExample.xaml.cs
yanjinhuagood Jul 4, 2024
573a106
Update MultiSelectSearchComboBoxExample.xaml
yanjinhuagood Jul 4, 2024
0f6f16f
Update MultiSelectComboBoxExample.xaml
yanjinhuagood Jul 4, 2024
66e2cc4
Fix issue( #102 )
yanjinhuagood Jul 5, 2024
389d97c
Update MultiSelectSearchComboBoxExample.xaml.cs
yanjinhuagood Jul 15, 2024
c308669
Fix issue( #104 )
yanjinhuagood Jul 15, 2024
01f6def
Fix issue( #102 )
yanjinhuagood Jul 17, 2024
a91301d
Update MultiSelectComboBox.cs
yanjinhuagood Jul 17, 2024
75826d3
Update Language.en-US.resx
yanjinhuagood Jul 17, 2024
d632db4
Update Language.ko-KR.resx
yanjinhuagood Jul 17, 2024
07f77b4
Update Language.resx
yanjinhuagood Jul 17, 2024
49d494a
Update ChartLine.cs
yanjinhuagood Jul 24, 2024
72c619b
Update ChartBar.cs
yanjinhuagood Jul 24, 2024
e2632a8
Create ChartPie
yanjinhuagood Jul 24, 2024
fe7f621
Update ElementHelper.cs
yanjinhuagood Jul 24, 2024
c0dae74
Update ChartLineExample.xaml.cs
yanjinhuagood Jul 24, 2024
7bb306b
Update WDMessageBox.cs
SwaggyMacro Aug 15, 2024
d7613a5
Merge pull request #107 from SwaggyMacro/patch-1
yanjinhuagood Aug 15, 2024
dac14f7
Fix issue( #105 )
yanjinhuagood Aug 19, 2024
75f0c94
Merge branch 'dev' of https://github.com/WPFDevelopersOrg/WPFDevelope…
yanjinhuagood Aug 19, 2024
010e69a
Update SliderRepeatButton.cs
yanjinhuagood Aug 19, 2024
da7bde9
Update WDBorder.cs
yanjinhuagood Aug 19, 2024
ba822ba
Update WDMessageBox.cs
yanjinhuagood Aug 19, 2024
e002c89
Update TimeSelector.cs
yanjinhuagood Aug 19, 2024
8883542
Fix issue( #105 )
yanjinhuagood Aug 19, 2024
aabe5c0
Update TimePickerExample.xaml
yanjinhuagood Aug 19, 2024
e5f5723
Update LoadingGroup.xaml
yanjinhuagood Aug 24, 2024
5dbf533
Create StreamerLoading
yanjinhuagood Aug 24, 2024
ab6f3db
Update WaitLoadingExample.xaml
yanjinhuagood Aug 24, 2024
8f1e4d2
Update StreamerLoadingExample.xaml
yanjinhuagood Aug 24, 2024
c6f9308
Update RollLoadingExample.xaml
yanjinhuagood Aug 24, 2024
4ad3988
Update RingLoadingExample.xaml
yanjinhuagood Aug 24, 2024
47687ed
Update CycleLoadingExample.xaml
yanjinhuagood Aug 24, 2024
a0a1fda
Update BallLoadingExample.xaml
yanjinhuagood Aug 24, 2024
a2c07f0
Update LoadingGroup.xaml
yanjinhuagood Aug 24, 2024
8f256db
Update WaitLoading.cs
yanjinhuagood Aug 24, 2024
e35a3fd
Update RollLoading.cs
yanjinhuagood Aug 24, 2024
b38c87a
Update RingLoading.cs
yanjinhuagood Aug 24, 2024
61c201a
Create LoadingBase.cs
yanjinhuagood Aug 24, 2024
da9b13a
Update CycleLoading.cs
yanjinhuagood Aug 24, 2024
78ff01a
Update BallLoading.cs
yanjinhuagood Aug 24, 2024
4434a2a
Update ScreenCut.cs
yanjinhuagood Sep 5, 2024
183c08f
Fix issue (#108 )
yanjinhuagood Sep 5, 2024
0c2f6c8
Fix Issue (#109)
yanjinhuagood Sep 17, 2024
f022f9c
Update Styles.Label.xaml
yanjinhuagood Sep 17, 2024
08bd8b2
Update TimePickerExample.xaml
yanjinhuagood Sep 17, 2024
691ed2e
Update TimePickerExample.xaml.cs
yanjinhuagood Sep 17, 2024
77263a5
Create PanelHelper.cs
yanjinhuagood Sep 17, 2024
55d9ecd
Update AnimationAudioExample.xaml
yanjinhuagood Sep 17, 2024
9f0d180
Update App.xaml
yanjinhuagood Sep 17, 2024
d514848
Update ChartPieExample.xaml.cs
yanjinhuagood Sep 17, 2024
687a616
Update BasicControlsExample.xaml
yanjinhuagood Sep 17, 2024
c213c76
Delete Styles.ThemeControl.xaml
yanjinhuagood Sep 17, 2024
7ea206a
Delete ThemeControl.cs
yanjinhuagood Sep 17, 2024
b07b9b0
Delete ThemeModel.cs
yanjinhuagood Sep 17, 2024
8eae450
Create Theme
yanjinhuagood Sep 17, 2024
bc89d5b
Update BallLoadingExample.xaml
yanjinhuagood Sep 17, 2024
89be9bf
Update CycleLoadingExample.xaml
yanjinhuagood Sep 17, 2024
79200ab
Update RingLoadingExample.xaml
yanjinhuagood Sep 17, 2024
ad5dc1f
Update RollLoadingExample.xaml
yanjinhuagood Sep 17, 2024
e062fc3
Update StreamerLoadingExample.xaml
yanjinhuagood Sep 17, 2024
85fe905
Update WaitLoadingExample.xaml
yanjinhuagood Sep 17, 2024
28fb51a
Update MaskExample.xaml
yanjinhuagood Sep 17, 2024
826a925
Update NumericBoxExample.xaml
yanjinhuagood Sep 17, 2024
8edcf64
Update PathIconExample.xaml
yanjinhuagood Sep 17, 2024
72c15dd
Update WPFDevelopers.Samples.Shared.projitems
yanjinhuagood Sep 17, 2024
7623b0f
Update WPFDevelopers.SamplesCode.csproj
yanjinhuagood Sep 17, 2024
fbb595d
Update ChartBar.cs
yanjinhuagood Sep 17, 2024
991b462
Update ChartBase.cs
yanjinhuagood Sep 17, 2024
6ea6bc0
Update ChartLine.cs
yanjinhuagood Sep 17, 2024
2639106
Update ChartPie.cs
yanjinhuagood Sep 17, 2024
459619c
Update ChartRadar.cs
yanjinhuagood Sep 17, 2024
b9433b1
Update ChartRect.cs
yanjinhuagood Sep 17, 2024
56cfeda
Update ControlsHelper.cs
yanjinhuagood Sep 17, 2024
4be92a8
Create FormatExtensions.cs
yanjinhuagood Sep 17, 2024
3fd4f70
Update Message.cs
yanjinhuagood Sep 17, 2024
50ccb57
Update MessageListBoxItem.cs
yanjinhuagood Sep 17, 2024
6b36af3
Update MultiSelectComboBox.cs
yanjinhuagood Sep 17, 2024
8b87a4f
Update MultiSelectListBox.cs
yanjinhuagood Sep 17, 2024
ac45330
Update MultiSelectSearchComboBox.cs
yanjinhuagood Sep 17, 2024
902353b
fix up some unfindable files issues
loveyou3thousand Sep 18, 2024
dd55dda
Merge pull request #110 from loveyou3thousand/dev
yanjinhuagood Sep 18, 2024
b60970c
Update AnimationAudio.xaml
yanjinhuagood Sep 18, 2024
6bf04b4
add in SpacingExample
yanjinhuagood Oct 7, 2024
bba6f08
Update BadgeExample.xaml
yanjinhuagood Oct 17, 2024
a676306
Update BasicControlsExample.xaml
yanjinhuagood Oct 17, 2024
ee93956
Update MainWindow.xaml.cs
yanjinhuagood Oct 17, 2024
2a8f1e4
Create NotifyIconExample
yanjinhuagood Oct 17, 2024
bd6c8a9
Update StarrySkyExample.xaml
yanjinhuagood Oct 17, 2024
e396eaa
Update ScreenCutExample.xaml.cs
yanjinhuagood Oct 17, 2024
03edaea
Update NumericBoxExample.xaml
yanjinhuagood Oct 17, 2024
ae706a4
Update TimePickerExample.xaml
yanjinhuagood Oct 17, 2024
63d7bf9
Update MenuEnum.cs
yanjinhuagood Oct 17, 2024
c16b835
Update MainVM.cs
yanjinhuagood Oct 17, 2024
48e9c3c
Update WPFDevelopers.Samples.Shared.projitems
yanjinhuagood Oct 17, 2024
82a6462
Update WPFDevelopers.Samples.Shared.projitems
yanjinhuagood Oct 17, 2024
ac376d2
Update WPFDevelopers.SamplesCode.csproj
yanjinhuagood Oct 17, 2024
1a0bd1c
Update Styles.ComboBox.xaml
yanjinhuagood Oct 17, 2024
f422b51
Update Styles.DatePicker.xaml
yanjinhuagood Oct 17, 2024
a166a7d
Update Dark.Color.xaml
yanjinhuagood Oct 17, 2024
c822468
Update Message.xaml
yanjinhuagood Oct 17, 2024
f77e955
Update MultiSelectComboBox.xaml
yanjinhuagood Oct 17, 2024
915cc35
Update MultiSelectSearchComboBox.xaml
yanjinhuagood Oct 17, 2024
345c542
Update ScreenCut.xaml
yanjinhuagood Oct 17, 2024
2f86b56
Update TimePicker.xaml
yanjinhuagood Oct 17, 2024
484f8bf
Fix Issue (#113)
yanjinhuagood Oct 21, 2024
3f6b4b0
Fix Issue (#112 )
yanjinhuagood Oct 29, 2024
93f04ab
Fix Issue (#114 )
yanjinhuagood Nov 2, 2024
9d8eaec
add in DrawerMenu Example
yanjinhuagood Nov 5, 2024
bc0d44e
add in Drawer
yanjinhuagood Nov 5, 2024
60be04d
update in Theme.txt
yanjinhuagood Nov 11, 2024
d183d48
update in theme
yanjinhuagood Nov 17, 2024
eeacf3a
add in DateRangePicker (#118 )
yanjinhuagood Nov 17, 2024
e806180
dev merge master
yanjinhuagood Nov 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

### [ Wiki→ 正在进行快速更新](https://gitee.com/WPFDevelopersOrg/WPFDevelopers/wikis/pages)

### 此项目包含了 微信公众号 《 WPF开发者》 日常开发分享,欢迎<kbd>Star🌟</kbd>。
### 此项目包含了 微信公众号 《 WPF开发者》 日常开发分享,欢迎<kbd>Star</kbd>。

### 运行环境 Visual Studio 2022

Expand Down
6,703 changes: 0 additions & 6,703 deletions src/WPFDevelopers.Net40/Themes/Theme.xaml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/WPFDevelopers.Net40/WPFDevelopers.Net40.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFramework>net40</TargetFramework>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>E:\Code\git\WPFDevelopers\WPFDevelopersMultiple\WPFDevelopers.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<Import Project="..\WPFDevelopers.Shared\WPFDevelopers.Shared.projitems" Label="Shared" />
<Import Project="..\Microsoft.Windows.Shell\Microsoft.Windows.Shell.projitems" Label="Shared" />
Expand Down
6,705 changes: 1 addition & 6,704 deletions src/WPFDevelopers.Net45x/Themes/Theme.xaml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/WPFDevelopers.Net45x/WPFDevelopers.Net45x.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<PropertyGroup>
<UseWindowsForms>true</UseWindowsForms>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>E:\Code\git\WPFDevelopers\WPFDevelopersMultiple\WPFDevelopers.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<Import Project="..\WPFDevelopers.Shared\WPFDevelopers.Shared.projitems" Label="Shared" />
<Import Project="..\Microsoft.Windows.Shell\Microsoft.Windows.Shell.projitems" Label="Shared" />
Expand Down
1 change: 1 addition & 0 deletions src/WPFDevelopers.Samples.Shared/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<ResourceDictionary Source="pack://application:,,,/WPFDevelopers.Samples;component/Controls/TransformLayout/TransformLayout.xaml" />
<ResourceDictionary Source="pack://application:,,,/WPFDevelopers.Samples;component/ExampleViews/DrapView/Controls/TransformThumb.xaml" />
<ResourceDictionary Source="pack://application:,,,/WPFDevelopers.Samples;component/Controls/NavigateMenu/NavigateMenu.xaml" />
<ResourceDictionary Source="pack://application:,,,/WPFDevelopers.Samples;component/Controls/Loadings/StreamerLoading.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style TargetType="avalonedit:TextEditor">
<Setter Property="Foreground" Value="{DynamicResource WD.PrimaryTextSolidColorBrush}" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Windows;
using System.Windows.Controls;

namespace WPFDevelopers.Controls
namespace WPFDevelopers.Samples.Controls
{
public class StreamerLoading : Control
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls"
xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers">
<Style
x:Key="WD.StreamerLoading"
BasedOn="{StaticResource WD.ControlBasicStyle}"
TargetType="{x:Type controls:StreamerLoading}">
<Setter Property="Width" Value="100" />
<Setter Property="Height" Value="100" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Background">
<Setter.Value>
<SolidColorBrush Color="{DynamicResource WD.PrimaryNormalColor}" />
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type controls:StreamerLoading}">
<Rectangle
x:Name="PART_Rectangle"
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}"
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
VerticalAlignment="{TemplateBinding VerticalAlignment}"
CacheMode="BitmapCache"
StrokeThickness="3">
<Rectangle.Stroke>
<LinearGradientBrush Opacity=".6" StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Offset="0" Color="Transparent" />
<GradientStop Offset="1" Color="{Binding Path=Background.Color, RelativeSource={RelativeSource TemplatedParent}}" />
</LinearGradientBrush>
</Rectangle.Stroke>
</Rectangle>
<ControlTemplate.Triggers>
<Trigger Property="IsVisible" Value="True">
<Trigger.EnterActions>
<BeginStoryboard>
<Storyboard DesiredFrameRate="30" RepeatBehavior="Forever">
<PointAnimationUsingKeyFrames Storyboard.TargetName="PART_Rectangle" Storyboard.TargetProperty="(Shape.Stroke).(LinearGradientBrush.StartPoint)">
<EasingPointKeyFrame KeyTime="0:0:0.5" Value="0.855,0.148" />
<EasingPointKeyFrame KeyTime="0:0:1" Value="0.852,0.855" />
<EasingPointKeyFrame KeyTime="0:0:1.5" Value="0.148,0.855" />
<EasingPointKeyFrame KeyTime="0:0:2" Value="0.144,0.149" />
<EasingPointKeyFrame KeyTime="0:0:2.5" Value="0,0" />
</PointAnimationUsingKeyFrames>
<PointAnimationUsingKeyFrames Storyboard.TargetName="PART_Rectangle" Storyboard.TargetProperty="(Shape.Stroke).(LinearGradientBrush.EndPoint)">
<EasingPointKeyFrame KeyTime="0:0:0.5" Value="0.145,0.852" />
<EasingPointKeyFrame KeyTime="0:0:1" Value="0.148,0.145" />
<EasingPointKeyFrame KeyTime="0:0:1.5" Value="0.852,0.145" />
<EasingPointKeyFrame KeyTime="0:0:2" Value="0.856,0.851" />
<EasingPointKeyFrame KeyTime="0:0:2.5" Value="0,1" />
</PointAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</Trigger.EnterActions>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style BasedOn="{StaticResource WD.StreamerLoading}" TargetType="{x:Type controls:StreamerLoading}" />
</ResourceDictionary>
Original file line number Diff line number Diff line change
@@ -1,52 +1,65 @@
<UserControl x:Class="WPFDevelopers.Samples.ExampleViews.AnimationAudioExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews"
xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.AnimationAudioExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wd="https://github.com/WPFDevelopersOrg/WPFDevelopers"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<controls:CodeViewer>
<UniformGrid Columns="2" x:Name="MyUniformGrid">
<StackPanel Orientation="Horizontal">
<wd:BreathLamp Width="60" Height="60" LampEffect="Ripple" IsLampStart="true"
VerticalAlignment="Center" HorizontalAlignment="Left"
Margin="10,0">
<Ellipse>
<Ellipse.Fill>
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Breathe/0.jpg"/>
</Ellipse.Fill>
</Ellipse>
</wd:BreathLamp>
<wd:AnimationAudio x:Name="AnimationAudioLeft" MouseDown="AnimationAudioLeft_MouseDown"/>
</StackPanel>
<StackPanel Orientation="Horizontal"
HorizontalAlignment="Right">
<wd:AnimationAudio x:Name="AnimationAudioRight" IsRight ="true"
Background="{DynamicResource WD.SuccessSolidColorBrush}"
Foreground="Black"
MouseDown="AnimationAudioLeft_MouseDown"/>
<wd:BreathLamp Width="60" Height="60" LampEffect="Streamer" IsLampStart="True"
VerticalAlignment="Center" HorizontalAlignment="Left"
GradientStopColor1="#FF00cec9" GradientStopColor2="#2000cec9"
Margin="10,0">
<Ellipse>
<Ellipse.Fill>
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Chat/UserImages/yanjinhua.png"/>
</Ellipse.Fill>
</Ellipse>
</wd:BreathLamp>
</StackPanel>
<UniformGrid x:Name="MyUniformGrid" Columns="2">
<StackPanel Orientation="Horizontal">
<wd:BreathLamp
Width="60"
Height="60"
Margin="10,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
IsLampStart="true"
LampEffect="Ripple">
<Ellipse>
<Ellipse.Fill>
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Breathe/0.jpg" />
</Ellipse.Fill>
</Ellipse>
</wd:BreathLamp>
<wd:AnimationAudio
x:Name="AnimationAudioLeft"
wd:ElementHelper.CornerRadius="4"
MouseDown="AnimationAudioLeft_MouseDown" />
</StackPanel>
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<wd:AnimationAudio
x:Name="AnimationAudioRight"
Background="{DynamicResource WD.SuccessSolidColorBrush}"
Foreground="Black"
IsRight="true"
MouseDown="AnimationAudioLeft_MouseDown" />
<wd:BreathLamp
Width="60"
Height="60"
Margin="10,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
GradientStopColor1="#FF00cec9"
GradientStopColor2="#2000cec9"
IsLampStart="True"
LampEffect="Streamer">
<Ellipse>
<Ellipse.Fill>
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/Chat/UserImages/yanjinhua.png" />
</Ellipse.Fill>
</Ellipse>
</wd:BreathLamp>
</StackPanel>
</UniformGrid>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/AnimationAudioExample.xaml"
CodeType="Xaml"/>
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/AnimationAudioExample.xaml.cs"
CodeType="CSharp"/>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/AnimationAudioExample.xaml" CodeType="Xaml" />
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/AnimationAudioExample.xaml.cs" CodeType="CSharp" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>
10 changes: 5 additions & 5 deletions src/WPFDevelopers.Samples.Shared/ExampleViews/BadgeExample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
x:Name="MyBadgeToggleButton"
Margin="10"
HorizontalAlignment="Center"
Content="显示Badge" />
Content="显示Badge"
IsChecked="True" />
<UniformGrid
Grid.Row="1"
HorizontalAlignment="Center"
wd:PanelHelper.Spacing="10"
Rows="1">
<Button
Width="100"
Expand All @@ -33,12 +35,11 @@
Style="{DynamicResource WD.PrimaryButton}" />
<Button
Width="100"
Margin="10,0"
wd:Badge.FontSize="12"
wd:Badge.IsShow="{Binding ElementName=MyBadgeToggleButton, Path=IsChecked}"
wd:Badge.Text="{Binding Text,RelativeSource={RelativeSource AncestorType=UserControl}}"
wd:Badge.Text="{Binding Text, RelativeSource={RelativeSource AncestorType=UserControl}}"
Click="myButton_Click"
Content="Success"
Click="myButton_Click"
Style="{DynamicResource WD.SuccessDefaultButton}" />
<Button
Width="100"
Expand All @@ -49,7 +50,6 @@
Style="{DynamicResource WD.WarningDefaultButton}" />
<Button
Width="100"
Margin="10,0"
wd:Badge.IsShow="{Binding ElementName=MyBadgeToggleButton, Path=IsChecked}"
wd:Badge.Text="NEW"
Content="Danger"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@
Padding="0,10"
FontSize="20"
Foreground="{DynamicResource WD.PrimaryNormalSolidColorBrush}">
<Hyperlink NavigateUri="https://github.com/yanjinhuagood/WPFDevelopers.Minimal.git" RequestNavigate="GithubHyperlink_RequestNavigate">Github 源码</Hyperlink>
<Hyperlink NavigateUri="https://github.com/WPFDevelopersOrg/WPFDevelopers" RequestNavigate="GithubHyperlink_RequestNavigate">Github 源码</Hyperlink>
<Run />
<Run />
<Run />
<Hyperlink NavigateUri="https://gitee.com/WPFDevelopersOrg/WPFDevelopers.Minimal.git" RequestNavigate="GiteeHyperlink_RequestNavigate">码云源码</Hyperlink>
<Hyperlink NavigateUri="https://gitee.com/WPFDevelopersOrg/WPFDevelopers" RequestNavigate="GiteeHyperlink_RequestNavigate">码云源码</Hyperlink>
<Run />
<Run />
<Run />
<Hyperlink NavigateUri="https://gitee.com/yanjinhua/WPFDevelopers.git" RequestNavigate="QQHyperlink_RequestNavigate">加入QQ群:458041663</Hyperlink>
<Hyperlink NavigateUri="https://gitee.com/WPFDevelopersOrg/WPFDevelopers" RequestNavigate="QQHyperlink_RequestNavigate">加入QQ群:458041663</Hyperlink>
<Hyperlink>、340500857、929469013</Hyperlink>
</TextBlock>
</StackPanel>

Expand All @@ -56,7 +57,7 @@
Margin="0,20,0,0"
FontSize="20"
Text="Theme" />
<wd:ThemeControl Margin="0,10" ItemsSource="{Binding ThemesCollection, RelativeSource={RelativeSource AncestorType=UserControl}, Mode=OneWayToSource}" />
<wd:Theme Margin="0,10" ItemsSource="{Binding ThemesCollection, RelativeSource={RelativeSource AncestorType=UserControl}, Mode=OneWayToSource}" />
<TextBlock
Margin="0,20,0,0"
FontSize="20"
Expand Down Expand Up @@ -120,6 +121,7 @@
Margin="0,10"
Rows="1">
<Button
wd:ElementHelper.CornerRadius="3"
Click="Button_Click"
Content="ToolWindow"
Style="{DynamicResource WD.PrimaryButton}" />
Expand All @@ -138,12 +140,14 @@
Margin="0,10"
Rows="1">
<Button
wd:ElementHelper.CornerRadius="3"
Click="Loading_Click"
Content="Loading"
Style="{DynamicResource WD.PrimaryButton}" />
<Button
Name="btnLoadingTask"
Margin="10,0"
wd:ElementHelper.CornerRadius="3"
Click="LoadingTask_Click"
Content="LoadingTask"
Style="{DynamicResource WD.SuccessPrimaryButton}" />
Expand Down Expand Up @@ -756,12 +760,6 @@
Margin="0,10"
Columns="2"
Rows="2">
<UniformGrid.Resources>
<Style TargetType="{x:Type Rectangle}">
<Setter Property="Width" Value="{x:Static SystemParameters.PrimaryScreenWidth}" />
<Setter Property="Height" Value="400" />
</Style>
</UniformGrid.Resources>
<TabControl Margin="4" wd:ElementHelper.CornerRadius="3">
<TabItem Padding="10" Header="TabItem1">
<Rectangle Fill="{DynamicResource WD.DangerSolidColorBrush}" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private void MainView_Loaded(object sender, RoutedEventArgs e)

private void btnInformation_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("文件删除成功。", "消息", MessageBoxButton.OK, MessageBoxImage.Information);
MessageBox.Show("文件删除成功。", "消息", MessageBoxButton.OK, MessageBoxImage.Information, buttonRadius: 4);
}

private void btnWarning_Click(object sender, RoutedEventArgs e)
Expand All @@ -109,7 +109,7 @@ private void btnError_Click(object sender, RoutedEventArgs e)

private void btnQuestion_Click(object sender, RoutedEventArgs e)
{
MessageBox.Show("当前文件不存在,是否继续?", "询问", MessageBoxButton.OKCancel, MessageBoxImage.Question);
MessageBox.Show("当前文件不存在,是否继续?", "询问", MessageBoxButton.OKCancel, MessageBoxImage.Question, buttonRadius: 4);
}

private void GithubHyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
Expand Down
Loading