Skip to content

Commit f8d6d43

Browse files
committed
feat(swipecontrol): Set namespaces
1 parent 3f6c86e commit f8d6d43

19 files changed

+681
-701
lines changed

src/Uno.UI/UI/Xaml/Controls/SwipeControl/SwipeControl.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4+
namespace Windows.UI.Xaml.Controls
5+
{
6+
public partial class SwipeControl
7+
{
48

5-
// Change to 'true' to turn on debugging outputs in Output window
6-
bool SwipeControlTrace.s_IsDebugOutputEnabled{ false };
9+
// Change to 'true' to turn on debugging outputs in Output window
10+
bool SwipeControlTrace.s_IsDebugOutputEnabled{ false };
711
bool SwipeControlTrace.s_IsVerboseDebugOutputEnabled{ false };
812

913
static double c_epsilon = 0.0001;
@@ -1713,3 +1717,5 @@ wstring_view DirectionToInset( CreatedContent& createdContent)
17131717
return "";
17141718
}
17151719
}
1720+
}
1721+
}

src/Uno.UI/UI/Xaml/Controls/SwipeControl/SwipeControl.h.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33

44
#pragma once
55

6+
namespace Windows.UI.Xaml.Controls
7+
{
8+
public partial class SwipeControl
9+
{
610

7-
8-
enum class CreatedContent { Left, Top, Bottom, Right, None };
11+
enum class CreatedContent { Left, Top, Bottom, Right, None };
912

1013
class SwipeControl :
1114
public ReferenceTracker<SwipeControl, winrt.implementation.SwipeControlT, winrt.cloaked<winrt.IInteractionTrackerOwner>>,
@@ -266,3 +269,4 @@ void ValuesChanged(
266269
static wstring_view s_executeSwipeItemPreThresholdForegroundResourceName{ "SwipeItemPreThresholdExecuteForeground"sv };
267270
static wstring_view s_executeSwipeItemPostThresholdForegroundResourceName{ "SwipeItemPostThresholdExecuteForeground"sv };
268271
};
272+
}}

src/Uno.UI/UI/Xaml/Controls/SwipeControl/SwipeControl.properties.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33

44
// DO NOT EDIT! This file was generated by CustomTasks.DependencyPropertyCodeGen
55

6-
namespace winrt.Microsoft.UI.Xaml.Controls
6+
namespace Windows.UI.Xaml.Controls
77
{
8-
CppWinRTActivatableClassWithDPFactory(SwipeControl)
9-
}
10-
8+
public partial class SwipeControl
9+
{
1110

12-
GlobalDependencyProperty SwipeControlProperties.s_BottomItemsProperty{ null };
11+
GlobalDependencyProperty SwipeControlProperties.s_BottomItemsProperty{ null };
1312
GlobalDependencyProperty SwipeControlProperties.s_LeftItemsProperty{ null };
1413
GlobalDependencyProperty SwipeControlProperties.s_RightItemsProperty{ null };
1514
GlobalDependencyProperty SwipeControlProperties.s_TopItemsProperty{ null };
@@ -158,3 +157,4 @@ winrt.SwipeItems SwipeControlProperties.TopItems()
158157
{
159158
return ValueHelper<winrt.SwipeItems>.CastOrUnbox((SwipeControl)(this).GetValue(s_TopItemsProperty));
160159
}
160+
}}

src/Uno.UI/UI/Xaml/Controls/SwipeControl/SwipeControl.properties.h.cs

Lines changed: 50 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,65 @@
44
// DO NOT EDIT! This file was generated by CustomTasks.DependencyPropertyCodeGen
55
#pragma once
66

7-
class SwipeControlProperties
7+
namespace Windows.UI.Xaml.Controls
88
{
9-
public:
10-
SwipeControlProperties();
9+
public partial class SwipeControl
10+
{
11+
public:
1112

12-
void BottomItems(winrt.SwipeItems & value);
13-
winrt.SwipeItems BottomItems();
13+
SwipeControlProperties();
1414

15-
void LeftItems(winrt.SwipeItems & value);
16-
winrt.SwipeItems LeftItems();
15+
void BottomItems(winrt.SwipeItems & value);
1716

18-
void RightItems(winrt.SwipeItems & value);
19-
winrt.SwipeItems RightItems();
17+
winrt.SwipeItems BottomItems();
2018

21-
void TopItems(winrt.SwipeItems & value);
22-
winrt.SwipeItems TopItems();
19+
void LeftItems(winrt.SwipeItems & value);
2320

24-
static winrt.DependencyProperty BottomItemsProperty() { return s_BottomItemsProperty; }
25-
static winrt.DependencyProperty LeftItemsProperty() { return s_LeftItemsProperty; }
26-
static winrt.DependencyProperty RightItemsProperty() { return s_RightItemsProperty; }
27-
static winrt.DependencyProperty TopItemsProperty() { return s_TopItemsProperty; }
21+
winrt.SwipeItems LeftItems();
2822

29-
static GlobalDependencyProperty s_BottomItemsProperty;
30-
static GlobalDependencyProperty s_LeftItemsProperty;
31-
static GlobalDependencyProperty s_RightItemsProperty;
32-
static GlobalDependencyProperty s_TopItemsProperty;
23+
void RightItems(winrt.SwipeItems & value);
3324

34-
static void EnsureProperties();
35-
static void ClearProperties();
25+
winrt.SwipeItems RightItems();
3626

37-
static void OnBottomItemsPropertyChanged(
38-
winrt.DependencyObject & sender,
39-
winrt.DependencyPropertyChangedEventArgs & args);
27+
void TopItems(winrt.SwipeItems & value);
4028

41-
static void OnLeftItemsPropertyChanged(
42-
winrt.DependencyObject & sender,
43-
winrt.DependencyPropertyChangedEventArgs & args);
29+
winrt.SwipeItems TopItems();
4430

45-
static void OnRightItemsPropertyChanged(
46-
winrt.DependencyObject & sender,
47-
winrt.DependencyPropertyChangedEventArgs & args);
31+
static winrt.DependencyProperty BottomItemsProperty() { return s_BottomItemsProperty; }
4832

49-
static void OnTopItemsPropertyChanged(
50-
winrt.DependencyObject & sender,
51-
winrt.DependencyPropertyChangedEventArgs & args);
52-
};
33+
static winrt.DependencyProperty LeftItemsProperty() { return s_LeftItemsProperty; }
34+
35+
static winrt.DependencyProperty RightItemsProperty() { return s_RightItemsProperty; }
36+
37+
static winrt.DependencyProperty TopItemsProperty() { return s_TopItemsProperty; }
38+
39+
static GlobalDependencyProperty s_BottomItemsProperty;
40+
static GlobalDependencyProperty s_LeftItemsProperty;
41+
static GlobalDependencyProperty s_RightItemsProperty;
42+
static GlobalDependencyProperty s_TopItemsProperty;
43+
44+
static void EnsureProperties();
45+
46+
static void ClearProperties();
47+
48+
static void OnBottomItemsPropertyChanged(
49+
winrt.DependencyObject & sender,
50+
51+
winrt.DependencyPropertyChangedEventArgs & args);
52+
53+
static void OnLeftItemsPropertyChanged(
54+
winrt.DependencyObject & sender,
55+
56+
winrt.DependencyPropertyChangedEventArgs & args);
57+
58+
static void OnRightItemsPropertyChanged(
59+
winrt.DependencyObject & sender,
60+
61+
winrt.DependencyPropertyChangedEventArgs & args);
62+
63+
static void OnTopItemsPropertyChanged(
64+
winrt.DependencyObject & sender,
65+
66+
winrt.DependencyPropertyChangedEventArgs & args);
67+
};
68+
}

src/Uno.UI/UI/Xaml/Controls/SwipeControl/SwipeControlTrace.h.cs

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

0 commit comments

Comments
 (0)