Skip to content

Commit

Permalink
Merge pull request #4 from ChrisPulman/AddOlderTargets
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPulman committed Mar 12, 2023
2 parents 0878955 + bb6fea7 commit 4a998bd
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
"version": "0.2",
"version": "0.3",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/main$"
Expand Down
1 change: 1 addition & 0 deletions src/AppBarButton.WPF/AppBarButton.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFrameworks>net462;net6.0-windows;net7.0-windows</TargetFrameworks>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<RootNamespace>CP</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/AppBarButton.WPF/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Windows;
using System.Windows.Markup;

[assembly: XmlnsDefinition("https://github.com/ChrisPulman/AppBarButton.WPF", "AppBarButton.WPF")]
[assembly: XmlnsDefinition("https://github.com/ChrisPulman/AppBarButton.WPF", "AppBarButton.WPF.Controls")]
[assembly: XmlnsPrefix("https://github.com/ChrisPulman/AppBarButton.WPF", "appbarbtn")]
[assembly: XmlnsDefinition("https://github.com/ChrisPulman/AppBarButton.WPF", "CP.WPF")]
[assembly: XmlnsDefinition("https://github.com/ChrisPulman/AppBarButton.WPF", "CP.WPF.Controls")]
[assembly: XmlnsPrefix("https://github.com/ChrisPulman/AppBarButton.WPF", "abb")]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
2 changes: 1 addition & 1 deletion src/AppBarButton.WPF/Assets/Converters.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:AppBarButton.WPF.Converters">
xmlns:converters="clr-namespace:CP.WPF.Converters">

<converters:ToUpperConverter x:Key="ToUpperConverter" />
<converters:ToLowerConverter x:Key="ToLowerConverter" />
Expand Down
4 changes: 2 additions & 2 deletions src/AppBarButton.WPF/Controls/AppBarButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Windows.Media;
using System.Xml.Linq;

namespace AppBarButton.WPF.Controls
namespace CP.WPF.Controls
{
/// <summary>
/// Adds icon content to a standard button.
Expand Down Expand Up @@ -240,7 +240,7 @@ private static void SetIcon(DependencyObject d, DependencyPropertyChangedEventAr
// find all embedded XAML icon files
var assembly = GetType().Assembly;
var iconResourceNames = from name in assembly.GetManifestResourceNames()
where name.Equals($"AppBarButton.WPF.Assets.AppBar.appbar.{icon.ToString().Replace('_', '.')}.xaml", System.StringComparison.Ordinal)
where name.Equals($"CP.Assets.AppBar.appbar.{icon.ToString().Replace('_', '.')}.xaml", System.StringComparison.Ordinal)
select name;

// load the resource stream
Expand Down
2 changes: 1 addition & 1 deletion src/AppBarButton.WPF/Controls/AppBarIcons.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Chris Pulman. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace AppBarButton.WPF.Controls
namespace CP.WPF.Controls
{
/// <summary>
/// Standard Application bar icons.
Expand Down
2 changes: 1 addition & 1 deletion src/AppBarButton.WPF/Converters/ToLowerConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Windows.Data;

namespace AppBarButton.WPF.Converters
namespace CP.WPF.Converters
{
/// <summary>
/// Converts string values to lower case.
Expand Down
2 changes: 1 addition & 1 deletion src/AppBarButton.WPF/Converters/ToUpperConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Windows.Data;

namespace AppBarButton.WPF.Converters
namespace CP.WPF.Converters
{
/// <summary>
/// Converts string values to upper case.
Expand Down
2 changes: 1 addition & 1 deletion src/AppBarButton.WPF/Themes/AppBarButton.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:AppBarButton.WPF.Controls">
xmlns:controls="clr-namespace:CP.WPF.Controls">

<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/AppBarButton.WPF;component/Assets/Converters.xaml" />
Expand Down

0 comments on commit 4a998bd

Please sign in to comment.