Skip to content

Commit

Permalink
Apply necessary partial to WinRT classes
Browse files Browse the repository at this point in the history
  • Loading branch information
hez2010 committed Feb 8, 2025
1 parent 6b08e4b commit 346a710
Show file tree
Hide file tree
Showing 321 changed files with 396 additions and 393 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<Configurations>Debug;Release</Configurations>
<Platforms>x86;x64;ARM64</Platforms>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace Files.App.Controls
{
internal class AdaptiveHeightValueConverter : IValueConverter
internal partial class AdaptiveHeightValueConverter : IValueConverter
{
private Thickness thickness = new Thickness(0, 0, 4, 4);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Files.App.Controls
/// <summary>
/// Defines a framework element automation peer for the <see cref="BladeItem"/>.
/// </summary>
public class BladeItemAutomationPeer : FrameworkElementAutomationPeer
public partial class BladeItemAutomationPeer : FrameworkElementAutomationPeer
{
/// <summary>
/// Initializes a new instance of the <see cref="BladeItemAutomationPeer"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Files.App.Controls
/// <summary>
/// Defines a framework element automation peer for the <see cref="BladeView"/> control.
/// </summary>
public class BladeViewAutomationPeer : ItemsControlAutomationPeer
public partial class BladeViewAutomationPeer : ItemsControlAutomationPeer
{
/// <summary>
/// Initializes a new instance of the <see cref="BladeViewAutomationPeer"/> class.
Expand Down
1 change: 1 addition & 0 deletions src/Files.App.Controls/Files.App.Controls.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<Configurations>Debug;Release</Configurations>
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Files.App.Controls/ThemedIcon/Data/ThemedIconLayers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Files.App.Controls
/// <summary>
/// A collection of Layers for the ThemedIcon's Layered IconType
/// </summary>
public sealed class ThemedIconLayers : List<ThemedIconLayer>
public sealed partial class ThemedIconLayers : List<ThemedIconLayer>
{
}
}
2 changes: 1 addition & 1 deletion src/Files.App.Controls/Toolbar/ToolbarItemList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Files.App.Controls
/// A collection of Toolbar Items,
/// that are included in the IToolbarItemSet interface
/// </summary>
internal class ToolbarItemList : List<IToolbarItemSet>
internal partial class ToolbarItemList : List<IToolbarItemSet>
{
}
}
2 changes: 1 addition & 1 deletion src/Files.App.Controls/Toolbar/ToolbarItemOverflowList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Files.App.Controls
/// A collection of Toolbar Items which are presented in the Overflow Menu,
/// that are included in the IToolbarItemSet interface
/// </summary>
internal class ToolbarItemOverflowList : List<IToolbarOverflowItemSet>
internal partial class ToolbarItemOverflowList : List<IToolbarOverflowItemSet>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Files.App.Actions
{
internal sealed class CompressIntoArchiveAction : BaseCompressArchiveAction
internal sealed partial class CompressIntoArchiveAction : BaseCompressArchiveAction
{
public override string Label
=> "CreateArchive".GetLocalizedResource();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Files.App.Actions
{
internal sealed class CompressIntoSevenZipAction : BaseCompressArchiveAction
internal sealed partial class CompressIntoSevenZipAction : BaseCompressArchiveAction
{
public override string Label
=> string.Format("CreateNamedArchive".GetLocalizedResource(), $"{StorageArchiveService.GenerateArchiveNameFromItems(context.SelectedItems)}.7z");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Files.App.Actions
{
internal sealed class CompressIntoZipAction : BaseCompressArchiveAction
internal sealed partial class CompressIntoZipAction : BaseCompressArchiveAction
{
public override string Label
=> string.Format("CreateNamedArchive".GetLocalizedResource(), $"{StorageArchiveService.GenerateArchiveNameFromItems(context.SelectedItems)}.zip");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Files.App.Actions
{
internal sealed class DecompressArchive : BaseDecompressArchiveAction
internal sealed partial class DecompressArchive : BaseDecompressArchiveAction
{
public override string Label
=> "ExtractFiles".GetLocalizedResource();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Files.App.Actions
{
internal sealed class DecompressArchiveHere : BaseDecompressArchiveAction
internal sealed partial class DecompressArchiveHere : BaseDecompressArchiveAction
{
public override string Label
=> "ExtractHere".GetLocalizedResource();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Files.App.Actions
{
internal sealed class DecompressArchiveHereSmart : BaseDecompressArchiveAction
internal sealed partial class DecompressArchiveHereSmart : BaseDecompressArchiveAction
{
public override string Label
=> "ExtractHereSmart".GetLocalizedResource();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Files.App.Actions
{
internal sealed class DecompressArchiveToChildFolderAction : BaseDecompressArchiveAction
internal sealed partial class DecompressArchiveToChildFolderAction : BaseDecompressArchiveAction
{
public override string Label
=> ComputeLabel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Files.App.Actions
{
internal sealed class SetAsAppBackgroundAction : BaseSetAsAction
internal sealed partial class SetAsAppBackgroundAction : BaseSetAsAction
{
private readonly IAppearanceSettingsService AppearanceSettingsService = Ioc.Default.GetRequiredService<IAppearanceSettingsService>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class SetAsLockscreenBackgroundAction : BaseSetAsAction
internal sealed partial class SetAsLockscreenBackgroundAction : BaseSetAsAction
{
private readonly IWindowsWallpaperService WindowsWallpaperService = Ioc.Default.GetRequiredService<IWindowsWallpaperService>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class SetAsSlideshowBackgroundAction : BaseSetAsAction
internal sealed partial class SetAsSlideshowBackgroundAction : BaseSetAsAction
{
private readonly IWindowsWallpaperService WindowsWallpaperService = Ioc.Default.GetRequiredService<IWindowsWallpaperService>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class SetAsWallpaperBackgroundAction : BaseSetAsAction
internal sealed partial class SetAsWallpaperBackgroundAction : BaseSetAsAction
{
public override string Label
=> "SetAsBackground".GetLocalizedResource();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class RotateLeftAction : BaseRotateAction
internal sealed partial class RotateLeftAction : BaseRotateAction
{
public override string Label
=> "RotateLeft".GetLocalizedResource();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class RotateRightAction : BaseRotateAction
internal sealed partial class RotateRightAction : BaseRotateAction
{
public override string Label
=> "RotateRight".GetLocalizedResource();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class InstallCertificateAction : ObservableObject, IAction
internal sealed partial class InstallCertificateAction : ObservableObject, IAction
{
private readonly IContentPageContext context;

Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Actions/Content/Install/InstallFontAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class InstallFontAction : ObservableObject, IAction
internal sealed partial class InstallFontAction : ObservableObject, IAction
{
private readonly IContentPageContext context;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class InstallInfDriverAction : ObservableObject, IAction
internal sealed partial class InstallInfDriverAction : ObservableObject, IAction
{
private readonly IContentPageContext context;

Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Actions/Content/PlayAllAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class PlayAllAction : ObservableObject, IAction
internal sealed partial class PlayAllAction : ObservableObject, IAction
{
private readonly IContentPageContext context;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Files.App.Actions
{
internal sealed class LaunchPreviewPopupAction : ObservableObject, IAction
internal sealed partial class LaunchPreviewPopupAction : ObservableObject, IAction
{
private readonly IContentPageContext context;

Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Actions/Content/RefreshItemsAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Files.App.Actions
{
internal sealed class RefreshItemsAction : ObservableObject, IAction
internal sealed partial class RefreshItemsAction : ObservableObject, IAction
{
private readonly IContentPageContext context;

Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Actions/Content/Run/RunAsAdminAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class RunAsAdminAction : BaseRunAsAction
internal sealed partial class RunAsAdminAction : BaseRunAsAction
{
private readonly IContentPageContext ContentPageContext = Ioc.Default.GetRequiredService<IContentPageContext>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class RunAsAnotherUserAction : BaseRunAsAction
internal sealed partial class RunAsAnotherUserAction : BaseRunAsAction
{
private readonly IContentPageContext ContentPageContext = Ioc.Default.GetRequiredService<IContentPageContext>();
public override string Label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class RunWithPowershellAction : ObservableObject, IAction
internal sealed partial class RunWithPowershellAction : ObservableObject, IAction
{
private readonly IContentPageContext context;

Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Actions/Content/Share/ShareItemAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Files.App.Actions
{
internal sealed class ShareItemAction : ObservableObject, IAction
internal sealed partial class ShareItemAction : ObservableObject, IAction
{
private readonly IContentPageContext context;

Expand Down
2 changes: 1 addition & 1 deletion src/Files.App/Actions/Content/Tags/OpenAllTaggedActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Files.App.Actions
{
sealed class OpenAllTaggedActions: ObservableObject, IAction
sealed partial class OpenAllTaggedActions: ObservableObject, IAction
{
private readonly IContentPageContext _pageContext;

Expand Down
Loading

0 comments on commit 346a710

Please sign in to comment.