uwp-xaml

DropShadowPanel adapt to button template style

六月ゝ 毕业季﹏ 提交于 2019-12-11 02:14:15
问题 I'm using the UWP Toolkit's DropShadowPanel for apply a shadow effect on a Button control. Here the documentation : DropShadowPanel XAML Control The fact is i edited the button style's Template for Round borders but the DropShadowPanel doesn't follow the new Template : <controls:DropShadowPanel BlurRadius="4.0" ShadowOpacity="0.70" OffsetX="5.0" OffsetY="5.0" Color="Black" HorizontalAlignment="Left" Margin="91,90,0,0" VerticalAlignment="Top"> <Button x:Name="button" Content="Button" Style="

XAML UWP Flyout positioning

筅森魡賤 提交于 2019-12-11 02:13:45
问题 I am implementing a Flyout in a UWP app as you can see on the image below. I want the AutoSuggestBox in the Flyout to appear in (and fill) the PageHeader, but it appears below it. This is my XAML: <Button x:Name="searchButton" Margin="0" Padding="0" BorderThickness="0" RelativePanel.AlignBottomWith="pageHeader"> <Button.Content> <FontIcon Height="48" Width="48" Glyph=""/> </Button.Content> <Button.Flyout> <Flyout> <Flyout.FlyoutPresenterStyle> <Style TargetType="FlyoutPresenter"> <Setter

UWP TextBox Text binding not working

主宰稳场 提交于 2019-12-11 01:35:58
问题 I am having some problems with a TextBox.Text binding in UWP. I have been doing WPF for years and typically know what I'm doing in XAML but can't get this binding to work... I have a TextBox and a Button in the same scope in the XAML <StackPanel Orientation="Horizontal" Margin="0,10,0,0"> <TextBox Width="200" Text="{Binding SearchText, UpdateSourceTrigger=PropertyChanged}"/> <Button Margin="10,0,0,0" Command="{Binding SearchBusCommand}">Go</Button> </StackPanel> And the bound properties are

Does UWP app support ajax?

末鹿安然 提交于 2019-12-11 00:57:36
问题 I have a windows 8 hybrid app and now I want to migrate it to UWP. I am facing two issues and I have been searching on the internet for quite a few time. I want to know if UWP support ajax function. Also my anchor tag in href is not parsing. What might be the reason. 回答1: I want to know if UWP support ajax function The answer is yes, you can use ajax in UWP Application. But there are a few things you need to notice when using ajax in UWP. If you are using ajax to get data from a remote server

XAML Custom Textbox Cursor Stays at Start of Entry

与世无争的帅哥 提交于 2019-12-10 23:07:44
问题 I'm working on creating custom controls for a XAML app for Windows 8.1 Universal/UWP and keep finding little nuances. I can't seem to find any great tutorials on creating custom implementations of existing controls (like the TextBox) so I've been looking through the source code of controls like Telerik to try and understand how their custom controls are working. The latest issue I'm encountering is being unable to create even the most simple custom TextBox without the cursor staying at the

Converting String Type To Windows.UI.Color In Windows Universal App

核能气质少年 提交于 2019-12-10 18:54:17
问题 I'm trying to make a program to parse xml files with predefined format, and add some UI controls to my MainPage in Windows Universal Application. In some part, I need to specify the background color of my TextBlocks in related xml file, so I'm looking for a way to convert string attribute, read from xml and convert it to Windows.UI.Color corresponding value. here is my xml file and my C# code to add control xml : <test-unit name ="FOG_LAMP" text ="Fog Lamp" mode ="DIG_IN" color="ORANGE"/> C#:

How to wait for WebViewBrush.Redraw() to finish (UWP printing)?

亡梦爱人 提交于 2019-12-10 12:55:19
问题 I have a basic UWP app with an embedded WebView presenting a rather large HTML document (up to 500 letter-sized printed pages). I'd like to add support for printing that HTML document. Here is my approach: To support pagination, I generate a second HTML document broken into "pages" by using a <div style="height:100vh"> for each "page", up to 500 of these. I load that "paginated" HTML into a second, hidden WebView on the XAML page that I resize to fit exactly one page based on the user

Change size & spacing of UWP RatingControl

ε祈祈猫儿з 提交于 2019-12-10 10:45:52
问题 There's a new RatingControl in UWP that allows you to show ratings as a series of stars. I was wondering how I can change the size of the stars and also the spacing between them. FontSize does not work like it did on the Telerik version for UWP. I hope this is possible without restyling the whole control. For example, Microsoft explicitly states "Spacing customization" as a feature: The rating control has many additional features which can be used. Details for using these features can be

How to add icons to SecondaryCommands in Command Bar

╄→гoц情女王★ 提交于 2019-12-10 00:05:08
问题 I am trying to build a CommandBar that looks like this: Desired CommandBar with SecondaryCommands that have icons But I can't find a way to edit the default style of CommandOverflowPresenter in order to show SecondaryCommands like they are shown in Mail Windows 10 universal app, with icons on the left and text labels on the right. The CommandOverflowPresenter doesn't have a Content property to build a control template around it and bind content elements to AppBarButton Icon and Label

C# user interface updates are not deterministic

落花浮王杯 提交于 2019-12-09 23:37:01
问题 UWP application, C#, Visual Studio 2017, Windows 10 Creators Update (10.0; Build 15063). Let's call TextBlock1 as T1, TextBlock2 as T2... Desired output is: T1 shows "Work started." T2 shows "Step 1" T2 shows "Step 2" T2 shows "" T1 shows "Work Finished." private async void Btn_Click(object sender, RoutedEventArgs e) { TextBlock1.Text = "Work started."; await DoWork(); TextBlock1.Text = "Work done."; } private async Task DoWork() { TextBlock2.Text = "Step 1"; await Task.Delay(1); //Pretend to