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

refactor: Image #15938

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
510 changes: 0 additions & 510 deletions src/Uno.UI/UI/Xaml/Controls/Image/Image.Android.cs

This file was deleted.

4 changes: 3 additions & 1 deletion src/Uno.UI/UI/Xaml/Controls/Image/Image.Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public ImageSource Source
}

/// <summary>
/// Identifies the Source dependency property.
/// Identifies the Source dependency property.
/// </summary>
public static DependencyProperty SourceProperty { get; } =
DependencyProperty.Register(
Expand Down Expand Up @@ -48,6 +48,8 @@ public Stretch Stretch
Stretch.Uniform,
(s, e) => ((Image)s).OnStretchChanged((Stretch)e.NewValue, (Stretch)e.OldValue)));

partial void OnStretchChanged(Stretch newValue, Stretch oldValue);

#if !__WASM__
/// <summary>
/// Occurs when there is an error associated with image retrieval or format.
Expand Down
25 changes: 25 additions & 0 deletions src/Uno.UI/UI/Xaml/Controls/Image/Image.Tracing.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Uno.Diagnostics.Eventing;

namespace Microsoft.UI.Xaml.Controls;

partial class Image
{
private readonly static IEventProvider _imageTrace = Tracing.Get(TraceProvider.Id);

public static new class TraceProvider
{
public readonly static Guid Id = Guid.Parse("{15E13473-560E-4601-86FF-C9E1EDB73701}");

public const int Image_SetSourceStart = 1;
public const int Image_SetSourceStop = 2;
public const int Image_SetUriStart = 3;
public const int Image_SetUriStop = 4;
public const int Image_SetImageStart = 5;
public const int Image_SetImageStop = 6;
}
}
Loading
Loading