windows-runtime

Special characters (like Ü,Ä,Ö) are not correctly displayed at runtime in case of using Template10

↘锁芯ラ 提交于 2019-12-24 00:59:44
问题 Have an issue by using the Template10 for UWP apps. If i want to display special characters at design time everything seems to be ok. At runtime special characters would not be displayed correctly as you can see in screenshots. <!-- page header --> <controls:PageHeader Content="Übersicht"> <controls:PageHeader.SecondaryCommands> <AppBarButton Click="{x:Bind ViewModel.GotoSettings}" Label="Settings" /> <AppBarButton Click="{x:Bind ViewModel.GotoPrivacy}" Label="Privacy" /> <AppBarButton Click=

WinRT C# MessageDialog.ShowAsync - Unauthorized Access Exception - [duplicate]

此生再无相见时 提交于 2019-12-24 00:58:53
问题 This question already has answers here : MessageDialog ShowAsync throws accessdenied exception on second dialog (5 answers) Closed 6 years ago . I don't think I need to paste code. This is C#. Basically, I have a MessageDialog Created, Show it, and have UICommandInvokedHandler being called from a button. Inside that Handler, I do other items that could cause another MessageDialog.ShowAsync to be called. However, this second call is giving an Unathorized Access Exception. I've tried some

What API Is Needed To Run A Delphi App from the Start Screen Rather Than The Desktop

泪湿孤枕 提交于 2019-12-24 00:58:24
问题 When you compile and run a Delphi "Metro" app it runs from the Desktop in Windows 8. What Windows 8 API can make a Delphi app run from the Start Screen? I am not referring to Windows RT. 回答1: That's not possible. Delphi cannot produce WinRT applications. 来源: https://stackoverflow.com/questions/21125783/what-api-is-needed-to-run-a-delphi-app-from-the-start-screen-rather-than-the-des

How can I add InputScope property to PasswordBox in WinRT?

被刻印的时光 ゝ 提交于 2019-12-24 00:57:05
问题 How can I add Input Scope property to my User Control's PasswordBox? Could you explain it to me, please? Thanks. 回答1: according to the information i have PasswordBox does not have Input Scope Property in winrt so you can't set it directly. if you want do it you have to make your separate custom control. For defining your own Custom control you have read it on Windows Development Center ..or simply google it..hope it helps you.. you can use this link.. 来源: https://stackoverflow.com/questions

How to make C# Windows Runtime Component types equatable?

无人久伴 提交于 2019-12-24 00:55:20
问题 I'm writing a Windows Runtime Component in C#. I want to implement the IEquatable interface in some of my types. I don't need to expose the Equals method to the consumers of the component, I just want my unit tests to be able to compare between instances. Implementing IEquatable is not allowed because it's a generic type. What would be the best alternative? 回答1: Unfortunately there is no mechanism for implementing deep comparison between two winrt types :(. 回答2: According to https://msdn

RelayCommand<PasswordBox> CanExecute never runs on Windows 8.1 store but it does on WPF

蹲街弑〆低调 提交于 2019-12-24 00:45:23
问题 I'm developing a Windows 8.1 store app with C# and .NET Frameowork 4.5.1. I'm trying to pass a PasswordBox as a parameter on a button Command . I've tested the following code on WPF and it works. MainViewModel class: public class MainViewModel : ViewModelBase { private RelayCommand<PasswordBox> doLoginCommand; /// <summary> /// The <see cref="UserName" /> property's name. /// </summary> public const string UserNamePropertyName = "UserName"; private string _userName = string.Empty; ///

winjs appbar.wincontrol is null

随声附和 提交于 2019-12-24 00:34:50
问题 I am creating a Windows 8 HTML5 app, and implementing an app bar. When I access the appbar.winControl it is always null. So if for example I write appbar.winControl.show() I get an exception claiming that winControl is null. What I did was create a fixed layout app. Without doing anything else, I added the following markup in the document body: <body> <div id="appbar" data-win-control="WinJS.UI.AppBar" aria-label="Command Bar"> <button id="btnBoardSizeUp" data-win-control="WinJS.UI

How to animate at periodic intervals?

蹲街弑〆低调 提交于 2019-12-24 00:09:40
问题 I have a storyboard which animates a minute hand to slide 6 degrees. Now i want the minute hand to slide at every 59th second forever. Are there any properties of storyboard or any other way that i can do it? My storyboard <Storyboard x:Name="myStoryboard2"> <DoubleAnimation x:Name="minuteAnimation" Storyboard.TargetName="minHandTransform" Storyboard.TargetProperty="Angle" Duration="0:0:1" From="{Binding Time, Converter={StaticResource minuteHandTransform}}" To="{Binding Time, Converter=

Flyout changes Page's theme

独自空忆成欢 提交于 2019-12-23 23:39:29
问题 I'm fighting with little problem on WP8.1 - it took some time, but finally I've managed to localize it - let say that we have a button with a flyout: <Grid x:Name="LayoutRoot"> <Button Content="reset" VerticalAlignment="Center"> <Button.Flyout> <MenuFlyout Placement="Top"> <MenuFlyoutItem Text="first item"/> <MenuFlyoutItem Text="second item"/> </MenuFlyout> </Button.Flyout> </Button> </Grid> It works fine, but if we set the DataContext of a page: public MainPage() { this.InitializeComponent(

Handling back button Windows 8.1 Universal app

时光毁灭记忆、已成空白 提交于 2019-12-23 21:51:09
问题 I'm updating my app from Windows Phone 8 Silverlight to Windows 8.1 RT (I think is called that). I've just created my second page and when i go to and press the back button it goes out of my app instead of going back to first page. I don't know why is this happening, default behaviour is going to last page right? I can't find how to override back button event to make a Frame.GoBack() call. Is this a dev preview bug or am I missing something? 回答1: put into the constructor of the second page: