winrt-xaml

handle the new windows phone software buttons (WinRT)

烂漫一生 提交于 2019-12-25 01:49:44
问题 What is the best way to handle the windows phone software buttons that pop up overlaying my app content.Earlier they had these hardware buttons(Back, Windows,Search Buttons) but now in some devices they have introduced software keys.Example Lumia 730 device. 回答1: There are 2 ways: 1) You can set the app or the page to auto-resize layout using Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().SetDesiredBoundsMode(Windows.UI.ViewManagement.ApplicationViewBoundsMode.UseVisible);

C# Mixing WinRT and Windows Forms

我是研究僧i 提交于 2019-12-25 01:42:51
问题 As far as I understand, I can use Windows Forms in Windows 8 Pro (non-RT) applications. However I was wondering if I can develop an app which has a nice WinRT interface for the main part as well as a WinForms part for the more complicated parts which benefit from stuff like TreeViews and which are complicated and useless to reimplement. Which development environment would I need for that? 回答1: Windows Store Applications are intentionally limited and do not include the entire .NET Framework,

Image overlay in a flipview

丶灬走出姿态 提交于 2019-12-25 01:35:26
问题 I have this XAML code: <FlipView x:Name="models_list" Width="432" Height="286" Canvas.Left="89" Canvas.Top="80" ScrollViewer.VerticalScrollBarVisibility="Hidden" > <FlipView.ItemTemplate> <DataTemplate> <Grid x:Name="imgGrid"> <Image x:Name="img1" Source = "{Binding}" Stretch="Fill" /> <Image x:Name="img2" Source = "{Binding}" Stretch="Fill" /> </Grid> </DataTemplate> </FlipView.ItemTemplate> </FlipView> I want to be able to overlay images on this basic image 'img1' in the grid 'imgGrid'.

Do I need to revalidate my Bing Maps credentials?

*爱你&永不变心* 提交于 2019-12-25 00:23:20
问题 Do Bing Maps credentials time out? My Bing Maps credentials, supplied like so (but with a bogus value shown here): <maps:Map x:Name="bingMap" Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" LandmarkTapped="BingMap_OnLandmarkTapped" Credentials="jkdfsjkfadjkdfsajkdfsasdfaasdf" /> ...have worked fine until today, and now I get this message across the map on my main page when I run my app: " The specified credentials are invalid. You can

Hyperlink in RichTextBlock makes the application crash on clicking

烂漫一生 提交于 2019-12-24 16:10:28
问题 in my Windows Phone 8.1 application I have a RichTextBlock with Hyperlinks in it. I've added some block of code in the click event of the Hyperlink. The problem is that whenever I click on the Hyperlink, my application crashes with an 'Access Violation' exception. This only happens when the keyboard is visible. If the keyboard is resigned then I do not get the exception. Also, this only happens on a WP8.1 device and not a W10 device. Below is my code. XAML <StackPanel> <RichTextBlock FontSize

Detect screen scaling factor in Windows 8.1 store apps

為{幸葍}努か 提交于 2019-12-24 14:15:43
问题 I am building up a string for the source attribute of some of my images in a Windows 8.1 store app. I need to detect the scale factor that the device requires so that I can append the correct .scale-n to the end of the string. These image sources are external to the app so I cannot rely on Windows' automatic scaling by just referencing the image without the scale-n part. So I need to know whether I should append scale-100, scale-140 or scale-180 to the image URL. How can I work this out in c#

How to check if an UI Element has reached the top of the page in windows phone

蹲街弑〆低调 提交于 2019-12-24 13:50:26
问题 There is a page which has a scroll viewer and some content which is dynamic in nature. In the middle of the page there is a grid. Whenever the user scrolls the page and grid reaches the top of the page i want a notifier. Basically i want to make the grid sticky on top whenever it reaches top of the page. Is there any way we can achieve this in Windows phone application. I dont want to calculate the offset because the content between top of the page and grid is dynamic. 回答1: This used to be

windows store app date picker null date

感情迁移 提交于 2019-12-24 13:47:31
问题 i need datepicker in window store app , windows 8, but i am not able to find any control, so i used this : jasonmitchell / WinRT-XAML-DatePicker https://github.com/jasonmitchell/WinRT-XAML-DatePicker/blob/master/Samples/WinRTDatePicker.Samples.sln but my problem is , by default it shows today date, that i don't want, i don't want to show any date, if user did not apply any date if anybody have idea to working with date-picker in windows metro application, that will be great, i know windows 8

Drag and Drop Items in desired position Listview WinRT

一笑奈何 提交于 2019-12-24 13:17:46
问题 I am able to implement drag and drop from one ListView to the other ListView with the help from this blogpost Windows 8 Drag Drop I am also able to reoder items in the same ListView CanReorderItems="True" But I am not able to drop an item from one ListView control to the other ListView control in the desired location. Is there any way to find out the position where the drop occurred so that I can insert at that location using Insert method. 回答1: http://www.codeproject.com/Articles/536519

Save a Grid and elements in it as a jpeg image - WinRT

六月ゝ 毕业季﹏ 提交于 2019-12-24 12:27:02
问题 I am stuck in my app. I have a grid with some elements in it. These elements are buttons, images and other controls like stackpanel and nested grids. I want to save what appears to the user as image on click of a button, but i dont know how to proceed on this. Can I write elements like grid and buttons onto a writable bitmap? Or is there some other way? In short I want to take a screen shot of my app screen when the user clicks the button. Please help. 回答1: Taking "screenshots" of winrt apps,