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

Expander control #707

Closed
wants to merge 277 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
0c90652
Merge branch 'dev' into collectionviewsource
tomzorz Oct 22, 2016
c717d39
added inheritdoc tags, and commented out the grouping parts for now
tomzorz Oct 22, 2016
52da7d2
moved the whole ACVS to UI
tomzorz Oct 22, 2016
08f869f
added some tests, and then fixed an issue with the weak event listene…
tomzorz Oct 22, 2016
6acfb3f
added missing header to the person sample class
tomzorz Oct 22, 2016
e79c07f
Merge remote-tracking branch 'refs/remotes/upstream/dev'
soydachi Nov 1, 2016
5da6ea1
include upstream/dev files
soydachi Nov 1, 2016
0c6c077
update headers with .\build.ps1
soydachi Nov 1, 2016
0c2c7d3
add handler for loadingRequired and fixing namesapces who throw error
soydachi Nov 1, 2016
4224209
avoid errors in ResizeBehaviorPage.g.i.cs
soydachi Nov 1, 2016
491f2b9
adding first delegate for loadingrequired
soydachi Nov 4, 2016
5a94a19
Merge remote-tracking branch 'refs/remotes/upstream/dev'
soydachi Nov 4, 2016
e3c6e22
add loading documentation
soydachi Nov 4, 2016
8dbd4cc
add loading gif and updated Loading.md
soydachi Nov 4, 2016
6a88090
Merge remote-tracking branch 'refs/remotes/upstream/dev'
soydachi Nov 4, 2016
dd06da0
add comments and fix PropertyDescriptor namespace
soydachi Nov 4, 2016
b0754c0
Updated headers and docs
Nov 5, 2016
7ae1949
Refactor loading control with @skendrot suggestions
soydachi Nov 11, 2016
a1e170f
fixing SampleApp.csproj include contents
soydachi Nov 11, 2016
ee2c4e8
Merge remote-tracking branch 'refs/remotes/upstream/dev'
soydachi Nov 11, 2016
033716c
Updating LoadingCode.bind
soydachi Nov 12, 2016
debf8b7
Listen to the Frame.Navigating event to handle cases where we are not…
skendrot Dec 1, 2016
b102c1a
fix xml comment
skendrot Dec 1, 2016
c614947
fix xml comment
skendrot Dec 1, 2016
e0a21eb
Merge branch 'MasterDetailsBackBehavior' of https://github.com/skendr…
skendrot Dec 1, 2016
1f0a6a4
updated loading docs
soydachi Dec 6, 2016
c45a336
Merge remote-tracking branch 'refs/remotes/upstream/dev'
soydachi Dec 6, 2016
26174a5
LoadingCode.bin to content
soydachi Dec 6, 2016
dd13fc1
update names and undo AdaptiveGridViewPage usings.
soydachi Dec 6, 2016
ddedd7d
removed LoadingRequired event
soydachi Dec 6, 2016
8a84377
Only handle the navigating event when going back and we have selectio…
skendrot Dec 7, 2016
7585cca
Merge remote-tracking branch 'refs/remotes/upstream/dev'
soydachi Dec 7, 2016
80838d1
Adding wrapPanel control and page
IbraheemOsama Dec 11, 2016
10bc319
feat(Expander): create Expander control
Odonno Dec 11, 2016
e354d0e
Adding ArragneOverride in WrapPanel
IbraheemOsama Dec 15, 2016
13e5490
Adding wrap panel sample page
IbraheemOsama Dec 17, 2016
3f5a694
Adding remove to wrap panel sample page
IbraheemOsama Dec 17, 2016
ff387b9
Adding wrap panel bind file and image
IbraheemOsama Dec 17, 2016
b3eddc0
Merge remote-tracking branch 'refs/remotes/Microsoft/dev' into WrapPanel
IbraheemOsama Dec 17, 2016
003cca7
Reading wrap panel after commiting
IbraheemOsama Dec 17, 2016
6506f54
Adding margin to horizontal wrap sample
IbraheemOsama Dec 17, 2016
629ed18
Adding headers for wrap panel cs files
IbraheemOsama Dec 17, 2016
09fb4f2
Adding wrap panel to readme
IbraheemOsama Dec 17, 2016
4b97404
refactor(Expander): improve Expander control
Odonno Dec 14, 2016
c0c638b
merge
Odonno Dec 17, 2016
098fe63
Renaming InterpolationType, Adding default EasingType, Making GetEasi…
Dec 21, 2016
e32c26d
refactor(Expander): set header template in toggle button style
Odonno Dec 23, 2016
9c65dbe
Merge remote-tracking branch 'refs/remotes/Microsoft/dev' into WrapPanel
IbraheemOsama Dec 24, 2016
6c44153
Enhancing WrapPanel sample page
IbraheemOsama Dec 24, 2016
79780c0
Adding WrapPanel control documentations
IbraheemOsama Dec 25, 2016
0067bdf
Merge remote-tracking branch 'refs/remotes/Microsoft/dev' into Masked…
IbraheemOsama Jan 1, 2017
7981b2e
adding textbox cursor at the begining if the masked textbox is empty
IbraheemOsama Jan 1, 2017
a8a2f97
docs(expander): add expander docs
Odonno Jan 3, 2017
3d6b71b
Merge remote-tracking branch 'refs/remotes/Microsoft/dev' into WrapPanel
IbraheemOsama Jan 4, 2017
3fcf667
replacing arrange override with more simpler approach
IbraheemOsama Jan 4, 2017
5d5d6bb
merging from dev
IbraheemOsama Jan 4, 2017
10be4e4
merge
Odonno Jan 5, 2017
7260174
refactor(Expander): replace ContentControl by ContentPresenter
Odonno Jan 5, 2017
9b7231b
merge
Odonno Jan 5, 2017
37a0f4e
fixing TextBoxMask typo
IbraheemOsama Jan 6, 2017
3a4afce
Merge remote-tracking branch 'refs/remotes/Microsoft/dev' into Masked…
IbraheemOsama Jan 6, 2017
0bae36d
adding wrap panel samples page about text
IbraheemOsama Jan 6, 2017
7580e50
enhancing wrap panel sample page
IbraheemOsama Jan 6, 2017
d75e564
updating wrap panel with orientation update
IbraheemOsama Jan 6, 2017
264bca7
Merge remote-tracking branch 'refs/remotes/Microsoft/dev' into WrapPanel
IbraheemOsama Jan 6, 2017
b97e5d5
updating wrap panel sample page
IbraheemOsama Jan 6, 2017
19cbcdd
fixing switch orientation when panel is full
IbraheemOsama Jan 6, 2017
31495b6
updating header files with copy rights
IbraheemOsama Jan 6, 2017
91f09a8
Merge pull request #5 from Microsoft/dev
tomzorz Jan 7, 2017
4c887d5
Merge branch 'dev' into collectionviewsource
tomzorz Jan 7, 2017
0a5c6c9
Fixed the naming plus corrected a typo
tomzorz Jan 7, 2017
5ae03f6
Added AdvancedCollectionView sample
tomzorz Jan 7, 2017
982b3af
Adding the new MarkdownTextBlock control taken from UniversalMarkdown…
QuinnDamerell Jan 9, 2017
d00af79
Fixing up the public interface of the Markdown control and fixing all…
QuinnDamerell Jan 8, 2017
64b22d8
Adding the MarkdownTextBlock icon.
QuinnDamerell Jan 9, 2017
0571dc8
Merge pull request #731 from IbraheemOsama/WrapPanel
deltakosh Jan 9, 2017
e556e4e
Fixing build error where and old project was still in the project files.
QuinnDamerell Jan 10, 2017
6e39206
Merge branch 'dev' into markdowntextblock
QuinnDamerell Jan 10, 2017
d2c2396
Updating headers for the new files.
QuinnDamerell Jan 10, 2017
21a32b8
Final requested changes
tomzorz Jan 10, 2017
9cbe79c
fullscreen mode for Xbox
deltakosh Jan 11, 2017
69dfdc0
Merge pull request #775 from Microsoft/XboxFullscreen
deltakosh Jan 11, 2017
1d409d4
Merge pull request #349 from tomzorz/collectionviewsource
hermitdave Jan 11, 2017
723d623
Adds missing documentation to public items
pedrolamas Jan 11, 2017
e7d721f
Merge pull request #776 from Microsoft/pedrolamas/docsfix
ScottIsAFool Jan 11, 2017
83b89e8
Documentation fix (issue 777)
mrlacey Jan 11, 2017
dc53e29
Test illegal path characters are detected (issue 781)
mrlacey Jan 11, 2017
b7dd44f
Merge pull request #778 from mrlacey/issue777
hermitdave Jan 11, 2017
4db48ad
Typo fix
mrlacey Jan 11, 2017
fb5fba7
Code review feedback.
QuinnDamerell Jan 11, 2017
8ac39aa
Merge remote-tracking branch 'real/dev' into markdowntextblock
QuinnDamerell Jan 11, 2017
4ea441f
Fixing build issues in the markdown tests.
QuinnDamerell Jan 11, 2017
7f5d808
Updating readme for Notifications folder
Jan 11, 2017
c31b876
Moved readme to parent Notifications folder
Jan 11, 2017
0553b90
Merge pull request #786 from Microsoft/anbare/notif-readme
deltakosh Jan 11, 2017
427e171
Merge pull request #785 from mrlacey/iss783
deltakosh Jan 11, 2017
be25e6f
Fixed Markdown databinding
deltakosh Jan 11, 2017
366835a
Fixing header issue.
QuinnDamerell Jan 12, 2017
8397e9c
Moving some properties to setters.
QuinnDamerell Jan 12, 2017
d80ca5d
fixed pulltorefreshlistview refresh with mouse
nmetulev Jan 12, 2017
5ab905b
Removing the smart weak events from the textblock.
QuinnDamerell Jan 12, 2017
3d583d4
Merge remote-tracking branch 'real/dev' into markdowntextblock
QuinnDamerell Jan 12, 2017
9343c7b
Merge pull request #782 from mrlacey/issue781
deltakosh Jan 12, 2017
d81ab0d
Merge pull request #507 from hig-ag/dev
deltakosh Jan 12, 2017
af4768a
Improve animation docs for EasingType
deltakosh Jan 12, 2017
cdae985
Merge branch 'dev' into PullToRefreshFixes
nmetulev Jan 13, 2017
091f033
fixing PullToRefresh bug 676
nmetulev Jan 13, 2017
18730cf
Change DropShadowPanel from being a user control to a templated control
hermitdave Jan 13, 2017
1ef6c32
Unwire events before wiring them up.
hermitdave Jan 13, 2017
a72e16c
updating the cursor position
IbraheemOsama Jan 14, 2017
662a47b
updating casting
IbraheemOsama Jan 14, 2017
f81f144
Merge pull request #757 from IbraheemOsama/MaskedTextboxCursorBeginnging
IbraheemOsama Jan 14, 2017
defbc5a
Change DropShadowPanel inheritance from Control to ContentControl
hermitdave Jan 14, 2017
d36cba5
Use IsTypePresent rather than IsApiContractPresent
hermitdave Jan 14, 2017
a2c05fb
change CopyToOutput setting for both DropShadowPanel.xaml and ImageEx…
hermitdave Jan 14, 2017
eb91388
First commit of the documentation file.
QuinnDamerell Jan 14, 2017
fbefd4b
Adding a lot of properties to the docs
QuinnDamerell Jan 14, 2017
a2cf728
Adding a gif and renaming one of the events.
QuinnDamerell Jan 14, 2017
7b0b075
Updating the links to be relative, adding the new gif image.
QuinnDamerell Jan 14, 2017
11c2fa5
Fixing the build by saving in VS.
QuinnDamerell Jan 14, 2017
4fc4c65
Merge remote-tracking branch 'real/dev' into markdowntextblock
QuinnDamerell Jan 14, 2017
56922f2
Fix tab order
twsouthwick Jan 15, 2017
82768ca
changes requested
hermitdave Jan 15, 2017
58833ab
adding validation extension
IbraheemOsama Jan 16, 2017
47a78b2
Adding regexEx comments
IbraheemOsama Jan 16, 2017
7e971fb
adding regex ex sample page
IbraheemOsama Jan 16, 2017
a373dad
adding initialization for regex ex in property changed
IbraheemOsama Jan 16, 2017
0082fa3
updating sample page regex ext
IbraheemOsama Jan 16, 2017
e3f4e5c
update regex ext bind file
IbraheemOsama Jan 16, 2017
a2ef662
updating boolStringCoverter header file
IbraheemOsama Jan 16, 2017
3f892ac
Merge branch 'dev' into MasterDetailsBackBehavior
skendrot Jan 16, 2017
457411d
Merge pull request #677 from skendrot/MasterDetailsBackBehavior
deltakosh Jan 16, 2017
4aefb1a
Show/Hide the info area when navigation happens to the SamplePicker
skendrot Jan 17, 2017
8c5f616
Change IsFileOutOfDate to be overrideable
hermitdave Jan 17, 2017
7910011
add ConfigureAwait to property lookup
hermitdave Jan 17, 2017
67bf1f2
fix missing line break
hermitdave Jan 17, 2017
c43fd51
Fixes #803
deltakosh Jan 17, 2017
e53efb0
feat(badges): add anniversary and creators update badges
Odonno Jan 17, 2017
5ba367a
More info for MosaicControl sample
deltakosh Jan 17, 2017
b4923e2
Move Github link to property grid
deltakosh Jan 17, 2017
f809240
feat(badges): show badge of windows version required in the samples list
Odonno Jan 17, 2017
52ba759
Fixes #670
deltakosh Jan 17, 2017
536639d
updating the bool string converter
IbraheemOsama Jan 18, 2017
1d52c76
adding textbox regex types
IbraheemOsama Jan 18, 2017
769e2a9
updating regex ex sample page and updating regex name values
IbraheemOsama Jan 18, 2017
a87a410
Merge pull request #787 from Microsoft/647PullToRefresh
deltakosh Jan 18, 2017
2fb5ac5
Merge pull request #788 from Microsoft/animationDocsUpdate
deltakosh Jan 18, 2017
7f382b9
Merge pull request #806 from skendrot/InfoArea
deltakosh Jan 18, 2017
3145e35
fix(Light): set requirements to be Anniversary Update for Light anima…
Odonno Jan 18, 2017
db64038
fixes refresh content transformation when header is present
nmetulev Jan 18, 2017
b72281b
Merge branch 'dev' into PullToRefreshFixes
nmetulev Jan 18, 2017
0c54d64
Rename IsFileOutOfDate to IsFileOutOfDateAsync
hermitdave Jan 18, 2017
e34b53d
Merge pull request #808 from Microsoft/CacheTweak-HD
hermitdave Jan 18, 2017
07b391b
Merge pull request #807 from Odonno/windowsVersionBadges
deltakosh Jan 19, 2017
573b0a0
Fixed warnings
deltakosh Jan 19, 2017
fe0561f
Code Review Feedback
QuinnDamerell Jan 19, 2017
e458e17
Merge remote-tracking branch 'real/dev' into markdowntextblock
QuinnDamerell Jan 19, 2017
ef3a35c
Changes suggested
hermitdave Jan 19, 2017
d78c74c
More code review feedback.
QuinnDamerell Jan 19, 2017
18ad3c1
Merge pull request #814 from Microsoft/fixwarnings
deltakosh Jan 19, 2017
8efd55f
Merge pull request #794 from twsouthwick/tab-order
deltakosh Jan 19, 2017
af0d621
Merge pull request #789 from Microsoft/DropShadowControl-HD
deltakosh Jan 19, 2017
58fd753
updating TextBoxRegexEx to TextBoxRegex
IbraheemOsama Jan 22, 2017
d633ddf
allow negative in textboxRegex and updating sampe.json
IbraheemOsama Jan 22, 2017
06e9ccb
Merge remote-tracking branch 'refs/remotes/upstream/dev'
soydachi Jan 22, 2017
13aa821
remove unnecesary code
soydachi Jan 22, 2017
90dc36b
Merge remote-tracking branch 'real/dev' into markdowntextblock
QuinnDamerell Jan 23, 2017
787e860
Merge pull request #811 from Microsoft/PullToRefreshFixes
deltakosh Jan 23, 2017
1d678b8
Merge dev
deltakosh Jan 23, 2017
da18114
Merge pull request #809 from Microsoft/FixSamplesDescription
deltakosh Jan 23, 2017
f188990
Fix UI
deltakosh Jan 23, 2017
8e55521
Merge dev
deltakosh Jan 23, 2017
8e8bef4
Update links list
deltakosh Jan 23, 2017
419f93b
xamlstyler (Sorry more files where updated)
deltakosh Jan 23, 2017
01be039
Merge pull request #810 from Microsoft/MoreResources
deltakosh Jan 23, 2017
c5c7063
Fix Notifications links
Jan 23, 2017
a070ee7
Fix Services links
Jan 23, 2017
4defc09
Fix Helpers links
Jan 23, 2017
185e6bf
Fixes CastingElement for DropShadowPanel sample page
deltakosh Jan 24, 2017
2057d1c
Adding the ignore flag to the tests that currently aren't supported b…
QuinnDamerell Jan 24, 2017
d60de6c
Merge remote-tracking branch 'real/dev' into markdowntextblock
QuinnDamerell Jan 24, 2017
fc4233c
Fixing some merge errors.
QuinnDamerell Jan 24, 2017
efb3721
Updating the text surrounding the ignored tests.
QuinnDamerell Jan 24, 2017
cefa617
Update readme.md
mayadata Jan 24, 2017
a9bae0a
Merge pull request #826 from mayadata/readme-edits
deltakosh Jan 24, 2017
857abc0
Fixed Back behavior relatively to property grid
deltakosh Jan 24, 2017
4ba8f26
Merge pull request #823 from LudoFran/FixSamplesLink
deltakosh Jan 24, 2017
ac2c96b
updating TextBoxRegex comments
IbraheemOsama Jan 24, 2017
17e2b77
Fixing typo
IbraheemOsama Jan 24, 2017
73c890e
Merge remote-tracking branch 'real/dev' into markdowntextblock
QuinnDamerell Jan 25, 2017
fa5d80c
Moving the hyper link events over to the weak event system.
QuinnDamerell Jan 25, 2017
6c3c4e4
Cleaning up the markdown unit test project.
QuinnDamerell Jan 25, 2017
695da68
Update readme.md
mayadata Jan 25, 2017
65aae93
Add documentation for the ScrollHeader control
pdehne Jan 25, 2017
cf09a0b
Update ResizeBehaviorPage.xaml.cs
soydachi Jan 25, 2017
195a3c1
fix little typos and bind BorderBrush and BorderThickness
soydachi Jan 25, 2017
f78a6a6
Merged branch dev into dev
soydachi Jan 25, 2017
ea4e3c6
Udating TextBox Regex comments
IbraheemOsama Jan 25, 2017
18fa31e
Merge remote-tracking branch 'refs/remotes/Microsoft/dev' into RegexV…
IbraheemOsama Jan 25, 2017
3ced3c1
Adding TextBoxRegex documentations
IbraheemOsama Jan 25, 2017
ead9f06
Fixing typos in TextBoxRegex documentations.
IbraheemOsama Jan 25, 2017
6f6033e
Merge pull request #833 from mayadata/readme-edits
deltakosh Jan 25, 2017
0aea9d4
Fixes for PR
deltakosh Jan 25, 2017
20ca759
Merge pull request #1 from deltakosh/markdowntextblock
deltakosh Jan 25, 2017
30d0da9
Merge pull request #799 from IbraheemOsama/RegexValidator
deltakosh Jan 25, 2017
0012aee
Merge pull request #247 from dachibox/dev
hermitdave Jan 25, 2017
6d38c28
Merge branch 'dev'
deltakosh Jan 25, 2017
eee720d
Update loading page for new binding behavior
deltakosh Jan 25, 2017
d6c07b1
Merge pull request #829 from Microsoft/FixBackBehavior
deltakosh Jan 25, 2017
5d31b61
Fixed badges
deltakosh Jan 25, 2017
38b5cfd
Merge pull request #835 from Microsoft/Badges
deltakosh Jan 25, 2017
3bbe683
Fixes #824
deltakosh Jan 25, 2017
fcdd124
Merge pull request #834 from pdehne/dev
IbraheemOsama Jan 25, 2017
e5c9418
Merge remote-tracking branch 'real/dev' into markdowntextblock
QuinnDamerell Jan 26, 2017
30d3478
Added missing updates
deltakosh Jan 26, 2017
896b20a
Merge pull request #772 from QuinnDamerell/markdowntextblock
deltakosh Jan 26, 2017
574fbae
Fix small typo
deltakosh Jan 26, 2017
500838c
Fixed unit tests
deltakosh Jan 26, 2017
2bcabe3
Update MarkdownTextBlock.md
deltakosh Jan 26, 2017
a119361
Update DropShadowPanel.md
deltakosh Jan 26, 2017
c38d25f
Update Loading.md
deltakosh Jan 26, 2017
d3fc982
Update SurfaceDialTextboxHelper.md
deltakosh Jan 26, 2017
9ebd0c1
Update PrintHelper.md
deltakosh Jan 26, 2017
edbfd01
Fixed #805
deltakosh Jan 26, 2017
e910f1d
Sample app "more resources" content files
deltakosh Jan 26, 2017
53f1af3
Merge branch 'dev' of https://github.com/Microsoft/UWPCommunityToolki…
deltakosh Jan 26, 2017
8d94332
Update frameworks.md
deltakosh Jan 26, 2017
8352f37
Update links.md
deltakosh Jan 26, 2017
47b6215
Update summary tag to state that the IsItemClickEnabled property must…
skendrot Jan 26, 2017
6cdb65f
Update links.md
deltakosh Jan 26, 2017
659c327
Update links.md
deltakosh Jan 26, 2017
a5a111f
using MD to display useful inks
deltakosh Jan 26, 2017
2b99646
Fixes #804
deltakosh Jan 26, 2017
a66029e
Merge pull request #6 from Microsoft/dev
tomzorz Jan 26, 2017
e8fcb11
Documentation for ListViewBaseExtensions and link to readme.md
hermitdave Jan 26, 2017
9d8d257
Merge pull request #843 from Microsoft/ListViewBaseDocs-HD
hermitdave Jan 26, 2017
d149618
AdvancedCollectionView docs
tomzorz Jan 26, 2017
7a65074
Merge pull request #844 from tomzorz/dev
deltakosh Jan 27, 2017
722a5df
Resolved conflicts
deltakosh Jan 27, 2017
e23487c
Merge pull request #836 from Microsoft/TileControl
deltakosh Jan 27, 2017
914d8d6
Resolved conflicts
deltakosh Jan 27, 2017
279aede
Merge pull request #839 from Microsoft/documentationTab
deltakosh Jan 27, 2017
f7aeeb4
Resolved conflcits
deltakosh Jan 27, 2017
99b7191
Merge pull request #842 from Microsoft/moreResourcesMD
deltakosh Jan 27, 2017
635f4c3
warnings
deltakosh Jan 27, 2017
0f36d1e
Merge pull request #846 from Microsoft/moreResourcesMD
deltakosh Jan 27, 2017
c34b32a
Merge pull request #841 from skendrot/Issue-840
deltakosh Jan 27, 2017
6f3aa06
merge
Odonno Jan 27, 2017
ae4c76a
fix(expander): change VisualState management of expanded state
Odonno Jan 27, 2017
5d4e7ec
docs(expander): add XML docs on properties
Odonno Jan 27, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
<Content Include="SamplePages\BladeView\BladeView.png" />
<Content Include="SamplePages\Blur\BlurBehavior.png" />
<Content Include="SamplePages\DropShadowPanel\DropShadowPanel.png" />
<Content Include="SamplePages\Expander\Expander.png" />
<Content Include="SamplePages\FadeHeader\FadeHeaderBehavior.png" />
<Content Include="SamplePages\DropShadowPanel\Trex.png" />
<Content Include="SamplePages\DropShadowPanel\Unicorn.png" />
Expand Down Expand Up @@ -309,6 +310,7 @@
<Content Include="SamplePages\Blur\BlurBehaviorCode.bind" />
<Content Include="SamplePages\Blur\BlurBehaviorXaml.bind" />
<Content Include="SamplePages\Offset\OffsetBehaviorXaml.bind" />
<Content Include="SamplePages\Expander\ExpanderXaml.bind" />
<Content Include="SamplePages\Fade\FadeBehaviorXaml.bind" />
<Content Include="SamplePages\Scale\ScaleBehaviorXaml.bind" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't have, please revert

<Content Include="SamplePages\Rotate\RotateBehaviorXaml.bind" />
Expand Down Expand Up @@ -369,6 +371,9 @@
<Compile Include="SamplePages\DropShadowPanel\DropShadowPanelPage.xaml.cs">
<DependentUpon>DropShadowPanelPage.xaml</DependentUpon>
</Compile>
<Compile Include="SamplePages\Expander\ExpanderPage.xaml.cs">
<DependentUpon>ExpanderPage.xaml</DependentUpon>
</Compile>
<Compile Include="SamplePages\Facebook Service\FacebookPhotoTemplateSelector.cs" />
<Compile Include="Controls\CodeRenderer\CodeRenderer.Properties.cs" />
<Compile Include="Controls\CodeRenderer\CodeRenderer.cs" />
Expand Down Expand Up @@ -562,6 +567,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="SamplePages\Expander\ExpanderPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="SamplePages\Microsoft Translator Service\MicrosoftTranslatorPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<Page
x:Class="Microsoft.Toolkit.Uwp.SampleApp.SamplePages.ExpanderPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<StackPanel Margin="20">
<controls:Expander x:Name="Expander1" VerticalAlignment="Top" Margin="0,0,0,10"
Header="This is the header - expander 1"
IsExpanded="{Binding Path=IsExpanded1.Value, Mode=TwoWay}">
<Grid Height="250" Background="{StaticResource Brush-Grey-01}">
<TextBlock HorizontalAlignment="Center"
TextWrapping="Wrap"
Text="This is the content"
VerticalAlignment="Center"
Style="{StaticResource HeaderTextBlockStyle}" />
</Grid>
</controls:Expander>

<controls:Expander x:Name="Expander2" VerticalAlignment="Top" Margin="0"
Header="This is the header - expander 2"
IsExpanded="{Binding Path=IsExpanded2.Value, Mode=TwoWay}">
<Grid Height="250" Background="{StaticResource Brush-Grey-02}">
<TextBlock HorizontalAlignment="Center"
TextWrapping="Wrap"
Text="This is the content"
VerticalAlignment="Center"
Style="{StaticResource HeaderTextBlockStyle}" />
</Grid>
</controls:Expander>
</StackPanel>
</Grid>
</Page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// ******************************************************************
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
// ******************************************************************

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Microsoft.Toolkit.Uwp.SampleApp.Models;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

namespace Microsoft.Toolkit.Uwp.SampleApp.SamplePages
{
/// <summary>
/// A page that shows how to use the Expander control.
/// </summary>
public sealed partial class ExpanderPage : Page
{
/// <summary>
/// Initializes a new instance of the <see cref="ExpanderPage"/> class.
/// </summary>
public ExpanderPage()
{
InitializeComponent();
}

/// <summary>
/// Invoked when the Page is loaded and becomes the current source of a parent Frame.
/// </summary>
/// <param name="e">Event data that can be examined by overriding code. The event data is representative of the pending navigation that will load the current Page. Usually the most relevant property to examine is Parameter.</param>
protected override void OnNavigatedTo(NavigationEventArgs e)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So sorry but due to recent changes this method has to be removed :(

{
base.OnNavigatedTo(e);

var propertyDesc = e.Parameter as PropertyDescriptor;

if (propertyDesc != null)
{
DataContext = propertyDesc.Expando;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<Page
x:Class="Microsoft.Toolkit.Uwp.SampleApp.SamplePages.ExpanderPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<StackPanel Margin="20">
<controls:Expander x:Name="Expander1" VerticalAlignment="Top" Margin="0,0,0,10"
Header="This is the header - expander 1"
IsExpanded="@[IsExpanded1:Bool:False]">
<Grid Height="250" Background="#FFF5F1D9">
<TextBlock HorizontalAlignment="Center"
TextWrapping="Wrap"
Text="This is the content"
VerticalAlignment="Center"
Style="{StaticResource HeaderTextBlockStyle}" />
</Grid>
</controls:Expander>

<controls:Expander x:Name="Expander2" VerticalAlignment="Top" Margin="0"
Header="This is the header - expander 2"
IsExpanded="@[IsExpanded2:Bool:True]">
<Grid Height="250" Background="#FFD9F1F5">
<TextBlock HorizontalAlignment="Center"
TextWrapping="Wrap"
Text="This is the content"
VerticalAlignment="Center"
Style="{StaticResource HeaderTextBlockStyle}" />
</Grid>
</controls:Expander>
</StackPanel>
</Grid>
</Page>
8 changes: 8 additions & 0 deletions Microsoft.Toolkit.Uwp.SampleApp/SamplePages/samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@
"XamlCodeFile": "TextBoxMask.bind",
"Icon": "/SamplePages/TextBoxMask/TextBoxMask.png"
},
{
"Name": "Expander",
"Type": "ExpanderPage",
"About": "Expander control allows user to show/hide content based on a boolean state.",
"CodeUrl": "https://github.com/Microsoft/UWPCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Controls/Expander",
"XamlCodeFile": "ExpanderXaml.bind",
"Icon": "/SamplePages/Expander/Expander.png"
},
{
"Name": "MosaicControl",
"Type": "MosaicControlPage",
Expand Down
1 change: 1 addition & 0 deletions Microsoft.Toolkit.Uwp.SampleApp/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dependencies": {
"Microsoft.Graph": "1.1.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deltakosh I needed to add Microsoft.Graph reference in the SamplesApp either way I could not be able to compile the app.. (using Visual Studio 2017 Community RC 15.0.26020.0).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I'll check

"Microsoft.NETCore.UniversalWindowsPlatform": "5.1.0",
"Microsoft.Xaml.Behaviors.Uwp.Managed": "1.1.0",
"Newtonsoft.Json": "9.0.1",
Expand Down
27 changes: 27 additions & 0 deletions Microsoft.Toolkit.Uwp.UI.Controls/Expander/Expander.Constants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// ******************************************************************
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
// ******************************************************************

namespace Microsoft.Toolkit.Uwp.UI.Controls
{
/// <summary>
/// The <see cref="Expander"/> control allows user to show/hide content based on a boolean state
/// </summary>
public partial class Expander
{
public const string GroupContent = "ExpandedStates";
public const string StateContentExpanded = "Expanded";
public const string StateContentCollapsed = "Collapsed";

public const string ExpanderToggleButtonPart = "PART_ExpanderToggleButton";
public const string MainContentRowPart = "PART_MainContentRow";
}
}
32 changes: 32 additions & 0 deletions Microsoft.Toolkit.Uwp.UI.Controls/Expander/Expander.Events.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// ******************************************************************
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
// ******************************************************************

using System;

namespace Microsoft.Toolkit.Uwp.UI.Controls
{
/// <summary>
/// The <see cref="Expander"/> control allows user to show/hide content based on a boolean state
/// </summary>
public partial class Expander
{
/// <summary>
/// Fires when the expander is opened
/// </summary>
public event EventHandler Expanded;

/// <summary>
/// Fires when the expander is closed
/// </summary>
public event EventHandler Collapsed;
}
}
64 changes: 64 additions & 0 deletions Microsoft.Toolkit.Uwp.UI.Controls/Expander/Expander.Properties.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// ******************************************************************
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
// ******************************************************************

using Windows.UI.Xaml;

namespace Microsoft.Toolkit.Uwp.UI.Controls
{
/// <summary>
/// The <see cref="Expander"/> control allows user to show/hide content based on a boolean state
/// </summary>
public partial class Expander
{
public static readonly DependencyProperty HeaderProperty =
DependencyProperty.Register(nameof(Header), typeof(string), typeof(Expander), new PropertyMetadata(null));

public static readonly DependencyProperty HeaderTemplateProperty =
DependencyProperty.Register(nameof(HeaderTemplate), typeof(DataTemplate), typeof(Expander), new PropertyMetadata(null));

public static readonly DependencyProperty IsExpandedProperty =
DependencyProperty.Register(nameof(IsExpanded), typeof(bool), typeof(Expander), new PropertyMetadata(false, OnIsExpandedPropertyChanged));

public string Header
{
get { return (string)GetValue(HeaderProperty); }
set { SetValue(HeaderProperty, value); }
}

public DataTemplate HeaderTemplate
{
get { return (DataTemplate)GetValue(HeaderTemplateProperty); }
set { SetValue(HeaderTemplateProperty, value); }
}

public bool IsExpanded
{
get { return (bool)GetValue(IsExpandedProperty); }
set { SetValue(IsExpandedProperty, value); }
}

private static void OnIsExpandedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var expander = d as Expander;

bool isExpanded = (bool)e.NewValue;
if (isExpanded)
{
expander.ExpandControl();
}
else
{
expander.CollapseControl();
}
}
}
}
57 changes: 57 additions & 0 deletions Microsoft.Toolkit.Uwp.UI.Controls/Expander/Expander.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// ******************************************************************
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE.
// ******************************************************************

using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Markup;

namespace Microsoft.Toolkit.Uwp.UI.Controls
{
/// <summary>
/// The <see cref="Expander"/> control allows user to show/hide content based on a boolean state
/// </summary>
[TemplateVisualState(Name = StateContentExpanded, GroupName = GroupContent)]
[TemplateVisualState(Name = StateContentCollapsed, GroupName = GroupContent)]
[TemplatePart(Name = ExpanderToggleButtonPart, Type = typeof(ToggleButton))]
[ContentProperty(Name = "Content")]
public partial class Expander : ContentControl
{
public Expander()
{
DefaultStyleKey = typeof(Expander);
}

protected override void OnApplyTemplate()
{
base.OnApplyTemplate();

if (!IsExpanded)
{
VisualStateManager.GoToState(this, StateContentCollapsed, false);
}
}

private void ExpandControl()
{
VisualStateManager.GoToState(this, StateContentExpanded, true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fire a new Expanded event

Expanded?.Invoke(this, new EventArgs());
}

private void CollapseControl()
{
VisualStateManager.GoToState(this, StateContentCollapsed, true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fire a new Collapsed event

Collapsed?.Invoke(this, new EventArgs());
}
}
}
Loading