UWP Community Toolkit Gets New Controls, Services and More in 1.3

We've covered the UWP Community Toolkit before, UWP++ with UWP Community Toolkit 1.1 and Do you UWP? Then you'll want this..., but this update it pretty special...

Announcing UWP Community Toolkit 1.3

"The UWP Community Toolkit continues to grow at a rapid speed thanks to the ideas and contributions from the community. Over the last period, over 82 percent of the contributions came from the developer community (59 contributors). Thank you!

Today, we are happy to announce the largest update to the toolkit since the launch a few months ago!

You can get started following these steps, or preview the latest features by installing the UWP Community Toolkit Sample App from the Windows Store.

As a reminder, the toolkit can be used in any app (across PC, Xbox One, Mobile, HoloLens and Surface Hub devices) targeting Windows 10 November Update (10.0.10586) or above. The few features that rely on newer OS updates are clearly marked in the documentation and in the Sample App.

image

Here’s just a summary of what’s new in Version 1.3:

  1. Controls. Several new controls were added in this release, including some very popular requests from the community:
    • WrapPanel. Positions child elements in sequential position from left to right or top to bottom, breaking content to the next line.
    • TextboxMask and TextBoxRegex (attached properties). Allows setting common or custom masks (like telephone numbers) for input.
    • SurfaceDialTextboxHelper (attached property). Extends any Textbox control to be controlled directly from a Surface Dial.
    • MarkdownTextBlock. Embeds and renders in real-time markdown syntax.
    • TileControl. Enables repeatable tile content.
    • ScrollHeader. Builds upon FadeHeader and enables Quick Return, Sticky and Fade behaviors.
    • Expander. Provides an extendable container to show/hide any content by clicking the header.
    • AdvancedCollectionView: Builds upon CollectionView and easily sorts and filters collections before displaying them.
    • Loading control. Shows an animation with some content when the user should wait in some tasks of the app.
  2. Services
    • OneDrive service. Roam user files through the new OneDrive service with a simplified API model (similar to StorageFolder). The new service makes it easy to authenticate OneDrive users and more in the same consistent way you have come to expect from the toolkit services.
    • Microsoft Translator Service. Translate text in 60 languages supported by Microsoft Translator Services. The free tier supports up to 2 million requests per month.
    • We’ve added support for geographical metadata to tweets.
  3. Animations
    • Light. Add light effects to your page or controls to draw user attention.
    • Reorder grid animations (attached property). Add smooth animations when resizing a grid view.
    • ParallaxService. Allows to create a parallax effect for items contained within an element that scrolls like a ScrollViewer or ListView.
  4. Notifications
    • New toast features. Allows group toasts notifications (only available on Creator Update).
  5. Accessibility. With the support of the community, we started the journey to add accessibility capabilities to all the controls in the toolkit. You can track progress here.
  6. Sample App
    • The Sample App now has embedded documentation (using the new Markdown control).
    • The Sample App provide pointers to a few external OSS resources, for example, the newly released Windows SDK for Google Analytics.
    • It is now available for preview on Xbox One.
  7. UserVoice
    • The community can now submit and vote for new features on UserVoice.

If you are interested in contributing, please join us on Github!"





Source: https://channel9.msdn.com/Feeds/RSS

Kinect to HoloLens Holograms

Joost van Schaik shares a great project that meshes the old and new worlds (so to speak).

Scanning physical objects with an Xbox One Kinect to use as Holograms in HoloLens

image

Intro

There are several demos out there that show obviously scanned models of people or physical objects used in HoloLens applications. I think it was fellow MVP and Dresdener 3D genius René Schulte who first used his bust in a demo or at least went public with it. Unfortunately I have not been able to find very much about the actual process used to do the scanning and get to this result, so I have been trying to kludge together a procedure to make a full color 3d scan of a physical object – myself – and show it in a HoloLens.

Shopping list

For this you will need the following hardware:

And the following software:

Setting up the hardware...

Downloading additional software...

The actual scanning

Converting to a format usable for Unity

Importing in Unity and showing the colors

...

...

Lessons learned

  • First of all – already mentioned in passing, make sure there is enough light, and prevent shadows. This is harder than it sounds. You will notice scanned Holograms tend to look rather pale when created with insufficient light.
  • The handheld setting is way harder to use than the stationary setting. Consider placing objects on a rotary platform rather than moving around it with the Kinect
  • Move or rotate the object you want to scan slowly (or move the Kinect slowly)
  • You will have to fiddle a lot with settings before you get the result you want
  • Larger objects (like humans) are way easier to scan than small objects
  • Make anything you don’t want on the scan as black as and non-reflective as possible

Concluding remarks

Unity will complain regularly about an error in the shader in the editor, but it still seems to work fine. Having no clue about shaders and how to write them yet, I tend to ignore it. The resulting project, although containing no code written by me at all, can be found here.

Project Information URL: http://dotnetbyexample.blogspot.com/2017/01/scanning-physical-objects-with-xbox-one.html

Project Source URL: https://github.com/LocalJoost/KinectScanDemo

Contact Information:





Source: https://channel9.msdn.com/Feeds/RSS

Dialing with WPF

We've blogged about the Surface Dial a number of times, but most of those have been on how to use the Dial in a UWP application.

What if you're writing WPF apps? Think you're out of luck?

NOPE!

Ricardo Pons has a great post on how you, the WPF Dev, can use the Dial in your app's too.

How To Use Surface Dial With WPF Applications

"...

In this article, I will try to explain, with a simple example, how to use the new Surface Dial with WPF Applications.

Developing applications for WPF

Microsoft has published some code examples for Surface Dial that demonstrate what developers can do with this great device:

Using UWP (Universal Windows Platform) we have this code example: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/RadialController

Using Classic Desktop Apps, we have this code example: https://github.com/Microsoft/Windows-classic-samples/tree/master/Samples/RadialController

Personally, I like to develop applications for UWP apps, but I couldn’t find any decent documentation explaining how to use this device with WPF – because, in my case, I would like to integrate it to improve the UX.

So how do we do this?

First of all, we need to install the Nuget package UwpDesktop. We need to understand that there is no native support for this device. As UWP applications we will need to use Interoperability (If you want to know more about this topic you can read this great documentation). We need to create the interfaces to access to the device:

...

image

Conclusion

Using Surface Dial will improve the user experience of our apps – and, what’s more,  we can create awesome applications for UWP Apps and Classic Desktop apps like WPF applications.

Even though we don’t have native support for Surface Dial, thanks to Interop classes and UwpDesktop Nuget Package, we can use a lot of APIs from UWP applications in our Desktop apps to potentially improve their quality.

..." [Click through to see the code]

 





Source: https://channel9.msdn.com/Feeds/RSS

OneDrive | Design and Develop Apps for Surface Hub

The Surface Hub is a shared team device, it's not a personal computer, so you don't save files locally on the Surface Hub. In this video, we are going to talk about how to use OneDrive for cloud store. You could download the PowerPoint slides and the sample from GitHub:https://github.com/dxsurfacehub/Surface-Hub-Design-and-Development.



Source: https://channel9.msdn.com/Feeds/RSS

Camera | Design and Develop Apps for Surface Hub

In this tutorial, we are going to use the Surface Hub cameras to capture preview of what the camera is seeing and use that to create a picture. Please download the Powerpoint slides and the sample from GitHub:https://github.com/dxsurfacehub/Surface-Hub-Design-and-Development.



Source: https://channel9.msdn.com/Feeds/RSS

Why PhD student Soon Flynn loves his Surface Pro 4

“My Surface is the only means I have to express myself outside of my head to the physical world – seriously; it makes such a big difference to my life and my studies.  As a person with Autism it’s an imperative tool to communicate with others.” – Soon Flynn, Ph.D. student studying Biology at Arizona […]

Source: https://blogs.windows.com/feed