This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Licensed to the .NET Foundation under one or more agreements. | |
| // The .NET Foundation licenses this file to you under the MIT license. | |
| // See the LICENSE file in the project root for more information. | |
| using Windows.UI.Xaml; | |
| using Windows.UI.Xaml.Controls; | |
| namespace CommunityToolkit.WinUI.Controls.Future; | |
| public sealed class SelectedContentControl : ListViewBase // Can't inherit from Selector: https://github.com/microsoft/microsoft-ui-xaml/issues/205 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- See Reference Issues: | |
| https://github.com/microsoft/microsoft-ui-xaml/issues/2310 | |
| https://github.com/microsoft/microsoft-ui-xaml/issues/3759 | |
| --> | |
| <Page | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| xmlns:muxc="using:Microsoft.UI.Xaml.Controls" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 🆕 Issue/PR | |
| Close Issue/PR ✅ | |
| Discover Typo in Docs 📑 | |
| Uses XAML Studio | |
| Uses 🧰 Sample App | |
| Uses XAML Controls Gallery 🖼 | |
| Talks about 🦙s | |
| Mentions Green 🟢 Screen | |
| Mentions WinUI | |
| Mentions Win2D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Items": | |
| [ | |
| { | |
| "index": 1, | |
| "def": "Iterate a design with XAML for fun.", | |
| }, | |
| { | |
| "index": 2, | |
| "def": "Explore new things with XAML.", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Windows.UI.Xaml.Data; | |
| using Windows.UI.Xaml.Markup; | |
| namespace MarkupExtensionTest | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Licensed to the .NET Foundation under one or more agreements. | |
| // The .NET Foundation licenses this file to you under the MIT license. | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Numerics; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Windows.UI; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Page | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| mc:Ignorable="d"> | |
| <ScrollViewer> | |
| <VisualStateManager.VisualStateGroups> | |
| <VisualStateGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using Windows.UI.Xaml.Markup; | |
| namespace CustomMarkupExtensionRS3 | |
| { | |
| [MarkupExtensionReturnType(ReturnType = typeof(int))] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.addEventListener("DOMContentLoaded", (ev) => { | |
| if (typeof Windows !== 'undefined') { | |
| var profile = Windows.Networking.Connectivity.NetworkInformation.getInternetConnectionProfile(); | |
| var connectivity = profile.getNetworkConnectivityLevel(); | |
| document.getElementById("connectionstatus").innerHTML = connectivity; | |
| document.getElementById("hasinternet").innerHTML = (connectivity == Windows.Networking.Connectivity.NetworkConnectivityLevel.internetAccess); | |
| document.getElementById("islan").innerHTML = profile.isWlanConnectionProfile; | |
| document.getElementById("iswan").innerHTML = profile.isWwanConnectionProfile; | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.addEventListener("DOMContentLoaded", (ev) => { | |
| if (typeof Windows !== 'undefined') { | |
| document.getElementById("calendar").addEventListener("click", () => { | |
| Windows.ApplicationModel.Appointments.AppointmentManager.showTimeFrameAsync(new Date(Date.now()), 1); | |
| }); | |
| document.getElementById("mail").addEventListener("click", () => { | |
| Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri("mailto:")); | |
| }); | |
| document.getElementById("people").addEventListener("click", () => { | |
| Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri("ms-people:")); |