uwp-xaml

Unable to update UWP UI from code behind using Dispatcher

孤街醉人 提交于 2019-12-11 16:14:30
问题 I have a derived class from MediaTransportControls and trying to disable previous and next track buttons based on some events. I wrote following public class MyMediaTransportControls : MediaTransportControls { public static readonly DependencyProperty IsPreviousTrackButtonEnabledProperty = DependencyProperty.Register( "IsPreviousTrackButtonEnabled", typeof(bool), typeof(MyMediaTransportControls), new PropertyMetadata(false, IsPreviousTrackButtonEnabledChangedCallback)); private static async

UWP Touch Volume Control

大兔子大兔子 提交于 2019-12-11 15:41:16
问题 I need to implement Tap (Touch) volume control using UWP code. For example, if I tap a button in my terminal, the volume of tapping sound could control in App settings. This control must link into the mobile or any other devices. Few investigations: Tap sound from an adjustment of Ringtone Volume in our mobile. so we need to get the response from Ringtone settings. I've searched most about this, but couldn't find the solution. Update at Slider change event: Slider slider = sender as Slider;

Windows 10 UWP XAML stowed_exception_802b000a_my_app.dll!windows::ui::xaml::iapplicationstatics__impl::stubclass.loadcomponent

笑着哭i 提交于 2019-12-11 14:47:28
问题 I have a problem with a Windows 10 UWP Store App. In the app are two pages (Page1 and Page2) with similar xaml controls, but one page (Page1) cause a lot of problems while testing the app by microsoft. If they try to start the app the initialization of Page1 throw an exception. When I remove one specific xaml control all is fine, but Page2 contains exactly the same controls and works perfectly. On my local machine I have no exceptions, no warnings, the windows certification kit say the app

How can I show a ProgressRing control ONLY on top of/overlaying my current page?

冷暖自知 提交于 2019-12-11 14:26:51
问题 I'm an Android developer trying to learn UWP development, and stuck on this simple need. I have 3 pages and want to make a ProgressRing accessible to all 3 pages, so when I'm doing an async task I can pop up the ProgressRing modal. I don't want to have ProgressRing code in each page. How can I accomplish this? I've looked into the ContentDialog class, but that seems to require a button in the UI and all I want to show is the ProgressRing itself without a button centered in my window The

UWP - How to format time in TimePicker_TimeChanged AND Select Time without Buttons inside in TimepickerFlyout

∥☆過路亽.° 提交于 2019-12-11 13:56:08
问题 I am developing UWP App (Win10 VS2015). I have two problems. 1- How can I get the time in this format (4:00 PM or 9:34 AM etc..) in 12hours format, I can get the value without PM/AM via this TimePicker.Time = sender.Time.ToString(@"hh\:mm") , but I need the actual format as I mentioned. XAML Code <TimePicker ClockIdentifier="12HourClock" TimeChanged="TimePicker_TimeChanged" Style="{StaticResource TimePickerStyleCustom}"/> .cs Code private void TimePicker_TimeChanged(object sender,

TextBox sizing inside ScrollView with horizontal scroll

穿精又带淫゛_ 提交于 2019-12-11 13:47:36
问题 I have a problem with the TextBox control. Be aware of the ScrollViewer as this makes the difference. Here is my xaml: <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <ScrollViewer HorizontalScrollMode="Auto" HorizontalScrollBarVisibility="Auto"> <TextBox HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="20" Text = "A short text"> </TextBox> </ScrollViewer> </Grid> It results in this: It looks like expected and it expends/shrinks nicely if the window is

uwp commandbar more button not showing up with DynamicOverflowEnabled

被刻印的时光 ゝ 提交于 2019-12-11 10:14:07
问题 ok so I have a UWP app in which I am using CustomMediaTransportControls . within those controls I've added some extra buttons within the commandbar PrimaryCommands and have set IsDynamicOverflowEnabled=true according to the docs it should automatically send the primary commands to the overflow menu when the screen size is not enough for all the buttons. and it should drop them out accoridng to MediaTransportControlsHelper.DropoutOrder property on each appbarButton. Problem When screen size is

XLS0413 The property 'ItemsSource' was not found in type 'TreeView'

房东的猫 提交于 2019-12-11 09:29:00
问题 I have the following MainPage.xaml pasted in from the docs <Page x:Class="jtUFlow.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:jtUFlow" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls="using:Windows.UI.Xaml.Controls" mc:Ignorable="d" Background="{ThemeResource

How to play video and audio from separate URLs in UWP app?

坚强是说给别人听的谎言 提交于 2019-12-11 08:53:30
问题 I'm trying to create a video player for a UWP Desktop App. I not able to play a video and audio from different URLs. I have given my code below but I haven't given audio and video URLs. I'm using a Xampp local server for my case. Please Help Me. My MainPage.xaml.cs : namespace my_video_player { public sealed partial class MainPage : Page { MediaPlayer video_player; MediaSource mediaSource_video; MediaSource mediaSource_audio; public MainPage() { this.InitializeComponent(); video_player = new

MVVM Validation in UWP

烈酒焚心 提交于 2019-12-11 08:01:22
问题 In the last week I've been trying to apply MVVM Pattern to Universal Windows Plataform, in the most elegant possible way, that means apply SOLID principles and some popular design patterns. I've been trying to reproduce this exercise from this link: http://www.sullinger.us/blog/2014/7/4/custom-object-validation-in-winrt Also the link is for Windows 8 apps it also applies to Windows 10 apps according to MSDN answer at this forum: https://social.msdn.microsoft.com/Forums/windowsapps/en-US