Skip to content

Commit 9968a7b

Browse files
committed
Cleaned up properties and moved enums
1 parent c248683 commit 9968a7b

File tree

12 files changed

+338
-832
lines changed

12 files changed

+338
-832
lines changed

src/Files.App.Controls/ThemedIcon/ThemedIcon.Consts.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ namespace Files.App.Controls
3333
[TemplateVisualState(Name = EnabledStateName, GroupName = EnabledStateGroupName)]
3434
[TemplateVisualState(Name = DisabledStateName, GroupName = EnabledStateGroupName)]
3535

36+
37+
3638
public partial class ThemedIcon
3739
{
3840
// Visual State Group Names

src/Files.App.Controls/ThemedIcon/ThemedIcon.Owner.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ namespace Files.App.Controls
1010
{
1111
public partial class ThemedIcon
1212
{
13-
private bool _isOwnerToggled;
14-
private bool _isOwnerEnabled;
13+
private bool _isOwnerToggled;
14+
private bool _isOwnerEnabled;
15+
16+
private Control? ownerControl = null;
17+
private ToggleButton? ownerToggleButton = null;
1518

16-
private Control? ownerControl = null;
17-
private ToggleButton? ownerToggleButton = null;
1819

1920
private void FindOwnerControlStates()
2021
{
@@ -40,6 +41,8 @@ private void FindOwnerControlStates()
4041
}
4142
}
4243

44+
45+
4346
private void OwnerControl_IsCheckedChanged(object sender, RoutedEventArgs e)
4447
{
4548
if (ownerToggleButton is null)
@@ -50,6 +53,8 @@ private void OwnerControl_IsCheckedChanged(object sender, RoutedEventArgs e)
5053

5154
}
5255

56+
57+
5358
private void OwnerControl_IsEnabledChanged(object sender, DependencyPropertyChangedEventArgs e)
5459
{
5560
if (ownerControl is null)

src/Files.App.Controls/ThemedIcon/ThemedIcon.OwnerEvents.cs

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)