uwp-xaml

How can I force the TextBox to display what is being entered into it?

自闭症网瘾萝莉.ら 提交于 2020-12-27 06:36:38
问题 In my UWP app, I am invoking a ContentDialog when a button (btnCre8NewMap) is clicked. Here is the pertinent XAML: <Button x:Name="btnCre8NewMap" Content="Create New Map" ToolTipService.ToolTip="Create a new map" Margin="140,16,50,0" VerticalAlignment="Top" Click="btnCre8NewMap_Click"/> . . . <ContentDialog x:Name="cntDlgCre8Map" Title="Create a New Map" PrimaryButtonText="Save" CloseButtonText="Cancel" DefaultButton="Primary"> <StackPanel> <TextBlock Text="Map Name: "/> <TextBox x:Name=

Why are resources not used in this page?

自闭症网瘾萝莉.ら 提交于 2020-12-15 06:25:09
问题 No matter where I put my resources, their value isn't used: The TextBlock text should be rendered black, but it's always rendered white. Why? Here is the source: <Page x:Class="TemplateTest.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" Background="Lavender">

How to change selection highlight colour of a ListBoxItem in UWP?

浪子不回头ぞ 提交于 2020-07-20 03:34:32
问题 I want to change the selection highlight color of a ListBoxItem The split view pane on the left has a ListBox containing the ListBoxItems.The default selection colour is blue and I want to customize it but I'm not able to change it. I couldn't find any property to change the selection highlight color of a ListBoxItem in UWP. 回答1: You can change the style of ListBoxItem to change the selection highlight color.In the style,you should change all the states that contanin ' Selected ' key word to

UWP - how can we repeat the display of 3 static text messages via a local tile notification

橙三吉。 提交于 2020-07-10 07:32:32
问题 Environment : Windows 10 Pro - v1903 , VS2019 - v16.6.2 Using this sample code from Microsoft docs, I was able to create a tile - with a text message - as shown below. But I would like to display 3 different static text messages in a certain interval. Question : In the above tile example, how can we repeat the display of 3 different static text messages via a local tile notification. For example: Every 10 minutes: Display This is message 1 in the first interval, This is message 2 during next

UWP - how can we repeat the display of 3 static text messages via a local tile notification

纵然是瞬间 提交于 2020-07-10 07:31:19
问题 Environment : Windows 10 Pro - v1903 , VS2019 - v16.6.2 Using this sample code from Microsoft docs, I was able to create a tile - with a text message - as shown below. But I would like to display 3 different static text messages in a certain interval. Question : In the above tile example, how can we repeat the display of 3 different static text messages via a local tile notification. For example: Every 10 minutes: Display This is message 1 in the first interval, This is message 2 during next

CommandBar AppBarButton Icon Size

可紊 提交于 2020-06-23 05:22:30
问题 I'm trying to redesign my CommandBar AppBarButton icons to look like Calendar, Mail, etc. Microsoft Apps. As you can see below, Microsoft Apps icons are bigger smooth, thin than mine and also have vivid white color. I've tried to apply resources, and other configurations like font size, height, width and nothing works, I have no idea how to do it. This is my source code: <Page.Resources> link to resouse file: https://msdn.microsoft.com/pt-br/library/windows/apps/mt299105.aspx </Page.Resources

VisualStateManager for UI Responsive is not working in UWP

旧巷老猫 提交于 2020-05-26 09:25:11
问题 in my uwp desktop application. I have crated one user control for header. for responsive UI i am using the VisualStateManager But its not working when i am resizing the page.i want to keep moving right hand side controls to left when i am resizing the page.this code working in some situation. I want to reduce the middle blank space size when i am resize the window. thanks in advance :) <UserControl x:Class="UWPUIResponsive.UC_Header" xmlns="http://schemas.microsoft.com/winfx/2006/xaml