Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

[UIKit] [Xaml] Add Custom Text Edit Sample to XAMLCatalog#1257

Merged
davelamb merged 5 commits into
microsoft:developfrom
davelamb:develop
Nov 2, 2016
Merged

[UIKit] [Xaml] Add Custom Text Edit Sample to XAMLCatalog#1257
davelamb merged 5 commits into
microsoft:developfrom
davelamb:develop

Conversation

@davelamb

@davelamb davelamb commented Oct 28, 2016

Copy link
Copy Markdown
Contributor

Definitely should check the code out and run it. It's certainly a bit of crazy. :)


This change is Reviewable

<Properties>
<DisplayName>XAMLCatalog</DisplayName>
<PublisherDisplayName>pradipd</PublisherDisplayName>
<PublisherDisplayName>davelamb</PublisherDisplayName>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I do sure wish there was something better we would do here. Its pretty silly that we don't just set this to winobjc or something.

Sample is based on CoreTextEditContext. It demonstrates:

1. Robustness of Xaml projections
2. Event registration and deregistration
3. Using a Xaml control to gain focus
4. Cooperative interoperability between Xaml and WinObjC
5. Custom input handling and rendering

Certainly there are a few bugs, but the sample is intended to be used a
stepping stone for adding custom text editing supoport to an Islandwood
app.

// This view's only subview is an autoresized UIView that hosts
// a Windows.UI.Xaml.ContentControl, which is used to gain focus,
// tabstop, and recieve pointer events.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

👍

- (void)_editContextCompositionCompleted:(WUTCCoreTextEditContext*)sender args:(WUTCCoreTextCompositionCompletedEventArgs*)e {
}

- (void)dealloc {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it just me but I'd love to see the dealloc close to the init so I can compare the init/cleanup steps.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

As per coding spec. Will do. :)

@yiyang-msft

Copy link
Copy Markdown
Contributor

:shipit:

@davelamb davelamb merged commit 2997dc5 into microsoft:develop Nov 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants