Category Archives: net

Auto Added by WPeMatico

Announcing Windows Community Toolkit v4.0 – Windows Developer Blog

The Windows Community Toolkit recently reached over 1 million downloads across all nuget packages. This is a very big milestone for the community and I’m very excited to announce yet another major update to the Windows Community Toolkit, version 4.0. With the help of the Windows community, this update introduces several new additions and improvements, specifically:New DataGrid with fluent design for all UWP developers
Two new Microsoft Graph controls. PowerBIEmbedded enables embedding PowerBI dashboards in your UWP apps and PlannerTasksList allows users to work with Microsoft Planner tasks
The Twitter, LinkedIn, and Microsoft Translator services have moved to the .NET Standard services package and available to even more developers, including desktop and Xamarin developers
Strong-named packages for those developers that require strong-named assemblies
Dark theme support for the sample app and theme chooser for each sample
These are some of the biggest updates in this release and I encourage you to view the full release notes on our GitHub. Let’s take a look at some of these updates in more details.

New fluent DataGrid control
We had introduced a preview of a fluent DataGrid control for Windows 10 in Version 3.0. In the past several months, we have added a few more features based on community feedback, ensured more reliability and better accessibility for the DataGrid control. We are now pleased to announce the general availability of the DataGrid control.
The DataGrid control is a robust control that provides a flexible way to display a collection of data in rows and columns. It retains the programming model for DataGrid from Silverlight and WPF so it is familiar to XAML developers who have used the DataGrid control in older XAML technologies. Developers can now create highly flexible tabular visualization of data with editing, data validation and data shaping functionalities with a few simple lines of code in Windows 10:

Make sure to visit the DataGrid documentation to learn about the capabilities of the DataGrid control with detailed guidance documents and How-Tos with code samples. DataGrid comes in a standalone nuget package that you can download and add reference to.
New Microsoft Graph controls
Version 3 of the toolkit introduced a new category of UWP controls to enable developers access the Microsoft Graph. With few lines of code, developers can add UI to enable users to log in to the Microsoft Graph, search for coworkers and friends, browse SharePoint files and more. Version 4.0 introduces two new Microsoft Graph controls: PlannerTaskList and PowerBIEmbedded.
The PlannerTaskList enables developers to integrate tasks directly in their apps and allow users to interact with the Microsoft Planner tasks. Teams and individuals depend on Microsoft Planner to get organized quickly, work together effortlessly, and stay on the same page.

The PowerBIEmbedded control enables developers to embed a rich PowerBI dashboard directly in their apps and allow users to interact with the rich data directly.
Moved Twitter, LinkedIn, and Microsoft Translator services to .NET Standard
The Windows Community Toolkit contains APIs to make it easy to work with web services such as Twitter, OneDrive, LinkedIn, Microsoft Graph and more. Originally only available to only UWP developers, with this update, most services have moved to our .NET Standard services package (Microsoft.Toolkit.Services). These services are now available to any framework implementing .NET Standard 1.4 and above, which includes UWP, the .NET Framework (including WPF and WinForms), Xamarin, .NET Core and many more.
Get started today
As a reminder, you can get started by following this tutorial, or preview the latest features by installing the Windows Community Toolkit Sample App from the Microsoft Store. If you would like to contribute, please join us on GitHub! To join the conversation on Twitter, use the #windowstoolkit hashtag.
Happy coding!
Updated August 8, 2018 8:36 am

Early preview of Visual Studio support for Windows 10 on ARM development

Today, we are pleased to announce that Visual Studio 15.8 Preview 1 contains an early preview of the SDK and tools to allow you to create your own 64-bit ARM (ARM64) apps. These tools answer the requests of many eager developers, and the development made possible with these tools represents the next step in the evolution of the Always Connected PC running Windows 10 on ARM.
Earlier this year, our partners released the first Always Connected PCs powered by Qualcomm Snapdragon 835 processors. These Always Connected PCs are thin, light, fast, and designed with instant-on 4G LTE connectivity and unprecedented battery life – now measured in days and weeks, not hours. Thanks to an x86 emulation layer, these Always Connected PCs also allow customers to tap into the wide ecosystem and legacy of Windows apps.
Developers interested in targeting this new ARM-based platform can use these early preview tools to build apps that run natively on ARM processors rather than relying on the emulation layer. While the algorithms that make emulation possible are engineered to optimize performance, running your app natively allows your customers to get the most performance and capability from your app on this new category of devices.
Since this is an early preview, there isn’t official support yet for the ARM64 apps built with these tools. You won’t be able to submit ARM64 packages to the Microsoft Store, though you can post preview versions of ARM64 Win32 apps to your website. Stay tuned to this blog for more information as more support becomes available. In the meantime, you can use these preview tools to get a head start on developing your ARM64 apps and provide feedback before the tools are finalized.
In this post we’ll look at how to set up your environment to build ARM64 apps, whether you’re building Universal Windows Platform (UWP) apps or C++ Win32 apps.
C++ UWP App Instructions
To build ARM64 UWP apps based on C++, start by setting up your development environment:
1) Download Visual Studio’s latest preview at https://www.visualstudio.com/vs/2) Choose the “Universal Windows Platform development” workload3) Select the “C++ Universal Windows Platform tools” optional component4) In Individual Components, select “C++ Universal Windows Platform tools for ARM64”
The Visual Studio Installer should look like this when everything that is required is selected:

After installing, you can get started on your app:
5) Open your C++ Project in Visual Studio, or create a new one6) Right click on your Solution and select Properties, then navigate to Configuration Properties and select “Configuration Manager”7) Under “Active solution platform:” select “” and call it ARM64. Copy settings from “ARM” and check to create new project platforms8) If individual projects within the solution do not allow adding ARM64 as a platform, it may be because of dependencies. To learn more about the dependencies, you can modify those project files directly, copying the ARM configuration and modifying the platform to create an ARM64 configuration.9) Save everything
ARM64 will now be available as a configuration for the project to build. Note that only Debug builds are supported for ARM64 at this time. You can create a package for sideloading or use remote debugging (see instructions) to run the app on a Windows 10 on ARM PC.
.NET Native UWP App Instructions
To build ARM64 UWP apps that rely on .NET Native, start by setting up your development environment.
1) Download Visual Studio’s latest preview at https://www.visualstudio.com/vs/preview/2) Choose the “Universal Windows Platform development” workload3) Open your project or create a new one. Note that the Target Platform Minimum Version must be set to at least “Windows 10 Fall Creators Update (Build 16299)”4) Open the project file in your favorite editor and add a property group targeting ARM64. You can copy an existing property group, such as Debug|ARM, and modify it to support ARM64 with the changes highlighted below:

The UseDotNetNativeToolchain property is required to enable the .NET Native toolchain.
5) Save the project file and reload it in Visual Studio6) Right click on your Solution and select Properties, then navigate to Configuration Properties and select “Configuration Manager”7) Under “Active solution platform:” select “” and call it ARM64. Copy settings from “ARM” and check to create new project platforms8) Update to latest ARM64 version of the tools:
a. Right-click your project and select ‘Manage NuGet Packages…’b. Ensure “Include Prerelease” is selectedc. Select the Microsoft.NETCore.UniversalWindowsPlatform packaged. Update to the following version: 6.2.0-Preview1-26502-02
ARM64 will now be available as a configuration for the project to build. Note that only Debug builds of ARM64 are supported at this time. You can create a package for sideloading or use remote debugging (see instructions) to run the app on a Windows 10 on ARM PC.
C++ Win32 App Instructions
Visual Studio 15.8 Preview 1 also includes an early level of support for rebuilding your C++ Win32 apps as ARM64 to run on Windows 10 on ARM.
1) Download Visual Studio’s latest preview at https://www.visualstudio.com/vs/preview/2) Choose the “Desktop development with C++” workload3) In Individual Components, select “Visual C++ compilers and libraries for ARM64”4) Open your project in Visual Studio or create a new one5) Right click on your Solution and select Properties, then navigate to Configuration Properties and select “Configuration Manager”6) Under “Active solution platform:” select “” and call it ARM64. Copy settings from “ARM” and check to create new project platforms.7) Save everything8) Open the project file in your favorite editor. Under , declare support for ARM64 by adding WindowsSDKDesktopARM64Support, as highlighted below:

9) Save and reload the project
You will now be able to build the project as ARM64 and either remote debug on a Windows 10 on ARM PC or copy over the EXE files and run them directly.
You can also use the Desktop Bridge (see instructions) to wrap the built ARM64 binaries into a Windows app package that can be installed on Windows 10 on ARM PCs.
Conclusion
We’re excited to open up Windows 10 on ARM to developers looking to build great apps compiled natively for the platform.
Visual Studio 15.8 Preview 1 provides an early preview of the full support that will be coming later this year. You can expect more updates as we work to bring these tools to an official release and open the Store to accept submissions for ARM64 packages.
We hope you give these tools a try on your apps and would love to hear from you. If you hit any issues, have any questions, or have feedback to share, head to our Windows 10 on ARM development page at http://aka.ms/Win10onARM or leave comments below.

Thanks for attending September’s Windows Community Standup

Thanks everyone for attending and asking some fantastic questions. We strive to answer all questions and be transparent with both what we are building and why we are building them. Kevin’s next Windows Community Standup will be on October 10th, 2017 at Windows Developer Day!
Kevin showed off how .NET Standard 2.0 works in a Universal Windows Platform Application by showing SqlClient code being used directly from a classic WinForm application, dragging those files into the UWP app’s code base and just running the application!
Kevin also showed off some of the advances inside Windows Ink that developers can take advantage of today. Shape recognition and much more!

Windows Developer Day Returns!

Windows Developer Day is back! Join us on October 10, starting at 9:30 AM PDT via live stream, or attend a viewing party in your area (location list below), as we explore what’s new in the Windows 10 Fall Creators Update for developers.
The day’s schedule features an introductory keynote by Kevin Gallo and members of the Windows engineering team, a live-streamed Q&A session and several streaming sessions diving deeper into the current Windows 10 update.
Learn what’s new for developers in the Windows 10 Fall Creators Update
No matter what you’re working on, you’ll find plenty of new features and improvements to make your software more compelling:
Game devs
Game Mode and new performance enhancements improve the gameplay experience for most of your players.
Xbox Live Creators Program lets you integrate Xbox Live into your game and publish to both Xbox One and Windows 10.
Mixer is the only next gen streaming service that offers viewers real-time influence and participation in your players’ live streams.
Windows Store improvements help you promote your games with video trailers and control timing and pricing more precisely.
Commercial devs
.NET Standard 2.0 adds more than 20,000 new APIs and lets you share code across all your .NET code base.
Xamarin lets you use your existing C# and .NET skills to build truly cross-platform apps for iOS, Android and Windows 10 devices.
Desktop Bridge improvements to tooling and more make it much easier to convert your existing Win32 and .NET software to Windows 10.
Windows Mixed Reality delivers new levels of immersion to help you enhance the visual experience of your users.
Consumer devs
Microsoft Graph and UserActivity API make your end-to-end experience seamless by connecting screens and experiences across devices and platforms.
Fluent Design System helps you engage your users continuously across all their devices with beautiful, expressive experiences.
Tooling improvements within Visual Studio make it easier to create, convert and deploy your software.
.NET Standard 2.0 adds more than 20,000 new APIs and lets you share code across all your .NET code base.
Live Stream Viewing Parties
Join other developers from your local developer community and attend a Live Stream Viewing Party hosted by a Microsoft Windows Development MVP. Enjoy refreshments, watch the live stream, participate in the Live Q&A alongside your peers and make new community connections!
Here is a list of the locations: 
Amstelveen, Netherlands
Bonstetten, Zurich, Switzerland
Boston, MA, USA
Chicago, IL, USA
Cologne, Germany
Dresden, Germany
Durban, South Africa
Ghent, Belgium
Manchester UK
Mexico City, Mexico
Milan, Italy
Milwaukee, WI, USA
Moscow, Russia
Munich, Germany
Paris, France
Penang, Malaysia
Santa Cruz de Tenerife, Spain
Singapore, Singapore
Stockholm, Sweden
Vienna, Austria
Zagreb, Croatia
Learn more about Windows Developer Day and sign up here!

The UWP Community Toolkit v2.0

Today, the UWP Community Toolkit graduates to version 2.0 and sets the stage for future releases.
There have been seven releases since the UWP Community Toolkit was first introduced exactly one year ago and version 2.0 is the first major and largest update to date. The developer community has worked enthusiastically to build something that is used by thousands of developers every month. Today, there are over 100 contributors, and developers have downloaded the packages over 250,000 times. This would not be possible without the strength of the community – Thank You!
For developers, and designers alike
Beginning with the v2.0 release, the UWP Community Toolkit is making efforts to align with the latest Windows 10 Fall Creators Update to enable developers to take advantage of the new APIs and the new Fluent Design System.
The Fluent Design System defines several foundational elements that will make new designs perform beautifully across devices, inputs and dimensions. To prepare for the general availability of the Fall Creators Update later this year, the community has committed to update all UWP Community Toolkit controls to adopt Fluent Design. Over the coming months, new and existing controls will be updated to support light, depth, material, motion and scale. The sample app will also be updated to take full advantage of the new foundational elements to demonstrate what is possible.

Updating the Sample App
The UWP Community Toolkit Sample App showcases toolkit features for developers by providing tools to get started using the toolkit in their apps, and it continues to get better. In the largest update since the initial release, developers can now edit XAML directly in the sample app and instantaneously view the results side by side. This is a very powerful addition that allows developers to get started with development immediately by simply downloading the app from the store.
But that’s not all. Taking inspiration from the Fall Creators Update, the sample app has been updated to use an improved and redesigned navigation model. The navigation has moved to the top and it’s now much easier to get to any sample. In addition, a new landing page has been added to make it easier to find what is new and keep track of favorite samples.

Beyond UWP
The UWP Community Toolkit has received feedback about the importance of supporting cross-platform development to enable developers to share more of their code across platforms. Version 2.0 introduces two new packages: Microsoft.Toolkit and Microsoft.Toolkit.Services with the commitment to support more cross platform APIs in future releases. These packages are built with .NET Standard and support any platform with .NET Standard 1.4 and above. The Bing Service is the first API to go cross-platform and there is currently work underway to move more services to the new packages.
What else is new?
As with every release, the community has worked together to share their ideas, build new controls and helpers libraries and improve the UWP Community Toolkit for everyone. This release is no different.
There are several large additions and updates to highlight here, but make sure to visit our release notes for all additions and improvements:
Added InAppNotification control – a control to show local notifications in app
Added TextToolbar control – text editing control that enables easy rich text and Markdown formatting
Updated Expander to support all orientations and added LayoutTranformControl from the WinRT XAML Toolkit
Updated Menu to support underline characters, orientation and many other improvements
This is just the start
We learned a lot in the past year, and the community has worked together to make toolkit APIs as easy and flexible as possible. Few APIs and packages have been restructured to make them more convenient for developers and allowed more flexibility for future additions and updates. For example, the Microsoft.Toolkit.UWP.Connectivity package was added to unify all connectivity APIs such as Bluetooth and networking. Likewise, all extensions and helpers are now unified under a single namespace and are consistent across API.
As a reminder, although most of the development efforts and usage of the UWP Community Toolkit is for Desktop apps, it also works great on Xbox One, Mobile, HoloLens, IoT and Surface Hub devices. You can get started by following this tutorial, or preview the latest features by installing the UWP Community Toolkit Sample App from the Windows Store.
If you would like to contribute, please join us on GitHub! To join the conversation on Twitter, use the #uwptoolkit hashtag.