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

Merge Dev/split controls Refactoring to Main #3752

Merged
merged 105 commits into from
Feb 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
6956c73
Move some controls to Primitives.
Rosuavio Dec 10, 2020
e885c10
Update Primiative controls ns
Rosuavio Dec 10, 2020
2fdcbe6
Apply change for platform uno compatiblity #3651
Rosuavio Jan 6, 2021
7431e17
Update Microsoft.Toolkit.Uwp.UI.Controls.Primitives/Microsoft.Toolkit…
Rosuavio Jan 8, 2021
1e34abf
Remove System.ValueTuple from Controls.Primitives
Rosuavio Jan 8, 2021
ac71f64
Added SwitchPresenter in description of Control.Primitives project
Rosuavio Jan 8, 2021
b6bc173
Revert "Update Primiative controls ns"
Rosuavio Jan 8, 2021
04869f4
Add SwitchPresenter tag to Controls.Primitives
Rosuavio Jan 8, 2021
b6ca5af
Split out primitives design project
Rosuavio Jan 8, 2021
06a9822
Fix primitives deisgn tools ref
Rosuavio Jan 11, 2021
8fd51a1
Merge branch 'master' into split-controls
Rosuavio Jan 11, 2021
96e1aba
Fix finding desing output for controls.primitives
Rosuavio Jan 12, 2021
3fb9053
Add smoke test for Controls.Primitivs
Rosuavio Jan 12, 2021
4f83e08
List SwitchPresenter for DesignTools
Rosuavio Jan 12, 2021
0043ecd
Better wording for titles and descriptions around primitivs package
Rosuavio Jan 12, 2021
3cc5a64
Remove exposing internals to xmalisland test, not needed.
Rosuavio Jan 12, 2021
c763049
WIP: move Eyedropper, ImageCropper, InfiniteCanvas
Rosuavio Jan 12, 2021
f66ae16
Controls.Media: Remove System.ValueTuple
Rosuavio Jan 12, 2021
8927201
Controls: Remove System.ValueTuple, System.Text.Json
Rosuavio Jan 12, 2021
0869c79
Fix assemly name in test file
Rosuavio Jan 12, 2021
3ffa9b5
Remove unneded deps
Rosuavio Jan 12, 2021
b298fd0
Controls.Media: ControlHelpers.XamlHost.cs, use file like in project …
Rosuavio Jan 13, 2021
fc221a7
Merge pull request #3660 from RosarioPulella/split-controls
michael-hawker Jan 13, 2021
b85d0dd
Merge branch 'dev/split-controls' into split-media
Rosuavio Jan 14, 2021
e8ff462
Merge remote-tracking branch 'origin/master' into dev/split-controls
michael-hawker Jan 15, 2021
e4db504
Handle V1 of InfiniteCanvasExport data, and regresion test for V2
Rosuavio Jan 15, 2021
250f5d4
Merge branch 'dev/split-controls' into split-media
Rosuavio Jan 15, 2021
8ee6b1a
Controls.Media: Add smoke tests.
Rosuavio Jan 15, 2021
ddc7950
Controls.Media: Eyedroper to Project description and Package Tags
Rosuavio Jan 15, 2021
8f60463
Controls.Media: change title to include Media
Rosuavio Jan 15, 2021
97dda4a
Controls.Media: List Eyedropper and ImageCropper in VisualStudioTools…
Rosuavio Jan 15, 2021
fb228c3
Controls.Media: Imporove description
Rosuavio Jan 15, 2021
c61156d
Fix usages of old assembly name
Rosuavio Jan 19, 2021
56609a0
Handel descirminator textDrawable from Control Assembly
Rosuavio Jan 19, 2021
53344dc
Test sample exported from inifinate canvase instead of modified from …
Rosuavio Jan 19, 2021
70de6df
Merge remote-tracking branch 'origin/master' into dev/split-controls
michael-hawker Jan 19, 2021
5a987f9
Merge branch 'dev/split-controls' into split-media
Rosuavio Jan 20, 2021
aed5068
TEMP: Remove usages of graph controls
Rosuavio Jan 20, 2021
2376dd3
Merge pull request #3669 from RosarioPulella/split-media
michael-hawker Jan 20, 2021
f55f101
Merge remote-tracking branch 'origin/master' into dev/split-controls
michael-hawker Jan 21, 2021
704a356
Move Controls to Controls.Core folder
Rosuavio Jan 19, 2021
41bb7e5
Reanme controls package to controls.core
Rosuavio Jan 19, 2021
c26afc9
Move Controls.Desin to Controls.Core.Desin
Rosuavio Jan 19, 2021
28b6056
Rename Contols.Design -> Controls.Core.Design
Rosuavio Jan 21, 2021
298b95b
Controls.Core: Remove animation proj ref
Rosuavio Jan 21, 2021
123b864
SmokeTests: update ref to Controls.Core
Rosuavio Jan 21, 2021
d9f6e18
Rename folder: MasterDetailsView -> ListDetailsView
Rosuavio Jan 21, 2021
a3c2cf7
Rename file: MasterDetailView -> ListDetailView
Rosuavio Jan 21, 2021
d422af7
Rename class: MasterDetailsView -> ListDetailsView
Rosuavio Jan 21, 2021
d7ba284
Rename all the master things in MasterDetailsView to list
Rosuavio Jan 21, 2021
150795d
Update PackageTags to List and ListDetail
Rosuavio Jan 21, 2021
a85f880
Sample: Ref ListDetailView
Rosuavio Jan 21, 2021
2a5718c
Smaple: rename MasterDetailView folder to ListDetialView
Rosuavio Jan 21, 2021
831b0d5
Smaples: Rename MasterDetailViewPage -> ListDetailsViewPage
Rosuavio Jan 22, 2021
b4e018d
Core.Design: Rename MasterDetailView Files
Rosuavio Jan 22, 2021
d5cb0af
Core.Design: Change metadata to relfect ListDetailView
Rosuavio Jan 22, 2021
a96150d
UnitTest: Use ListDetailsView where posible
Rosuavio Jan 22, 2021
6fc1bd8
UnitTest: Rename Test_MasterDetailsView.cs -> Test_ListDetailsView.cs
Rosuavio Jan 22, 2021
24a32ed
Fix: put Controls.Core Desin assemblies in correct folder.
Rosuavio Jan 25, 2021
d09c667
Merge remote-tracking branch 'origin/master' into dev/split-controls
michael-hawker Jan 26, 2021
fefbccd
Merge branch 'dev/split-controls' into rename-controls-to-core
Rosuavio Jan 26, 2021
50c7c6b
Merge remote-tracking branch 'origin/master' into dev/split-controls
michael-hawker Jan 28, 2021
2ed7e86
Merge branch 'dev/split-controls' into rename-controls-to-core
michael-hawker Jan 28, 2021
57e42fe
Merge pull request #3676 from RosarioPulella/rename-controls-to-core
michael-hawker Feb 2, 2021
c2a56ea
Sample: update CodeUrl props in samples.json
Rosuavio Jan 21, 2021
7650906
Move StaggeredLayout and WrapLayout to Primitives
Rosuavio Feb 1, 2021
049e26c
Move Layout controls to Layout Package
Rosuavio Feb 1, 2021
3fb8b94
Fix Generic.xaml for Layout package test
michael-hawker Feb 1, 2021
01ad1bd
Clean-up Project Files and remove link from Core to Layout package fo…
michael-hawker Feb 1, 2021
439b505
Fix Stylecop Issues
michael-hawker Feb 2, 2021
e0be87f
fix smoke tests for moved controls.
Rosuavio Feb 2, 2021
b040f86
simplify and fix layout smoke test
Rosuavio Feb 2, 2021
61ec403
fix typeo
Rosuavio Feb 2, 2021
24843b4
Layout: remove Primitivs dep
Rosuavio Feb 2, 2021
2f0dbf4
Move over over some more refrences to layout controls
Rosuavio Feb 3, 2021
6b54cf8
Split out Contorls.Layout.Design
Rosuavio Feb 3, 2021
b3babef
Merge pull request #3682 from RosarioPulella/fix-samples-CodeUrl
michael-hawker Feb 4, 2021
d9f6174
Merge branch 'dev/split-controls' into reorg-layout
Rosuavio Feb 4, 2021
7c7d1ef
Fix Layout package Resource Strings
michael-hawker Feb 4, 2021
7463d9f
Merge pull request #3714 from RosarioPulella/reorg-layout
michael-hawker Feb 4, 2021
c767314
Split out input controls from core
Rosuavio Feb 3, 2021
1293b2c
Include Controls.Input in Tests and Sample App proejcts
Rosuavio Feb 3, 2021
1f70b68
Update Microsoft.Toolkit.Uwp.UI.Controls.Input/Themes/Generic.xaml to…
michael-hawker Feb 4, 2021
f9a0f0b
Update TokenizingTextBoxItem locations to correct assembly
michael-hawker Feb 4, 2021
d456a53
Fix TokenizingTextBox Resource Strings
michael-hawker Feb 4, 2021
c67193d
Add Input package to Smoke Tests
michael-hawker Feb 4, 2021
a68dd95
Fix reference in Input package to Primitives package
michael-hawker Feb 4, 2021
f1fe78d
Input: Split out design tools
Rosuavio Feb 4, 2021
7a7ec26
Merge pull request #3727 from RosarioPulella/refactor/input-controls
michael-hawker Feb 8, 2021
bfedaa9
Smaple.cs LookForTypeByName(string) add assmbiles to search in
Rosuavio Feb 5, 2021
99faaf3
Smaple.cs: Simplfy LookForTypeByName
Rosuavio Feb 8, 2021
ba5f7ff
Make execution more "lazy"
Rosuavio Feb 8, 2021
be2ebd7
Smaple.cs LookForTypeByName(string) add assmbiles to search for types…
Feb 9, 2021
c689a51
Use csporj to aggrate controls
Rosuavio Jan 26, 2021
057f5fa
WIP: Try to fix erros when using aggregae package
Rosuavio Jan 26, 2021
bb49ce0
Controls: remove unwanted pri files.
Rosuavio Feb 2, 2021
da272cb
Add Controls.Input to meta package
Rosuavio Feb 8, 2021
14df8de
Added meta package smoke test
Rosuavio Feb 8, 2021
2482745
Remove UI.Controls project build output from package
Rosuavio Feb 9, 2021
70928b4
Remove custom RemoveUnwantedPri build target, not needed
Rosuavio Feb 10, 2021
61c08f2
Remove `EnableTypeInfoReflection`
Rosuavio Feb 11, 2021
ae3c914
Remove `EnableTypeInfoReflection` comment
Rosuavio Feb 11, 2021
c7bdaf2
Merge pull request #3689 from RosarioPulella/aggregate-packages
michael-hawker Feb 11, 2021
6428d8a
Merge branch 'master' into dev/split-controls
michael-hawker Feb 12, 2021
c36cccc
Add missing category for Controls.Core.Design Merge
michael-hawker Feb 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@
<PackageReference Include="Microsoft.Services.Store.Engagement">
<Version>10.1901.28001</Version>
</PackageReference>
<!-- TODO Reintroduce graph controls
<PackageReference Include="Microsoft.Toolkit.Graph.Controls">
<Version>6.1.0-build.6</Version>
</PackageReference>
-->
<PackageReference Include="Microsoft.UI.Xaml">
<Version>2.4.2</Version>
</PackageReference>
Expand Down Expand Up @@ -279,8 +284,10 @@
<Content Include="SamplePages\RemoteDeviceHelper\RemoteDeviceHelper.png" />
<Content Include="SamplePages\ImageCropper\ImageCropper.png" />
<Content Include="SamplePages\StaggeredLayout\StaggeredLayout.png" />
<!-- TODO Reintroduce graph controls
<Content Include="SamplePages\PeoplePicker\PeoplePicker.png" />
<Content Include="SamplePages\PersonView\PersonView.png" />
-->
<Content Include="SamplePages\TokenizingTextBox\TokenizingTextBox.png" />
<Content Include="SamplePages\UniformGrid\UniformGrid.png" />
<Content Include="SamplePages\AdaptiveGridView\AdaptiveGridView.png" />
Expand All @@ -298,7 +305,9 @@
<Content Include="SamplePages\DataGrid\DataGrid.png" />
<Content Include="SamplePages\DispatcherQueueHelper\DispatchQueueHelper.png" />
<Content Include="SamplePages\DockPanel\DockPanel.png" />
<!-- TODO Reintroduce graph controls
<Content Include="SamplePages\LoginButton\LoginButton.png" />
-->
<Content Include="SamplePages\FadeHeader\FadeHeaderBehavior.png" />
<Content Include="SamplePages\FocusTracker\FocusTracker.png" />
<Content Include="SamplePages\BladeView\BladeView.png" />
Expand Down Expand Up @@ -326,8 +335,8 @@
<Content Include="SamplePages\LiveTile\LiveTile.png" />
<Content Include="SamplePages\MarkdownTextBlock\MarkdownTextBlock.png" />
<Content Include="SamplePages\Loading\Loading.png" />
<Content Include="SamplePages\MasterDetailsView\MasterDetailsView.png" />
<Content Include="SamplePages\MasterDetailsView\OneDriveLogo.png" />
<Content Include="SamplePages\ListDetailsView\ListDetailsView.png" />
<Content Include="SamplePages\ListDetailsView\OneDriveLogo.png" />
<Content Include="SamplePages\Menu\Menu.png" />
<Content Include="SamplePages\Microsoft Translator Service\TranslatorService.png" />
<Content Include="SamplePages\NetworkHelper\NetworkHelper.png" />
Expand Down Expand Up @@ -396,7 +405,7 @@
<Content Include="SamplePages\DropShadowPanel\DropShadowPanelXaml.bind" />
<Content Include="SamplePages\Object Storage\ObjectStorageCode.bind" />
<Content Include="SamplePages\BackgroundTaskHelper\BackgroundTaskHelperCode.bind" />
<Content Include="SamplePages\MasterDetailsView\MasterDetailsView.bind" />
<Content Include="SamplePages\ListDetailsView\ListDetailsView.bind" />
<Content Include="SamplePages\NetworkHelper\NetworkHelperCode.bind" />
<Content Include="SamplePages\PrintHelper\PrintHelperCode.bind" />
<Content Include="SamplePages\SystemInformation\SystemInformationCode.bind" />
Expand All @@ -411,7 +420,7 @@
<SubType>Designer</SubType>
</Content>
<Content Include="SamplePages\WrapPanel\WrapPanel.bind" />
<Content Include="SamplePages\MasterDetailsView\MasterDetailsViewCode.bind" />
<Content Include="SamplePages\ListDetailsView\ListDetailsViewCode.bind" />
<Content Include="SamplePages\Microsoft Translator Service\MicrosoftTranslatorCode.bind" />
<Content Include="SamplePages\MarkdownTextBlock\MarkdownTextBlock.bind" />
<Content Include="SamplePages\MarkdownTextBlock\InitialContent.md" />
Expand Down Expand Up @@ -470,9 +479,11 @@
<SubType>Designer</SubType>
</Content>
<Content Include="SamplePages\CameraPreview\CameraPreviewXaml.bind" />
<!-- TODO Reintroduce graph controls
<Content Include="SamplePages\LoginButton\LoginButtonXaml.bind" />
<Content Include="SamplePages\PeoplePicker\PeoplePickerXaml.bind" />
<Content Include="SamplePages\PersonView\PersonViewXaml.bind" />
-->
<Content Include="SamplePages\GazeInteraction\GazeInteractionXaml.bind">
<SubType>Designer</SubType>
</Content>
Expand Down Expand Up @@ -654,12 +665,14 @@
<Compile Include="Pages\SampleController.xaml.cs">
<DependentUpon>SampleController.xaml</DependentUpon>
</Compile>
<!-- TODO Reintroduce graph controls
<Compile Include="SamplePages\PeoplePicker\PeoplePickerPage.xaml.cs">
<DependentUpon>PeoplePickerPage.xaml</DependentUpon>
</Compile>
<Compile Include="SamplePages\PersonView\PersonViewPage.xaml.cs">
<DependentUpon>PersonViewPage.xaml</DependentUpon>
</Compile>
-->
<Compile Include="SamplePages\AdvancedCollectionView\AdvancedCollectionViewPage.xaml.cs">
<DependentUpon>AdvancedCollectionViewPage.xaml</DependentUpon>
</Compile>
Expand Down Expand Up @@ -700,9 +713,11 @@
<Compile Include="SamplePages\BackdropBlurBrush\BackdropBlurBrushPage.xaml.cs">
<DependentUpon>BackdropBlurBrushPage.xaml</DependentUpon>
</Compile>
<!-- TODO Reintroduce graph controls
<Compile Include="SamplePages\LoginButton\LoginButtonPage.xaml.cs">
<DependentUpon>LoginButtonPage.xaml</DependentUpon>
</Compile>
-->
<Compile Include="SamplePages\DataGrid\DataGridPage.xaml.cs">
<DependentUpon>DataGridPage.xaml</DependentUpon>
</Compile>
Expand Down Expand Up @@ -851,8 +866,8 @@
<Compile Include="SamplePages\Loading\LoadingPage.xaml.cs">
<DependentUpon>LoadingPage.xaml</DependentUpon>
</Compile>
<Compile Include="SamplePages\MasterDetailsView\MasterDetailsViewPage.xaml.cs">
<DependentUpon>MasterDetailsViewPage.xaml</DependentUpon>
<Compile Include="SamplePages\ListDetailsView\ListDetailsViewPage.cs">
<DependentUpon>ListDetailsViewPage.xaml</DependentUpon>
</Compile>
<Compile Include="SamplePages\ImageCache\ImageCachePage.xaml.cs">
<DependentUpon>ImageCachePage.xaml</DependentUpon>
Expand Down Expand Up @@ -1039,6 +1054,7 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<!-- TODO Reintroduce graph controls
<Page Include="SamplePages\PeoplePicker\PeoplePickerPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
Expand All @@ -1047,6 +1063,7 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
-->
<Page Include="SamplePages\BackdropGammaTransferBrush\BackdropGammaTransferBrushPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
Expand Down Expand Up @@ -1131,10 +1148,12 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<!-- TODO Reintroduce graph controls
<Page Include="SamplePages\LoginButton\LoginButtonPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
-->
<Page Include="SamplePages\FocusTracker\FocusTrackerPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
Expand Down Expand Up @@ -1299,7 +1318,7 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="SamplePages\MasterDetailsView\MasterDetailsViewPage.xaml">
<Page Include="SamplePages\ListDetailsView\ListDetailsViewPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
Expand Down Expand Up @@ -1457,6 +1476,10 @@
<Project>{daeb9cec-c817-33b2-74b2-bc379380db72}</Project>
<Name>Microsoft.Toolkit.Uwp.UI.Controls.DataGrid</Name>
</ProjectReference>
<ProjectReference Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Input\Microsoft.Toolkit.Uwp.UI.Controls.Input.csproj">
<Project>{af1be4e9-e2e1-4729-b076-b3725d8e21ee}</Project>
<Name>Microsoft.Toolkit.Uwp.UI.Controls.Input</Name>
</ProjectReference>
<ProjectReference Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Layout\Microsoft.Toolkit.Uwp.UI.Controls.Layout.csproj">
<Project>{cb444381-18ba-4a51-bb32-3a498bcc1e99}</Project>
<Name>Microsoft.Toolkit.Uwp.UI.Controls.Layout</Name>
Expand All @@ -1465,9 +1488,17 @@
<Project>{6fedf199-b052-49dd-8f3e-2a9224998e0f}</Project>
<Name>Microsoft.Toolkit.Uwp.UI.Controls.Markdown</Name>
</ProjectReference>
<ProjectReference Include="..\Microsoft.Toolkit.Uwp.UI.Controls\Microsoft.Toolkit.Uwp.UI.Controls.csproj">
<ProjectReference Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Media\Microsoft.Toolkit.Uwp.UI.Controls.Media.csproj">
<Project>{43bd2a36-9e12-4788-80ae-2377e41e6d05}</Project>
<Name>Microsoft.Toolkit.Uwp.UI.Controls.Media</Name>
</ProjectReference>
<ProjectReference Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Primitives\Microsoft.Toolkit.Uwp.UI.Controls.Primitives.csproj">
<Project>{84ab7dc5-95c9-4cf8-a370-d077e9e9ef1a}</Project>
<Name>Microsoft.Toolkit.Uwp.UI.Controls.Primitives</Name>
</ProjectReference>
<ProjectReference Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core\Microsoft.Toolkit.Uwp.UI.Controls.Core.csproj">
<Project>{e9faabfb-d726-42c1-83c1-cb46a29fea81}</Project>
<Name>Microsoft.Toolkit.Uwp.UI.Controls</Name>
<Name>Microsoft.Toolkit.Uwp.UI.Controls.Core</Name>
</ProjectReference>
<ProjectReference Include="..\Microsoft.Toolkit.Uwp.UI.Media\Microsoft.Toolkit.Uwp.UI.Media.csproj">
<Project>{75f9ee44-3efa-47bc-aedd-351b9834a0af}</Project>
Expand Down
120 changes: 23 additions & 97 deletions Microsoft.Toolkit.Uwp.SampleApp/Models/Sample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
// TODO Reintroduce graph controls
// using Microsoft.Toolkit.Graph.Converters;
// using Microsoft.Toolkit.Graph.Providers;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.Toolkit.Uwp.Input.GazeInteraction;
using Microsoft.Toolkit.Uwp.SampleApp.Models;
Expand Down Expand Up @@ -626,107 +629,30 @@ public async Task PreparePropertyDescriptorAsync()
private static Type LookForTypeByName(string typeName)
{
// First search locally
var result = System.Type.GetType(typeName);

if (result != null)
if (System.Type.GetType(typeName) is Type systemType)
{
return result;
return systemType;
}

// Search in Windows
var proxyType = VerticalAlignment.Center;
var assembly = proxyType.GetType().GetTypeInfo().Assembly;

foreach (var typeInfo in assembly.ExportedTypes)
var targets = new Type[]
{
if (typeInfo.Name == typeName)
{
return typeInfo;
}
}

// Search in Microsoft.Toolkit.Uwp.UI.Controls
var controlsProxyType = GridSplitter.GridResizeDirection.Auto;
assembly = controlsProxyType.GetType().GetTypeInfo().Assembly;

foreach (var typeInfo in assembly.ExportedTypes)
{
if (typeInfo.Name == typeName)
{
return typeInfo;
}
}

// Search in Microsoft.Toolkit.Graph.Controls
//var graphControlsProxyType = typeof(UserToPersonConverter);
//assembly = graphControlsProxyType.GetTypeInfo().Assembly;

//foreach (var typeInfo in assembly.ExportedTypes)
//{
// if (typeInfo.Name == typeName)
// {
// return typeInfo;
// }
//}

// Search in Microsoft.Toolkit.Uwp.UI.Animations
var animationsProxyType = EasingType.Default;
assembly = animationsProxyType.GetType().GetTypeInfo().Assembly;
foreach (var typeInfo in assembly.ExportedTypes)
{
if (typeInfo.Name == typeName)
{
return typeInfo;
}
}

// Search in Microsoft.Toolkit.Uwp.UI
var uiProxyType = ImageBlendMode.Multiply;
assembly = uiProxyType.GetType().GetTypeInfo().Assembly;
foreach (var typeInfo in assembly.ExportedTypes)
{
if (typeInfo.Name == typeName)
{
return typeInfo;
}
}

// Search in Microsoft.Toolkit.Uwp.Input.GazeInteraction
var gazeType = Interaction.Enabled;
assembly = gazeType.GetType().GetTypeInfo().Assembly;
foreach (var typeInfo in assembly.ExportedTypes)
{
if (typeInfo.Name == typeName)
{
return typeInfo;
}
}

// Search in Microsoft.Toolkit.Uwp.UI.Controls.DataGrid
var dataGridProxyType = DataGridGridLinesVisibility.None;
assembly = dataGridProxyType.GetType().GetTypeInfo().Assembly;

foreach (var typeInfo in assembly.ExportedTypes)
{
if (typeInfo.Name == typeName)
{
return typeInfo;
}
}

// Search in Microsoft.Toolkit.Uwp.UI.Controls.Markdown
var markdownTextBlockType = typeof(MarkdownTextBlock);
assembly = markdownTextBlockType.GetTypeInfo().Assembly;

foreach (var typeInfo in assembly.ExportedTypes)
{
if (typeInfo.Name == typeName)
{
return typeInfo;
}
}

return null;
VerticalAlignment.Center.GetType(), // Windows
StackMode.Replace.GetType(), // Microsoft.Toolkit.Uwp.UI.Controls.Core

// TODO Reintroduce graph controls
// typeof(UserToPersonConverter)) // Search in Microsoft.Toolkit.Graph.Controls
EasingType.Default.GetType(), // Microsoft.Toolkit.Uwp.UI.Animations
ImageBlendMode.Multiply.GetType(), // Search in Microsoft.Toolkit.Uwp.UI
Interaction.Enabled.GetType(), // Microsoft.Toolkit.Uwp.Input.GazeInteraction
DataGridGridLinesVisibility.None.GetType(), // Microsoft.Toolkit.Uwp.UI.Controls.DataGrid
GridSplitter.GridResizeDirection.Auto.GetType(), // Microsoft.Toolkit.Uwp.UI.Controls.Layout
typeof(MarkdownTextBlock), // Microsoft.Toolkit.Uwp.UI.Controls.Markdown
BitmapFileFormat.Bmp.GetType(), // Microsoft.Toolkit.Uwp.UI.Controls.Media
StretchChild.Last.GetType() // Microsoft.Toolkit.Uwp.UI.Controls.Primitivs
};

return targets.SelectMany(t => t.Assembly.ExportedTypes)
.FirstOrDefault(t => t.Name == typeName);
}

private static async Task<string> GetDocsSHA()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ms-appx:///Microsoft.Toolkit.Uwp.UI.Controls/InAppNotification/Styles/MSEdgeNotificationStyle.xaml" />
<ResourceDictionary Source="ms-appx:///Microsoft.Toolkit.Uwp.UI.Controls/InAppNotification/Styles/VSCodeNotificationStyle.xaml" />
<ResourceDictionary Source="ms-appx:///Microsoft.Toolkit.Uwp.UI.Controls.Core/InAppNotification/Styles/MSEdgeNotificationStyle.xaml" />
<ResourceDictionary Source="ms-appx:///Microsoft.Toolkit.Uwp.UI.Controls.Core/InAppNotification/Styles/VSCodeNotificationStyle.xaml" />
</ResourceDictionary.MergedDictionaries>

<local:DismissCommand x:Key="DismissCommand" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
mc:Ignorable="d">

<Grid>
<controls:MasterDetailsView BackButtonBehavior="Automatic"
<controls:ListDetailsView BackButtonBehavior="Automatic"
ItemsSource="{Binding Emails}"
NoSelectionContent="Select an item to view"
CompactModeThresholdWidth="720">
<controls:MasterDetailsView.ItemTemplate>
<controls:ListDetailsView.ItemTemplate>
<DataTemplate>
<StackPanel Margin="0,8">
<TextBlock Text="{Binding From}"
Expand All @@ -27,8 +27,8 @@
MaxLines="1"/>
</StackPanel>
</DataTemplate>
</controls:MasterDetailsView.ItemTemplate>
<controls:MasterDetailsView.DetailsTemplate>
</controls:ListDetailsView.ItemTemplate>
<controls:ListDetailsView.DetailsTemplate>
<DataTemplate>
<RelativePanel Margin="24">
<controls:ImageEx x:Name="FromEllipse"
Expand All @@ -53,8 +53,8 @@
Margin="0,12,0,0"/>
</RelativePanel>
</DataTemplate>
</controls:MasterDetailsView.DetailsTemplate>
<controls:MasterDetailsView.NoSelectionContentTemplate>
</controls:ListDetailsView.DetailsTemplate>
<controls:ListDetailsView.NoSelectionContentTemplate>
<DataTemplate>
<StackPanel HorizontalAlignment="Center"
VerticalAlignment="Center">
Expand All @@ -71,8 +71,8 @@
Margin="0,12"/>
</StackPanel>
</DataTemplate>
</controls:MasterDetailsView.NoSelectionContentTemplate>
<controls:MasterDetailsView.MasterCommandBar>
</controls:ListDetailsView.NoSelectionContentTemplate>
<controls:ListDetailsView.ListCommandBar>
<CommandBar>
<AppBarButton Icon="Back" Label="Back"/>
<AppBarButton Icon="Forward" Label="Forward"/>
Expand All @@ -84,14 +84,14 @@
</TextBlock>
</CommandBar.Content>
</CommandBar>
</controls:MasterDetailsView.MasterCommandBar>
<controls:MasterDetailsView.DetailsCommandBar>
</controls:ListDetailsView.ListCommandBar>
<controls:ListDetailsView.DetailsCommandBar>
<CommandBar>
<AppBarButton Icon="MailReply" Label="Reply" />
<AppBarButton Icon="MailReplyAll" Label="Reply All" />
<AppBarButton Icon="MailForward" Label="Forward" />
</CommandBar>
</controls:MasterDetailsView.DetailsCommandBar>
</controls:MasterDetailsView>
</controls:ListDetailsView.DetailsCommandBar>
</controls:ListDetailsView>
</Grid>
</Page>
Loading