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

Adding the Surface Dial Textbox Helper class. #704

Merged
merged 5 commits into from
Dec 14, 2016

Conversation

petriw
Copy link
Contributor

@petriw petriw commented Dec 9, 2016

A new helper control using attached properties to add Surface Dial capabilities to a Textbox.

@dnfclas
Copy link

dnfclas commented Dec 9, 2016

Hi @petriw, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla2.dotnetfoundation.org.

TTYL, DNFBOT;

@dnfclas
Copy link

dnfclas commented Dec 9, 2016

@petriw, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

@@ -0,0 +1,45 @@
<Page
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please run xaml styler over this file please (https://visualstudiogallery.msdn.microsoft.com/3de2a3c6-def5-42c4-924d-cc13a29ff5b7)

Copy link
Contributor

Choose a reason for hiding this comment

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

Means you'll need to update the xaml in the bind file too.

{
public SurfaceDialTextboxHelperPage()
{
this.InitializeComponent();
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove usages of "this."

@@ -0,0 +1 @@
# SurfaceDialTextboxHelper Control
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this missing more content?

@deltakosh
Copy link
Contributor

Nothing more than what @ScottIsAFool mentioned :)

Copy link
Contributor

@deltakosh deltakosh left a comment

Choose a reason for hiding this comment

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

Please fix the small comments and provide a documentation :)

…d made modifications to the bind code to reflect these changes.

Removed the template generated this. in SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelperPage.xaml.cs.
Added the documentation for the control in controls/SurfaceDialTextboxHelper.md
@deltakosh
Copy link
Contributor

What happen is I used it on a TH2 app? Does it crash or just failed silently?

/// <summary>
/// If you provide the Controller yourself, set this to true so you won't add new menu items.
/// </summary>
public static readonly DependencyProperty ForceMenuItemProperty =
Copy link
Contributor

Choose a reason for hiding this comment

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

can you move all DP at the beginning of the file (my bad I forgot to mention it earlier)

@deltakosh
Copy link
Contributor

Sounds good to me.
@ScottIsAFool good for you?

@deltakosh deltakosh merged commit bf646f5 into CommunityToolkit:dev Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants