Skip to content

Commit

Permalink
3.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
4OTbIPE committed Sep 7, 2024
1 parent 6ecb55b commit d7a58bb
Show file tree
Hide file tree
Showing 10 changed files with 637 additions and 670 deletions.
55 changes: 27 additions & 28 deletions ImageEx/ImageEx.Members.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,40 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace ImageEx
namespace ImageEx;

/// <summary>
/// The ImageEx control extends the default Image platform control improving the performance and responsiveness of your Apps.
/// Source images are downloaded asynchronously showing a load indicator while in progress.
/// Once downloaded, the source image is stored in the App local cache to preserve resources and load time next time the image needs to be displayed.
/// </summary>
public partial class ImageEx
{
/// <summary>
/// The ImageEx control extends the default Image platform control improving the performance and responsiveness of your Apps.
/// Source images are downloaded asynchronously showing a load indicator while in progress.
/// Once downloaded, the source image is stored in the App local cache to preserve resources and load time next time the image needs to be displayed.
/// Identifies the <see cref="NineGrid"/> dependency property.
/// </summary>
public static readonly DependencyProperty NineGridProperty = DependencyProperty.Register(nameof(NineGrid), typeof(Thickness), typeof(ImageEx), new PropertyMetadata(default(Thickness)));

/// <summary>
/// Gets or sets the nine-grid used by the image.
/// </summary>
public partial class ImageEx
public Thickness NineGrid
{
/// <summary>
/// Identifies the <see cref="NineGrid"/> dependency property.
/// </summary>
public static readonly DependencyProperty NineGridProperty = DependencyProperty.Register(nameof(NineGrid), typeof(Thickness), typeof(ImageEx), new PropertyMetadata(default(Thickness)));
get { return (Thickness)GetValue(NineGridProperty); }
set { SetValue(NineGridProperty, value); }
}

/// <summary>
/// Gets or sets the nine-grid used by the image.
/// </summary>
public Thickness NineGrid
/// <summary>
/// Returns the image as a <see cref="CastingSource"/>.
/// </summary>
/// <returns>The image as a <see cref="CastingSource"/>.</returns>
public CastingSource GetAsCastingSource()
{
if (IsInitialized && Image is Image image)
{
get { return (Thickness)GetValue(NineGridProperty); }
set { SetValue(NineGridProperty, value); }
return image.GetAsCastingSource();
}

/// <summary>
/// Returns the image as a <see cref="CastingSource"/>.
/// </summary>
/// <returns>The image as a <see cref="CastingSource"/>.</returns>
public CastingSource GetAsCastingSource()
{
if (IsInitialized && Image is Image image)
{
return image.GetAsCastingSource();
}

return null;
}
return null;
}
}
25 changes: 10 additions & 15 deletions ImageEx/ImageEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,20 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Diagnostics;
namespace ImageEx;

namespace ImageEx
/// <summary>
/// The ImageEx control extends the default Image platform control improving the performance and responsiveness of your Apps.
/// Source images are downloaded asynchronously showing a load indicator while in progress.
/// Once downloaded, the source image is stored in the App local cache to preserve resources and load time next time the image needs to be displayed.
/// </summary>
public partial class ImageEx : ImageExBase
{
/// <summary>
/// The ImageEx control extends the default Image platform control improving the performance and responsiveness of your Apps.
/// Source images are downloaded asynchronously showing a load indicator while in progress.
/// Once downloaded, the source image is stored in the App local cache to preserve resources and load time next time the image needs to be displayed.
/// Initializes a new instance of the <see cref="ImageEx"/> class.
/// </summary>
public partial class ImageEx : ImageExBase
public ImageEx() : base()
{
/// <summary>
/// Initializes a new instance of the <see cref="ImageEx"/> class.
/// </summary>
public ImageEx()
: base()
{
DefaultStyleKey = typeof(ImageEx);
Debug.WriteLine(DefaultStyleKey.ToString());
}
DefaultStyleKey = typeof(ImageEx);
}
}
5 changes: 3 additions & 2 deletions ImageEx/ImageEx.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
<Project Sdk="MSBuild.Sdk.Extras">

<PropertyGroup>
<TargetFrameworks>uap10.0.19041;net6.0-windows10.0.19041;net7.0-windows10.0.19041;net8.0-windows10.0.19041</TargetFrameworks>
<TargetFrameworks>uap10.0.22621;net8.0-windows10.0.22621</TargetFrameworks>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<LangVersion>11.0</LangVersion>
<LangVersion>12.0</LangVersion>
<NoWarn>NETSDK1023;CA1416</NoWarn>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<DebugType>embedded</DebugType>
</PropertyGroup>

<PropertyGroup Condition="$(TargetFramework.Contains('net8.0'))">
<IsAotCompatible>true</IsAotCompatible>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
</PropertyGroup>

Expand Down
Loading

0 comments on commit d7a58bb

Please sign in to comment.