-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f50e43f
commit aeafae4
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/WPFDevelopers.Samples.Shared/ExampleViews/ColorPickerExample.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<UserControl | ||
x:Class="WPFDevelopers.Samples.ExampleViews.ColorPickerExample" | ||
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> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="Auto" /> | ||
</Grid.RowDefinitions> | ||
<wd:ColorPicker /> | ||
</Grid> | ||
<controls:CodeViewer.SourceCodes> | ||
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ColorPickerExample.xaml" CodeType="Xaml" /> | ||
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ColorPickerExample.xaml.cs" CodeType="CSharp" /> | ||
</controls:CodeViewer.SourceCodes> | ||
</controls:CodeViewer> | ||
</UserControl> |
15 changes: 15 additions & 0 deletions
15
src/WPFDevelopers.Samples.Shared/ExampleViews/ColorPickerExample.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Windows.Controls; | ||
|
||
namespace WPFDevelopers.Samples.ExampleViews | ||
{ | ||
/// <summary> | ||
/// BarrageExample.xaml 的交互逻辑 | ||
/// </summary> | ||
public partial class ColorPickerExample : UserControl | ||
{ | ||
public ColorPickerExample() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |