├── .github
└── workflows
│ └── SignClientFileList.txt
├── .vscode
├── extensions.json
├── tasks.json
└── settings.json
├── CommunityToolkitLabs-Header.png
├── .gitmodules
├── components
├── Ribbon
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ └── Ribbon.png
│ │ ├── Ribbon.Samples.csproj
│ │ └── RibbonCustomSample.xaml.cs
│ ├── tests
│ │ ├── RibbonTestPage.xaml.cs
│ │ ├── RibbonTestPage.xaml
│ │ ├── Ribbon.Tests.shproj
│ │ └── Ribbon.Tests.projitems
│ └── src
│ │ ├── Themes
│ │ └── Generic.xaml
│ │ ├── MultiTarget.props
│ │ └── CommunityToolkit.WinUI.Controls.Ribbon.csproj
├── Adorners
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ ├── icon.png
│ │ │ ├── davis-vargas-2vSNlKHn9h0-unsplash.jpg
│ │ │ └── sergey-zolkin-m9qMoh-scfE-unsplash.jpg
│ │ ├── AdornersInfoBadgeSample.xaml.cs
│ │ ├── InPlaceTextEditor
│ │ │ └── InPlaceTextEditorAdorner.xaml.cs
│ │ ├── InfoBadgeWithoutAdorner.xaml.cs
│ │ ├── Adorners.Samples.csproj
│ │ ├── ResizeElement
│ │ │ └── ResizeElementAdornerCanvasSample.xaml.cs
│ │ ├── ElementHighlightAdornerSample.xaml.cs
│ │ ├── AdornersTabBadgeSample.xaml.cs
│ │ └── Dependencies.props
│ ├── src
│ │ ├── MultiTarget.props
│ │ ├── CommunityToolkit.WinUI.Adorners.csproj
│ │ ├── InputValidation
│ │ │ └── InputValidationAdorner.xaml.cs
│ │ ├── Themes
│ │ │ └── Generic.xaml
│ │ ├── AdornerOfT.cs
│ │ └── ResizeElement
│ │ │ └── Thumb
│ │ │ └── ResizePositionMode.cs
│ └── tests
│ │ ├── ExampleAdornersTestPage.xaml.cs
│ │ ├── ExampleAdornersTestPage.xaml
│ │ ├── Adorners.Tests.shproj
│ │ └── Adorners.Tests.projitems
├── AppServices
│ ├── OpenSolution.bat
│ ├── CommunityToolkit.AppServices.SourceGenerators
│ │ ├── AnalyzerReleases.Unshipped.md
│ │ ├── Models
│ │ │ └── AppServiceInfo.cs
│ │ └── AnalyzerReleases.Shipped.md
│ ├── src
│ │ ├── MultiTarget.props
│ │ ├── AppServiceAttribute.cs
│ │ └── GeneratedAppServiceHostAttribute.cs
│ ├── tests
│ │ ├── AppServices.Tests.projitems
│ │ └── AppServices.Tests.shproj
│ └── AppServices.SourceGenerators.Tests
│ │ └── AppServices.SourceGenerators.Tests.csproj
├── CanvasView
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ └── CanvasView.png
│ │ ├── CanvasView.Samples.csproj
│ │ └── CanvasView.md
│ ├── tests
│ │ ├── ExampleCanvasViewTestPage.xaml.cs
│ │ ├── ExampleCanvasViewTestPage.xaml
│ │ ├── CanvasView.Tests.shproj
│ │ └── CanvasView.Tests.projitems
│ └── src
│ │ └── CommunityToolkit.WinUI.Controls.CanvasView.csproj
├── DataTable
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ └── DataTable.png
│ │ └── DataTable.Samples.csproj
│ ├── src
│ │ ├── MultiTarget.props
│ │ ├── Themes
│ │ │ └── Generic.xaml
│ │ ├── AdditionalAssemblyInfo.cs
│ │ └── CommunityToolkit.WinUI.Controls.DataTable.csproj
│ └── tests
│ │ ├── DataTableColumnAutoSizeTestPage.xaml.cs
│ │ ├── DataTable.Tests.shproj
│ │ └── DataTable.Tests.projitems
├── Marquee
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ └── Marquee.png
│ │ ├── MarqueeText.Samples.csproj
│ │ └── MarqueeBehaviorSample.xaml.cs
│ ├── src
│ │ ├── Themes
│ │ │ └── Generic.xaml
│ │ ├── MarqueeDirection.cs
│ │ ├── CommunityToolkit.WinUI.Controls.Marquee.csproj
│ │ └── MarqueeBehavior.cs
│ └── tests
│ │ ├── ExampleMarqueeTestPage.xaml.cs
│ │ ├── Marquee.Tests.shproj
│ │ └── Marquee.Tests.projitems
├── RivePlayer
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ └── RivePlayer.png
│ │ ├── animated-login-screen.riv
│ │ ├── RivePlayer.Samples.csproj
│ │ └── RivePlayerCustomSample.xaml.cs
│ ├── src
│ │ ├── MultiTarget.props
│ │ ├── Themes
│ │ │ └── Generic.xaml
│ │ └── CommunityToolkit.WinUI.Rive.RivePlayer.csproj
│ └── tests
│ │ ├── ExampleRivePlayerTestPage.xaml.cs
│ │ ├── ExampleRivePlayerTestPage.xaml
│ │ ├── RivePlayer.Tests.shproj
│ │ └── RivePlayer.Tests.projitems
├── Shimmer
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ ├── Owl.jpg
│ │ │ └── Shimmer.png
│ │ ├── MultiTarget.props
│ │ ├── Shimmer.md
│ │ ├── Shimmer.Samples.csproj
│ │ └── ShimmerSample.xaml.cs
│ ├── src
│ │ ├── MultiTarget.props
│ │ ├── Themes
│ │ │ └── Generic.xaml
│ │ └── CommunityToolkit.WinUI.Controls.Shimmer.csproj
│ └── tests
│ │ ├── ExampleShimmerTestPage.xaml.cs
│ │ ├── ExampleShimmerTestPage.xaml
│ │ ├── Shimmer.Tests.shproj
│ │ └── Shimmer.Tests.projitems
├── TitleBar
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ ├── icon.png
│ │ │ ├── Avatar.png
│ │ │ └── AppTitleBarIcon.png
│ │ ├── SamplePages
│ │ │ ├── FirstPage.xaml.cs
│ │ │ ├── SecondPage.xaml.cs
│ │ │ ├── FirstPage.xaml
│ │ │ └── SecondPage.xaml
│ │ └── TitleBar.Samples.csproj
│ ├── src
│ │ ├── MultiTarget.props
│ │ ├── Themes
│ │ │ └── Generic.xaml
│ │ ├── AdditionalAssemblyInfo.cs
│ │ └── CommunityToolkit.WinUI.Controls.TitleBar.csproj
│ └── tests
│ │ ├── ExampleTitleBarTestPage.xaml.cs
│ │ ├── ExampleTitleBarTestPage.xaml
│ │ ├── TitleBar.Tests.shproj
│ │ └── TitleBar.Tests.projitems
├── TokenView
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ └── TokenView.png
│ │ └── TokenViewRemoveSample.cs
│ ├── tests
│ │ ├── ExampleTokenViewTestPage.xaml.cs
│ │ ├── ExampleTokenViewTestPage.xaml
│ │ ├── TokenView.Tests.shproj
│ │ └── TokenView.Tests.projitems
│ └── src
│ │ ├── Helpers
│ │ └── ControlHelpers.cs
│ │ ├── Themes
│ │ └── Generic.xaml
│ │ ├── CommunityToolkit.WinUI.Controls.TokenView.csproj
│ │ └── TokenItem
│ │ └── TokenItemRemovingEventArgs.cs
├── CanvasLayout
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ └── CanvasLayout.png
│ │ ├── CanvasLayout.md
│ │ └── CanvasLayout.Samples.csproj
│ ├── tests
│ │ ├── ExampleCanvasLayoutTestPage.xaml.cs
│ │ ├── ExampleCanvasLayoutTestPage.xaml
│ │ ├── CanvasLayout.Tests.shproj
│ │ └── CanvasLayout.Tests.projitems
│ └── src
│ │ └── CommunityToolkit.WinUI.Controls.CanvasLayout.csproj
├── ColorAnalyzer
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ ├── icon.png
│ │ │ └── StockImages
│ │ │ │ ├── Paint.jpg
│ │ │ │ ├── Flowers.jpg
│ │ │ │ └── Headphones.jpg
│ │ ├── ColorPaletteSampler
│ │ │ ├── BaseColorSample.xaml.cs
│ │ │ ├── AccentColorSample.xaml.cs
│ │ │ ├── ColorWeightSample.xaml.cs
│ │ │ ├── MultiplePaletteSelectorSample.xaml.cs
│ │ │ └── ColorPaletteSamplerToolkitSample.cs
│ │ ├── ContrastHelper
│ │ │ ├── TextBlockContrastSample.xaml.cs
│ │ │ └── SolidColorBrushContrastSample.xaml.cs
│ │ └── ColorAnalyzer.Samples.csproj
│ ├── src
│ │ ├── MultiTarget.props
│ │ ├── CommunityToolkit.WinUI.ColorAnalyzer.csproj
│ │ ├── ColorPaletteSampler
│ │ │ └── PaletteSelectors
│ │ │ │ ├── BaseColorPaletteSelector.cs
│ │ │ │ ├── AccentColorPaletteSelector.cs
│ │ │ │ └── ColorWeightPaletteSelector.cs
│ │ └── PaletteColor.cs
│ └── tests
│ │ ├── ColorAnalyzer.Tests.projitems
│ │ ├── ExampleAccentAnalyzerTestClass.cs
│ │ └── ColorAnalyzer.Tests.shproj
├── Notifications
│ ├── OpenSolution.bat
│ ├── src
│ │ ├── MultiTarget.props
│ │ ├── Adaptive
│ │ │ ├── Elements
│ │ │ │ ├── Element_AdaptiveImageEnums.cs
│ │ │ │ └── Element_AdaptiveProgressBar.cs
│ │ │ ├── IAdaptiveChild.cs
│ │ │ ├── IAdaptiveSubgroupChild.cs
│ │ │ ├── BaseTextHelper.cs
│ │ │ ├── AdaptiveSubgroupEnums.cs
│ │ │ └── IBaseText.cs
│ │ ├── Toasts
│ │ │ ├── IToastInput.cs
│ │ │ ├── Elements
│ │ │ │ └── IElement_ToastActivatable.cs
│ │ │ ├── IToastBindingGenericChild.cs
│ │ │ ├── ToastGenericAppLogoEnums.cs
│ │ │ ├── IToastActions.cs
│ │ │ └── IToastButton.cs
│ │ ├── Tiles
│ │ │ ├── Elements
│ │ │ │ ├── TileElementsCommon.cs
│ │ │ │ └── Element_Tile.cs
│ │ │ ├── ITileBindingContentAdaptiveChild.cs
│ │ │ ├── TileTextStacking.cs
│ │ │ ├── TileCommon.cs
│ │ │ └── TileSizeToAdaptiveTemplateConverter.cs
│ │ └── Common
│ │ │ ├── Serialization
│ │ │ ├── IHaveXmlName.cs
│ │ │ ├── IHaveXmlText.cs
│ │ │ ├── IHaveXmlChildren.cs
│ │ │ ├── IHaveXmlAdditionalProperties.cs
│ │ │ └── IHaveXmlNamedProperties.cs
│ │ │ ├── NotificationContentValidationException.cs
│ │ │ ├── ArgumentValidator.cs
│ │ │ └── INotificationContent.cs
│ └── tests
│ │ └── Notifications.Tests.shproj
├── OpacityMaskView
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ ├── Owl3.jpg
│ │ │ └── icon.png
│ │ ├── OpacityMaskView.md
│ │ ├── OpacityMaskView.Samples.csproj
│ │ └── OpacityMaskViewSample.xaml.cs
│ ├── src
│ │ ├── MultiTarget.props
│ │ ├── Themes
│ │ │ └── Generic.xaml
│ │ └── CommunityToolkit.WinUI.Controls.OpacityMaskView.csproj
│ └── tests
│ │ ├── OpacityMaskView.Tests.projitems
│ │ └── OpacityMaskView.Tests.shproj
├── TransitionHelper
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ ├── Owl2.jpg
│ │ │ └── TransitionHelper.png
│ │ ├── MultiTarget.props
│ │ ├── TransitionHelper.md
│ │ ├── TransitionHelperFullExample.xaml.cs
│ │ ├── TransitionHelper.Samples.csproj
│ │ └── CustomTextScalingCalculator.cs
│ ├── src
│ │ ├── MultiTarget.props
│ │ ├── Properties
│ │ │ └── IsExternalInit.cs
│ │ ├── Enums
│ │ │ └── VisualStateToggleMethod.cs
│ │ ├── IScalingCalculator.cs
│ │ └── CommunityToolkit.WinUI.TransitionHelper.csproj
│ └── tests
│ │ ├── TransitionHelper.Tests.projitems
│ │ └── TransitionHelper.Tests.shproj
├── MarkdownTextBlock
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ └── MarkdownTextBlock.png
│ │ └── MarkdownTextBlock.Samples.csproj
│ ├── src
│ │ ├── ISVGRenderer.cs
│ │ ├── TextElements
│ │ │ ├── HtmlElementType.cs
│ │ │ ├── IAddChild.cs
│ │ │ ├── BulletType.cs
│ │ │ ├── MyLineBreak.cs
│ │ │ └── MyInlineText.cs
│ │ ├── ImageProvider.cs
│ │ ├── MultiTarget.props
│ │ ├── Renderers
│ │ │ ├── UWPObjectRenderer.cs
│ │ │ └── ObjectRenderers
│ │ │ │ ├── Inlines
│ │ │ │ ├── ContainerInlineRenderer.cs
│ │ │ │ ├── CodeInlineRenderer.cs
│ │ │ │ ├── LiteralInlineRenderer.cs
│ │ │ │ ├── HtmlEntityInlineRenderer.cs
│ │ │ │ ├── HtmlInlineRenderer.cs
│ │ │ │ ├── DelimiterInlineRenderer.cs
│ │ │ │ └── LineBreakInlineRenderer.cs
│ │ │ │ ├── CodeBlockRenderer.cs
│ │ │ │ ├── ListItemRenderer.cs
│ │ │ │ ├── Extensions
│ │ │ │ └── TaskListRenderer.cs
│ │ │ │ ├── ThematicBreakRenderer.cs
│ │ │ │ ├── HeadingRenderer.cs
│ │ │ │ ├── QuoteBlockRenderer.cs
│ │ │ │ └── ParagraphRenderer.cs
│ │ ├── Themes
│ │ │ └── Generic.xaml
│ │ ├── MarkdownConfig.cs
│ │ └── LinkClickedEventArgs.cs
│ └── tests
│ │ ├── ExampleMarkdownTextBlockTestPage.xaml.cs
│ │ ├── ExampleMarkdownTextBlockTestPage.xaml
│ │ └── MarkdownTextBlock.Tests.shproj
├── DependencyPropertyGenerator
│ ├── OpenSolution.bat
│ ├── samples
│ │ ├── Assets
│ │ │ └── icon.png
│ │ ├── DependencyPropertyGenerator.Samples.csproj
│ │ └── Dependencies.props
│ ├── CommunityToolkit.DependencyPropertyGenerator.SourceGenerators
│ │ ├── AnalyzerReleases.Unshipped.md
│ │ ├── Constants
│ │ │ ├── WellKnownTrackingNames.cs
│ │ │ └── WellKnownPropertyNames.cs
│ │ └── Extensions
│ │ │ └── SyntaxTokenExtensions.cs
│ ├── .gitattributes
│ ├── src
│ │ └── MultiTarget.props
│ ├── tests
│ │ ├── DependencyPropertyGenerator.Tests.projitems
│ │ └── DependencyPropertyGenerator.Tests.shproj
│ └── CommunityToolkit.DependencyPropertyGenerator.CodeFixers
│ │ └── CommunityToolkit.DependencyPropertyGenerator.CodeFixers.csproj
└── Extensions.DependencyInjection
│ ├── OpenSolution.bat
│ ├── CommunityToolkit.Extensions.DependencyInjection.SourceGenerators
│ ├── AnalyzerReleases.Unshipped.md
│ ├── Models
│ │ ├── ServiceRegistrationKind.cs
│ │ └── ServiceCollectionInfo.cs
│ ├── AnalyzerReleases.Shipped.md
│ └── Extensions
│ │ └── ISymbolExtensions.cs
│ ├── src
│ └── MultiTarget.props
│ └── tests
│ └── Extensions.DependencyInjection.Tests.projitems
├── GenerateAllSolution.bat
├── global.json
├── nuget.config
├── .config
└── dotnet-tools.json
└── .devcontainer
└── default.code-workspace
/.github/workflows/SignClientFileList.txt:
--------------------------------------------------------------------------------
1 | **/CommunityToolkit.*
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "ms-dotnettools.csdevkit",
4 | ]
5 | }
--------------------------------------------------------------------------------
/CommunityToolkitLabs-Header.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/CommunityToolkitLabs-Header.png
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "tooling"]
2 | path = tooling
3 | url = https://github.com/CommunityToolkit/Tooling-Windows-Submodule.git
4 |
--------------------------------------------------------------------------------
/components/Ribbon/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/Adorners/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/AppServices/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/CanvasView/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/DataTable/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/Marquee/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/RivePlayer/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/Shimmer/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/Shimmer/samples/Assets/Owl.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/Shimmer/samples/Assets/Owl.jpg
--------------------------------------------------------------------------------
/components/TitleBar/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/TokenView/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/Adorners/samples/Assets/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/Adorners/samples/Assets/icon.png
--------------------------------------------------------------------------------
/components/CanvasLayout/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/ColorAnalyzer/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/Notifications/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/OpacityMaskView/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/Ribbon/samples/Assets/Ribbon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/Ribbon/samples/Assets/Ribbon.png
--------------------------------------------------------------------------------
/components/TitleBar/samples/Assets/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/TitleBar/samples/Assets/icon.png
--------------------------------------------------------------------------------
/components/TransitionHelper/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/Marquee/samples/Assets/Marquee.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/Marquee/samples/Assets/Marquee.png
--------------------------------------------------------------------------------
/components/Shimmer/samples/Assets/Shimmer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/Shimmer/samples/Assets/Shimmer.png
--------------------------------------------------------------------------------
/components/TitleBar/samples/Assets/Avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/TitleBar/samples/Assets/Avatar.png
--------------------------------------------------------------------------------
/components/ColorAnalyzer/samples/Assets/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/ColorAnalyzer/samples/Assets/icon.png
--------------------------------------------------------------------------------
/components/DataTable/samples/Assets/DataTable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/DataTable/samples/Assets/DataTable.png
--------------------------------------------------------------------------------
/components/TokenView/samples/Assets/TokenView.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/TokenView/samples/Assets/TokenView.png
--------------------------------------------------------------------------------
/components/CanvasView/samples/Assets/CanvasView.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/CanvasView/samples/Assets/CanvasView.png
--------------------------------------------------------------------------------
/components/DependencyPropertyGenerator/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/Extensions.DependencyInjection/OpenSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 |
3 | powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
--------------------------------------------------------------------------------
/components/OpacityMaskView/samples/Assets/Owl3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/OpacityMaskView/samples/Assets/Owl3.jpg
--------------------------------------------------------------------------------
/components/OpacityMaskView/samples/Assets/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/OpacityMaskView/samples/Assets/icon.png
--------------------------------------------------------------------------------
/components/RivePlayer/samples/Assets/RivePlayer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/RivePlayer/samples/Assets/RivePlayer.png
--------------------------------------------------------------------------------
/components/TransitionHelper/samples/Assets/Owl2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/TransitionHelper/samples/Assets/Owl2.jpg
--------------------------------------------------------------------------------
/components/TitleBar/samples/Assets/AppTitleBarIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/TitleBar/samples/Assets/AppTitleBarIcon.png
--------------------------------------------------------------------------------
/components/CanvasLayout/samples/Assets/CanvasLayout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/CanvasLayout/samples/Assets/CanvasLayout.png
--------------------------------------------------------------------------------
/components/RivePlayer/samples/animated-login-screen.riv:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/RivePlayer/samples/animated-login-screen.riv
--------------------------------------------------------------------------------
/components/ColorAnalyzer/samples/Assets/StockImages/Paint.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/ColorAnalyzer/samples/Assets/StockImages/Paint.jpg
--------------------------------------------------------------------------------
/GenerateAllSolution.bat:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | SET "MultiTargets=%1"
3 | IF "%MultiTargets%"=="" SET "MultiTargets=all"
4 |
5 | powershell .\tooling\GenerateAllSolution.ps1 -MultiTargets %MultiTargets%
--------------------------------------------------------------------------------
/components/ColorAnalyzer/samples/Assets/StockImages/Flowers.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/ColorAnalyzer/samples/Assets/StockImages/Flowers.jpg
--------------------------------------------------------------------------------
/components/DependencyPropertyGenerator/samples/Assets/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/DependencyPropertyGenerator/samples/Assets/icon.png
--------------------------------------------------------------------------------
/components/TransitionHelper/samples/Assets/TransitionHelper.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/TransitionHelper/samples/Assets/TransitionHelper.png
--------------------------------------------------------------------------------
/components/ColorAnalyzer/samples/Assets/StockImages/Headphones.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/ColorAnalyzer/samples/Assets/StockImages/Headphones.jpg
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/samples/Assets/MarkdownTextBlock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/MarkdownTextBlock/samples/Assets/MarkdownTextBlock.png
--------------------------------------------------------------------------------
/global.json:
--------------------------------------------------------------------------------
1 | {
2 | "sdk": {
3 | "version": "9.0.101",
4 | "rollForward": "latestFeature"
5 | },
6 | "msbuild-sdks":
7 | {
8 | "MSBuild.Sdk.Extras":"3.0.23"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/components/Adorners/samples/Assets/davis-vargas-2vSNlKHn9h0-unsplash.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/Adorners/samples/Assets/davis-vargas-2vSNlKHn9h0-unsplash.jpg
--------------------------------------------------------------------------------
/components/Adorners/samples/Assets/sergey-zolkin-m9qMoh-scfE-unsplash.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CommunityToolkit/Labs-Windows/HEAD/components/Adorners/samples/Assets/sergey-zolkin-m9qMoh-scfE-unsplash.jpg
--------------------------------------------------------------------------------
/components/AppServices/CommunityToolkit.AppServices.SourceGenerators/AnalyzerReleases.Unshipped.md:
--------------------------------------------------------------------------------
1 | ; Unshipped analyzer release
2 | ; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3 |
--------------------------------------------------------------------------------
/nuget.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.SourceGenerators/AnalyzerReleases.Unshipped.md:
--------------------------------------------------------------------------------
1 | ; Unshipped analyzer release
2 | ; https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3 |
--------------------------------------------------------------------------------
/components/Extensions.DependencyInjection/CommunityToolkit.Extensions.DependencyInjection.SourceGenerators/AnalyzerReleases.Unshipped.md:
--------------------------------------------------------------------------------
1 | ; Unshipped analyzer release
2 | ; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3 |
--------------------------------------------------------------------------------
/components/DependencyPropertyGenerator/.gitattributes:
--------------------------------------------------------------------------------
1 | # All file types:
2 | # - Treat as text
3 | # - Normalize to LF line endings
4 | * text=auto eol=lf
5 |
6 | # Explicit settings for well known types
7 | *.cs text eol=lf
8 | *.csproj text eol=lf
9 | *.projitems text eol=lf
10 | *.shprroj text eol=lf
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/src/ISVGRenderer.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.WinUI.Controls;
6 |
7 | public interface ISVGRenderer
8 | {
9 | Task SvgToImage(string svgString);
10 | }
11 |
--------------------------------------------------------------------------------
/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=733558
3 | // for the documentation about the tasks.json format
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "label": "generateAllSolution",
8 | "type": "shell",
9 | "command": "pwsh ./tooling/GenerateAllSolution.ps1",
10 | "group": "build"
11 | }
12 | ]
13 | }
--------------------------------------------------------------------------------
/components/Ribbon/tests/RibbonTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace RibbonTests;
6 |
7 | public sealed partial class RibbonTestPage : Page
8 | {
9 | public RibbonTestPage() => InitializeComponent();
10 | }
11 |
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/src/TextElements/HtmlElementType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.WinUI.Controls.TextElements;
6 |
7 | public enum HtmlElementType
8 | {
9 | Block,
10 | Inline,
11 | }
12 |
--------------------------------------------------------------------------------
/components/RivePlayer/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk;wasm;
8 |
9 |
--------------------------------------------------------------------------------
/components/Notifications/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;
8 |
9 |
--------------------------------------------------------------------------------
/components/TitleBar/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk;
8 |
9 |
--------------------------------------------------------------------------------
/components/Ribbon/src/Themes/Generic.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/components/Shimmer/samples/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk;
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/Shimmer/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk;
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/DataTable/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk;
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/DependencyPropertyGenerator/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk;
8 |
9 |
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/src/ImageProvider.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.WinUI.Controls;
6 |
7 | public interface IImageProvider
8 | {
9 | Task GetImage(string url);
10 | bool ShouldUseThisProvider(string url);
11 | }
12 |
--------------------------------------------------------------------------------
/components/AppServices/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;netstandard;
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/Extensions.DependencyInjection/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | netstandard;
8 |
9 |
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk;
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/OpacityMaskView/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk;
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/TransitionHelper/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/src/TextElements/IAddChild.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.WinUI.Controls.TextElements;
6 |
7 | public interface IAddChild
8 | {
9 | TextElement TextElement { get; }
10 | void AddChild(IAddChild child);
11 | }
12 |
--------------------------------------------------------------------------------
/components/TransitionHelper/samples/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/Ribbon/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk;wpf;wasm;linuxgtk;macos;ios;android;
8 |
9 |
--------------------------------------------------------------------------------
/components/Adorners/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | uwp;wasdk;wpf;wasm;linuxgtk;macos;ios;android;
8 |
9 |
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/src/TextElements/BulletType.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.WinUI.Controls.TextElements;
6 |
7 | internal enum BulletType
8 | {
9 | Circle,
10 | Number,
11 | LowerAlpha,
12 | UpperAlpha,
13 | LowerRoman,
14 | UpperRoman
15 | }
16 |
--------------------------------------------------------------------------------
/components/Notifications/src/Adaptive/Elements/Element_AdaptiveImageEnums.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.Notifications.Adaptive.Elements;
6 |
7 | internal enum AdaptiveImagePlacement
8 | {
9 | Inline,
10 | Background,
11 | Peek,
12 | Hero,
13 | AppLogoOverride
14 | }
--------------------------------------------------------------------------------
/components/Marquee/samples/MarqueeText.Samples.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Marquee
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/components/Notifications/src/Toasts/IToastInput.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.Notifications;
6 |
7 | ///
8 | /// An input element on a Toast notification. One of or .
9 | ///
10 | public interface IToastInput
11 | {
12 | }
--------------------------------------------------------------------------------
/.config/dotnet-tools.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "isRoot": true,
4 | "tools": {
5 | "uno.check": {
6 | "version": "1.33.1",
7 | "commands": [
8 | "uno-check"
9 | ]
10 | },
11 | "xamlstyler.console": {
12 | "version": "3.2501.8",
13 | "commands": [
14 | "xstyler"
15 | ]
16 | },
17 | "microsoft.visualstudio.slngen.tool": {
18 | "version": "12.0.13",
19 | "commands": [
20 | "slngen"
21 | ]
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/components/Shimmer/src/Themes/Generic.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/components/Marquee/src/Themes/Generic.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/Notifications/src/Tiles/Elements/TileElementsCommon.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.Notifications;
6 |
7 | internal enum TilePresentation
8 | {
9 | People,
10 | Photos,
11 | Contact
12 | }
13 |
14 | internal enum TileImagePlacement
15 | {
16 | Inline,
17 | Background,
18 | Peek
19 | }
--------------------------------------------------------------------------------
/components/TitleBar/src/Themes/Generic.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/DataTable/src/Themes/Generic.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/OpacityMaskView/src/Themes/Generic.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/src/Renderers/UWPObjectRenderer.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using Markdig.Renderers;
6 | using Markdig.Syntax;
7 |
8 | namespace CommunityToolkit.WinUI.Controls.Renderers;
9 |
10 | public abstract class UWPObjectRenderer : MarkdownObjectRenderer
11 | where TObject : MarkdownObject
12 | {
13 | }
14 |
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/src/Themes/Generic.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/components/ColorAnalyzer/src/MultiTarget.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 | uwp;wasdk;
9 |
10 |
11 |
--------------------------------------------------------------------------------
/components/DependencyPropertyGenerator/samples/DependencyPropertyGenerator.Samples.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | DependencyPropertyGenerator
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/components/TitleBar/samples/SamplePages/FirstPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace TitleBarExperiment.Samples;
6 | ///
7 | /// An empty page that can be used on its own or navigated to within a Frame.
8 | ///
9 | public sealed partial class FirstPage : Page
10 | {
11 | public FirstPage()
12 | {
13 | this.InitializeComponent();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/components/TitleBar/samples/SamplePages/SecondPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace TitleBarExperiment.Samples;
6 | ///
7 | /// An empty page that can be used on its own or navigated to within a Frame.
8 | ///
9 | public sealed partial class SecondPage : Page
10 | {
11 | public SecondPage()
12 | {
13 | this.InitializeComponent();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/components/Marquee/tests/ExampleMarqueeTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace MarqueeTests;
6 |
7 | ///
8 | /// An empty page that can be used on its own or navigated to within a Frame.
9 | ///
10 | public sealed partial class ExampleMarqueeTestPage : Page
11 | {
12 | public ExampleMarqueeTestPage()
13 | {
14 | this.InitializeComponent();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/components/Shimmer/tests/ExampleShimmerTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace ShimmerTests;
6 |
7 | ///
8 | /// An empty page that can be used on its own or navigated to within a Frame.
9 | ///
10 | public sealed partial class ExampleShimmerTestPage : Page
11 | {
12 | public ExampleShimmerTestPage()
13 | {
14 | this.InitializeComponent();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "omnisharp.disableMSBuildDiagnosticWarning": true,
3 | "omnisharp.enableRoslynAnalyzers": true,
4 | "omnisharp.useGlobalMono": "never",
5 | "csharp.suppressBuildAssetsNotification": true,
6 | "csharp.suppressDotnetInstallWarning": true,
7 | "csharp.suppressDotnetRestoreNotification": true,
8 | "csharp.semanticHighlighting.enabled": true,
9 | "omnisharp.enableMsBuildLoadProjectsOnDemand": true,
10 | "dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
11 | "dotnet.defaultSolution": "CommunityToolkit.AllComponents.sln"
12 | }
--------------------------------------------------------------------------------
/components/Adorners/tests/ExampleAdornersTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace AdornersTests;
6 |
7 | ///
8 | /// An empty page that can be used on its own or navigated to within a Frame.
9 | ///
10 | public sealed partial class ExampleAdornersTestPage : Page
11 | {
12 | public ExampleAdornersTestPage()
13 | {
14 | this.InitializeComponent();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/components/TitleBar/tests/ExampleTitleBarTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace TitleBarTests;
6 |
7 | ///
8 | /// An empty page that can be used on its own or navigated to within a Frame.
9 | ///
10 | public sealed partial class ExampleTitleBarTestPage : Page
11 | {
12 | public ExampleTitleBarTestPage()
13 | {
14 | this.InitializeComponent();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/components/Notifications/src/Common/Serialization/IHaveXmlName.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.Notifications;
6 |
7 | ///
8 | /// An interface for a notification XML element with a name.
9 | ///
10 | internal interface IHaveXmlName
11 | {
12 | ///
13 | /// Gets the name of the current element.
14 | ///
15 | string Name { get; }
16 | }
17 |
--------------------------------------------------------------------------------
/components/TokenView/tests/ExampleTokenViewTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace TokenViewTests;
6 |
7 | ///
8 | /// An empty page that can be used on its own or navigated to within a Frame.
9 | ///
10 | public sealed partial class ExampleTokenViewTestPage : Page
11 | {
12 | public ExampleTokenViewTestPage()
13 | {
14 | this.InitializeComponent();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/components/CanvasView/tests/ExampleCanvasViewTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CanvasViewTests;
6 |
7 | ///
8 | /// An empty page that can be used on its own or navigated to within a Frame.
9 | ///
10 | public sealed partial class ExampleCanvasViewTestPage : Page
11 | {
12 | public ExampleCanvasViewTestPage()
13 | {
14 | this.InitializeComponent();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/components/Notifications/src/Toasts/Elements/IElement_ToastActivatable.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.Notifications;
6 |
7 | internal interface IElement_ToastActivatable
8 | {
9 | Element_ToastActivationType ActivationType { get; set; }
10 |
11 | string ProtocolActivationTargetApplicationPfn { get; set; }
12 |
13 | ToastAfterActivationBehavior AfterActivationBehavior { get; set; }
14 | }
--------------------------------------------------------------------------------
/components/RivePlayer/tests/ExampleRivePlayerTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace RivePlayerTests;
6 |
7 | ///
8 | /// An empty page that can be used on its own or navigated to within a Frame.
9 | ///
10 | public sealed partial class ExampleRivePlayerTestPage : Page
11 | {
12 | public ExampleRivePlayerTestPage()
13 | {
14 | this.InitializeComponent();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/components/Shimmer/samples/Shimmer.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Shimmer
3 | author: JustinXinLiu
4 | description: An easy to use Shimmer control to indicate something is loading.
5 | keywords: Shimmer, Loading, Control, Layout
6 | dev_langs:
7 | - csharp
8 | category: Controls
9 | subcategory: Layout
10 | experimental: true
11 | discussion-id: 381
12 | issue-id: 390
13 | icon: Assets/Shimmer.png
14 | ---
15 |
16 | The Shimmer control can be used to communicate to the user a certain UI element is fetching data or is loading. `Duration` can be set to set the length of the animation.
17 |
18 | > [!SAMPLE ShimmerSample]
19 |
--------------------------------------------------------------------------------
/components/CanvasLayout/samples/CanvasLayout.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: CanvasLayout
3 | author: mhawker
4 | description: A canvas-like VirtualizingLayout for use in an ItemsRepeater
5 | keywords: CanvasLayout, ItemsRepeater, VirtualizingLayout, Canvas, Layout, Panel, Arrange
6 | dev_langs:
7 | - csharp
8 | category: Controls
9 | subcategory: Layout
10 | experimental: true
11 | discussion-id: 311
12 | issue-id: 213
13 | icon: Assets/CanvasLayout.png
14 | ---
15 |
16 | The `CanvasLayout` is an early prototype for a custom Layout for ItemsRepeater which provides a virtualized canvas.
17 |
18 | > [!SAMPLE CanvasLayoutSample]
19 |
--------------------------------------------------------------------------------
/components/CanvasLayout/tests/ExampleCanvasLayoutTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CanvasLayoutTests;
6 |
7 | ///
8 | /// An empty page that can be used on its own or navigated to within a Frame.
9 | ///
10 | public sealed partial class ExampleCanvasLayoutTestPage : Page
11 | {
12 | public ExampleCanvasLayoutTestPage()
13 | {
14 | this.InitializeComponent();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/components/Marquee/samples/MarqueeBehaviorSample.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace MarqueeExperiment.Samples;
6 |
7 | [ToolkitSample(id: nameof(MarqueeBehaviorSample), "Marquee", description: "A control for scrolling content in a marquee fashion.")]
8 | public sealed partial class MarqueeBehaviorSample : Page
9 | {
10 | public MarqueeBehaviorSample()
11 | {
12 | this.InitializeComponent();
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/components/TokenView/src/Helpers/ControlHelpers.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 | using System.Collections.Generic;
7 | using System.Text;
8 |
9 | namespace CommunityToolkit.WinUI.Controls;
10 |
11 | internal static partial class ControlHelpers
12 | {
13 | internal static bool IsXamlRootAvailable { get; } = Windows.Foundation.Metadata.ApiInformation.IsPropertyPresent("Windows.UI.Xaml.UIElement", "XamlRoot");
14 | }
15 |
--------------------------------------------------------------------------------
/components/DataTable/tests/DataTableColumnAutoSizeTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace DataTableTests;
6 |
7 | ///
8 | /// An empty page that can be used on its own or navigated to within a Frame.
9 | ///
10 | public sealed partial class DataTableColumnAutoSizeTestPage : Page
11 | {
12 | public DataTableColumnAutoSizeTestPage()
13 | {
14 | this.InitializeComponent();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/components/Notifications/src/Common/Serialization/IHaveXmlText.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.Notifications;
6 |
7 | ///
8 | /// An interface for a notification XML element with an explicit XML text content.
9 | ///
10 | internal interface IHaveXmlText
11 | {
12 | ///
13 | /// Gets the text content of the current element.
14 | ///
15 | string Text { get; }
16 | }
17 |
--------------------------------------------------------------------------------
/components/AppServices/tests/AppServices.Tests.projitems:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 | true
6 | A3106AE5-5AA9-4307-9041-E9C4232AA7F2
7 |
8 |
9 | AppServicesTests
10 |
11 |
--------------------------------------------------------------------------------
/components/RivePlayer/src/Themes/Generic.xaml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/components/TransitionHelper/src/Properties/IsExternalInit.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.ComponentModel;
6 |
7 | namespace System.Runtime.CompilerServices;
8 |
9 | ///
10 | /// Reserved to be used by the compiler for tracking metadata.
11 | /// This class should not be used by developers in source code.
12 | ///
13 | [EditorBrowsable(EditorBrowsableState.Never)]
14 | internal static class IsExternalInit
15 | {
16 | }
17 |
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/tests/ExampleMarkdownTextBlockTestPage.xaml.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace MarkdownTextBlockTests;
6 |
7 | ///
8 | /// An empty page that can be used on its own or navigated to within a Frame.
9 | ///
10 | public sealed partial class ExampleMarkdownTextBlockTestPage : Page
11 | {
12 | public ExampleMarkdownTextBlockTestPage()
13 | {
14 | this.InitializeComponent();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/components/Notifications/src/Adaptive/IAdaptiveChild.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.Notifications;
6 |
7 | ///
8 | /// Elements that can be direct children of adaptive content, including (, , and ).
9 | ///
10 | public interface IAdaptiveChild
11 | {
12 | // Blank interface simply for compile-enforcing the child types in the list.
13 | }
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/src/MarkdownConfig.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.WinUI.Controls;
6 |
7 | public record MarkdownConfig
8 | {
9 | public string? BaseUrl { get; set; }
10 | public IImageProvider? ImageProvider { get; set; }
11 | public ISVGRenderer? SVGRenderer { get; set; }
12 | public MarkdownThemes Themes { get; set; } = MarkdownThemes.Default;
13 |
14 | public static MarkdownConfig Default = new();
15 | }
16 |
--------------------------------------------------------------------------------
/components/Notifications/src/Adaptive/IAdaptiveSubgroupChild.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.Notifications;
6 |
7 | ///
8 | /// Elements that can be direct children of an , including ( and ).
9 | ///
10 | public interface IAdaptiveSubgroupChild
11 | {
12 | // Blank interface simply for compile-enforcing the child types in the list.
13 | }
--------------------------------------------------------------------------------
/components/OpacityMaskView/tests/OpacityMaskView.Tests.projitems:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 | true
6 | 04511143-C2A3-4893-810D-3C1EA2877430
7 |
8 |
9 | OpacityMaskViewTests
10 |
11 |
--------------------------------------------------------------------------------
/components/TokenView/src/Themes/Generic.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.devcontainer/default.code-workspace:
--------------------------------------------------------------------------------
1 | {
2 | "folders": [
3 | {
4 | "path": ".."
5 | }
6 | ],
7 | "settings": {
8 | "omnisharp.defaultLaunchSolution": "CommunityToolkit.AllComponents.sln",
9 | "omnisharp.disableMSBuildDiagnosticWarning": true,
10 | "omnisharp.enableRoslynAnalyzers": true,
11 | "omnisharp.useGlobalMono": "never",
12 | "csharp.suppressBuildAssetsNotification": true,
13 | "csharp.suppressDotnetInstallWarning": true,
14 | "csharp.suppressDotnetRestoreNotification": true,
15 | "csharp.semanticHighlighting.enabled": true,
16 | "omnisharp.enableImportCompletion": true,
17 | "omnisharp.enableMsBuildLoadProjectsOnDemand": true
18 | }
19 | }
--------------------------------------------------------------------------------
/components/MarkdownTextBlock/src/TextElements/MyLineBreak.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.WinUI.Controls.TextElements;
6 |
7 | internal class MyLineBreak : IAddChild
8 | {
9 | private LineBreak _lineBreak;
10 |
11 | public TextElement TextElement
12 | {
13 | get => _lineBreak;
14 | }
15 |
16 | public MyLineBreak()
17 | {
18 | _lineBreak = new LineBreak();
19 | }
20 |
21 | public void AddChild(IAddChild child) {}
22 | }
23 |
--------------------------------------------------------------------------------
/components/Notifications/src/Adaptive/BaseTextHelper.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using CommunityToolkit.Notifications.Adaptive.Elements;
6 |
7 | namespace CommunityToolkit.Notifications;
8 |
9 | internal class BaseTextHelper
10 | {
11 | internal static Element_AdaptiveText CreateBaseElement(IBaseText current)
12 | {
13 | return new Element_AdaptiveText()
14 | {
15 | Text = current.Text,
16 | Lang = current.Language
17 | };
18 | }
19 | }
--------------------------------------------------------------------------------
/components/Notifications/src/Common/NotificationContentValidationException.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System;
6 |
7 | namespace CommunityToolkit.Notifications;
8 |
9 | ///
10 | /// Exception returned when invalid notification content is provided.
11 | ///
12 | internal sealed class NotificationContentValidationException : Exception
13 | {
14 | public NotificationContentValidationException(string message)
15 | : base(message)
16 | {
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/components/ColorAnalyzer/src/CommunityToolkit.WinUI.ColorAnalyzer.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ColorAnalyzer
6 | This package contains the ColorAnalyzer.
7 |
8 | CommunityToolkit.WinUI.ColorAnalyzerRns
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/components/DependencyPropertyGenerator/tests/DependencyPropertyGenerator.Tests.projitems:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 | true
6 | 22BE50B3-9810-4304-899E-6D7AF9D3147A
7 |
8 |
9 | DependencyPropertyGeneratorTests
10 |
11 |
--------------------------------------------------------------------------------
/components/Notifications/src/Toasts/IToastBindingGenericChild.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | namespace CommunityToolkit.Notifications;
6 |
7 | ///
8 | /// Elements that can be direct children of , including (, , and ).
9 | ///
10 | public interface IToastBindingGenericChild
11 | {
12 | // Blank interface simply for compile-enforcing the child types in the list.
13 | }
--------------------------------------------------------------------------------
/components/Extensions.DependencyInjection/tests/Extensions.DependencyInjection.Tests.projitems:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $(MSBuildAllProjects);$(MSBuildThisFileFullPath)
5 | true
6 | 47BFA618-6EF6-426A-B7CB-D8F2CEA68302
7 |
8 |
9 | Extensions.DependencyInjection.Tests
10 |
11 |
--------------------------------------------------------------------------------
/components/Notifications/src/Tiles/Elements/Element_Tile.cs:
--------------------------------------------------------------------------------
1 | // Licensed to the .NET Foundation under one or more agreements.
2 | // The .NET Foundation licenses this file to you under the MIT license.
3 | // See the LICENSE file in the project root for more information.
4 |
5 | using System.Collections.Generic;
6 |
7 | namespace CommunityToolkit.Notifications;
8 |
9 | internal sealed class Element_Tile : BaseElement, IHaveXmlName, IHaveXmlChildren
10 | {
11 | public Element_TileVisual Visual { get; set; }
12 |
13 | ///
14 | string IHaveXmlName.Name => "tile";
15 |
16 | ///
17 | IEnumerable