Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix FancyZones Hit test build * Fix DrawLayoutTest * Fix Zonable tester * Adress PR comments
- Loading branch information
1 parent
08fe13a
commit 7d6a774
Showing
11 changed files
with
102 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// Copyright (c) Microsoft Corporation | ||
// The Microsoft Corporation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Windows; | ||
|
||
[assembly: ThemeInfo( | ||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located | ||
//(used if a resource is not found in the page, | ||
// or application resource dictionaries) | ||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located | ||
//(used if a resource is not found in the page, | ||
// app, or any theme specific resource dictionaries) | ||
)] | ||
ResourceDictionaryLocation.None, | ||
ResourceDictionaryLocation.SourceAssembly)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 0 additions & 39 deletions
39
tools/FancyZone_HitTest/FancyZone_HitTest/VisualDataComparer.cs
This file was deleted.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
tools/FancyZone_HitTest/FancyZone_HitTest/VisualDataComparer`1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright (c) Microsoft Corporation | ||
// The Microsoft Corporation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace FancyZone_HitTest | ||
{ | ||
public class VisualDataComparer<T> : IComparer<VisualData> | ||
{ | ||
int IComparer<VisualData>.Compare(VisualData x, VisualData y) | ||
{ | ||
// has quirks but workable | ||
if (x.DistanceFromEdge == y.DistanceFromEdge) | ||
{ | ||
return y.Area.CompareTo(x.Area); | ||
} | ||
else | ||
{ | ||
return x.DistanceFromEdge.CompareTo(y.DistanceFromEdge); | ||
} | ||
|
||
// entire screen won't work | ||
/* | ||
if (x.MouseDistanceFromCenter == y.MouseDistanceFromCenter) | ||
{ | ||
return y.Area.CompareTo(x.Area); | ||
} | ||
else | ||
{ | ||
return x.MouseDistanceFromCenter.CompareTo(y.MouseDistanceFromCenter); | ||
} | ||
if (x.DistanceFromEdgePercentage == y.DistanceFromEdgePercentage) | ||
{ | ||
return y.Area.CompareTo(x.Area); | ||
} | ||
else | ||
{ | ||
return x.DistanceFromEdgePercentage.CompareTo(y.DistanceFromEdgePercentage); | ||
}*/ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters