microsoft-metro

Incorrect selection of items in an FMX TListbox (Grid Metropolis UI)

情到浓时终转凉″ 提交于 2019-12-20 03:05:12
问题 I have met an issue of unproper selection of items in TListBox in my application with a HorzScrollBox in the form. The form has two (or more) TListBox on it. They are placed away from each other so that their absolute left coordinates difference is more than the width of the current device screen width. The error appears in the following sequence of user actions. An item is selected from the left TListBox The HorzScrollBox is scrolled to the right and the second TListBox becomes visible to

Incorrect selection of items in an FMX TListbox (Grid Metropolis UI)

江枫思渺然 提交于 2019-12-20 03:05:02
问题 I have met an issue of unproper selection of items in TListBox in my application with a HorzScrollBox in the form. The form has two (or more) TListBox on it. They are placed away from each other so that their absolute left coordinates difference is more than the width of the current device screen width. The error appears in the following sequence of user actions. An item is selected from the left TListBox The HorzScrollBox is scrolled to the right and the second TListBox becomes visible to

Is there a way to get push to scroll functionality in Windows 8 metro Apps?

泪湿孤枕 提交于 2019-12-20 03:02:32
问题 In the Windows 8 Consumer Preview, moving the mouse towards the left or right edge in the start screen causes the content to scroll. The standard controls (and currently released preview apps) does not seem to support this. Is there a way to make this work? 回答1: I asked this question at TechEd North America this year, after one of the sessions given by Paul Gusmorino, a lead program manager for the UI platform. His answer was that no, apps can't do push-against-the-edge-to-scroll. WinJS and

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

安稳与你 提交于 2019-12-20 01:52:07
问题 I am developing a Metro style app using C# and xaml. In my application I got the error when calling to a web service: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. What is the reason for this error? 回答1: I have a crawler program and a few moments ago I got the same exception. The reason in my case is that the security certificate (of the site I have been crawling) expired. A quick fix in my case was adding this line of code:

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

主宰稳场 提交于 2019-12-20 01:52:07
问题 I am developing a Metro style app using C# and xaml. In my application I got the error when calling to a web service: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. What is the reason for this error? 回答1: I have a crawler program and a few moments ago I got the same exception. The reason in my case is that the security certificate (of the site I have been crawling) expired. A quick fix in my case was adding this line of code:

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

那年仲夏 提交于 2019-12-20 01:52:04
问题 I am developing a Metro style app using C# and xaml. In my application I got the error when calling to a web service: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. What is the reason for this error? 回答1: I have a crawler program and a few moments ago I got the same exception. The reason in my case is that the security certificate (of the site I have been crawling) expired. A quick fix in my case was adding this line of code:

How to set animations/transitions when adding elements to a ListViews?

一笑奈何 提交于 2019-12-19 19:28:07
问题 I have got a ListView wich I added Elements by binding. The ListView looks like: <ListView x:Name="ListView" Height="auto" Width="350" ItemsSource="{Binding}" Padding="0,0,-20,0" Grid.Row="1" Grid.Column="0" Background="#EFEFEF" ItemContainerStyle="{StaticResource ListViewStyle}"> <ListView.ItemTemplate> <DataTemplate> <StackPanel Height="50" VerticalAlignment="Top" Margin="0,0,0,0" <TextBlock Text="{Binding name} TextWrapping="NoWrap"/> </StackPanel> </DataTemplate> </ListView.ItemTemplate>

Any sample on how to use WCF RIA Services in XAML metro app?

雨燕双飞 提交于 2019-12-19 11:38:23
问题 I wonder if someone have tried using WCF RIA Services in XAML based metro application. If you have any blog or sample please share. 回答1: As a matter of fact I did and here's the trick :) I added a " Service Reference " to my WCF service exposing an ADO.NET Entity Framework model. The problem is that in a XAML/C# Metro app, executing the following code fails: SampleEntities ctx = ((App)Application.Current).Context; var query = from p in ctx.Products where p.Name == name select p; foreach

What is the alternative to `alert` in metro apps?

我只是一个虾纸丫 提交于 2019-12-19 10:26:10
问题 I created my first app on Windows 8 vs 2012 and it runs and works fine. But when I try to say "helloworld" from JavaScript like this: alert("Hello World"); I get an error: Unhandled exception at line 21, column 13 in ms-appx://1af489cf-bac6-419b-8542-fdc18bdd2747/default.html 0x800a1391 - JavaScript runtime error: 'alert' is undefined What is the alternative if alert is obsolete? 回答1: You should use Windows.UI.Popups.MessageDialog : (new Windows.UI.Popups.MessageDialog("Content", "Title"))

Load bitmapImage from base64String

天涯浪子 提交于 2019-12-19 09:27:27
问题 How can I load a bitmapImage from base64String in windows 8 ? I tried this but I am not successful. It used to work on windows phone. What is different? Looks like I have to use the function setsourceasync. When I use that, then I am required to pass the parameter as IRandomMemory which I am unable to do. How to do this? public static BitmapImage Base64ToImage(string base64String) { var bitmapImage = new BitmapImage(); try { if (!String.IsNullOrEmpty(base64String)) { var imageBytes = Convert