windows-runtime

How to center Popup in Metro style app in c#

谁说胖子不能爱 提交于 2019-12-06 07:54:25
Is there any way to show a Popup in Windows 8 Metro centered? Setting VerticalAlignment and HorizontalAlignment to "Center", and VerticsalOffset and HorizontalOffset to 0 causes howing popup with left-up corner in the center of the screen. Is there any way to do it nicely? To make this problem harder, this popup has different size in snapped view, where is also should be centered. Any thoughts? Hope this helps, how about placing the popup in a canvas then manipulate the canvas... XAML <Canvas x:Name="myCanvas" HorizontalAlignment="Center" Height="127" VerticalAlignment="Center" Width="191"/>

Unable to navigate to page after extended splash in Windows 8 application

六眼飞鱼酱① 提交于 2019-12-06 07:50:12
I've created extended splash screen following guide offered by Microsoft. The screen shows off, data loads, but then the app doesn't navigate to landing page. How is this possible? ExtendedSplash.xaml.cs public sealed partial class ExtendedSplash { public ExtendedSplash(SplashScreen splash) { this.InitializeComponent(); // Position the extended splash screen image in the same location as the splash screen image. this.extendedSplashImage.SetValue(Canvas.LeftProperty, splash.ImageLocation.X); this.extendedSplashImage.SetValue(Canvas.TopProperty, splash.ImageLocation.Y); this.extendedSplashImage

state handling in windows 8 using mvvmlight

元气小坏坏 提交于 2019-12-06 07:49:39
Implementation of state handling in windows 8 using mvvmlight Is there any method avilable in mvvmligt to manage states in WinRT? How I can duplicate the functionality of default Suspensionmanager by using WinRT? And the second one is about managing navigation cycle ie if I navigated from page A - > B. and the go for suspend and shutdown state. When I re start the application in need to open page B. and while presses back key I need to load A. How I can effectively implement this using MVVM light in my WinRT application? I wrote this originally for WP7 and have been updating for Win8 RT. It

Display a 'loading' image till loading original images in 'image gallery app' - metro style

不羁岁月 提交于 2019-12-06 07:26:57
I am developing an image gallery application .. Its loading images from the internet.. What i am doing is collecting image url into an array and bind it into a list view .. Its works fine.. But my problem is the images shows a cross mark ( 'X') till loading the images. What i am expecting is Display a loading image for each emage untill loads the original image if 1 is not possible, how can i remove the cross mark? You cannot remove the 'X' mark as that is a browser-specific feature. You could, however, set your images to have a background image of your loading image. simple example: <img src=

How to start a MetroApp directly in Snapped mode? [duplicate]

99封情书 提交于 2019-12-06 07:21:14
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Force WinRT app to snapped view Is it possible to start a MetroApp directly in snapped mode? I want to call another App by Protocol, an the App should open in Snapped mode. The call to the App by Protocol is not a problem, it works fine, but the App opens in Fullscreen or Main-Content Mode. I have'nt found any configuration to say "start on Sidebar". Please Help! 回答1: As of now the answer is no. Since the

Possible to use Toast Notifications from a regular .Net application?

[亡魂溺海] 提交于 2019-12-06 07:15:30
问题 I've recently been checking out the samples for WinRT(C#) for Windows Store. One really cool thing I saw was the Toast Notifications. I can think of a million different uses for them, but not a single one that would also be suitable as a windows store application. So, is it possible to use Toast Notifications in Windows 8 from regular .Net desktop applications? 回答1: Yes you can. Look here for more information. 来源: https://stackoverflow.com/questions/12431523/possible-to-use-toast

XAML grouped GridView/Semantic Zoom not displaying all children?

[亡魂溺海] 提交于 2019-12-06 07:06:39
问题 I'm attempting to use the XAML C# Grouped GridView sample to make my SemanticZoom work in a XAML C# Windows 8 app. The problem is, for some reason it's displaying the correct header (the category, in this case), but it's not showing all the items under the header (it's only showing one for each, when I have up to 6 items in some of them). Here's the SemanticZoom's XAML code (note that I left out the ZoomedOutView for brevity, and since it's working perfectly): <SemanticZoom x:Name="boardZoom"

Await blocks the UI Thread, Network Related

我们两清 提交于 2019-12-06 06:53:02
问题 I have this piece of code in my Windows Store app where I handle a button click. But somehow, UI freezes when I click this button on rare occasion. It mostly happens when I connect to a Wi-Fi network further away than the one I usually connect to. Taking into consideration that I download a RSS feed from the internet, it is most probably related to my using of async/await keywords. If I correctly understood the mechanics of async/await, UI thread should not block at all. Am I missing

DatagramSocket cannot receive data from UdpClient

♀尐吖头ヾ 提交于 2019-12-06 06:46:05
问题 I am making an Win RT app that connects to a desktop app and they start to communicate in UDP and TCP. I have successfully implemented TCP communication in that I can send from Win RT to Desktop and send from Desktop to Win RT. using StreamSocket on Win RT and TcpListener on desktop. I also made it to send Udp data from Win RT to desktop without any problem. But I can't receive data's sent from desktop to Win RT. I use the following code and I don't see any problem with that but there must

How to display a Windows 8 metro style tile within an app?

牧云@^-^@ 提交于 2019-12-06 06:36:51
Windows 8 metro style app tiles are created based on pre-defined xml templates (found here ). Is there any way to hook up to Windows' rendering of the tile to allow a tile preview within an app? In my app I would like to offer the user a subset of the tile templates listed in the above link and let the user customize the tile content. A live preview of the customized tile rendered within my app would greatly improve the user experience. you should look into HubTile . I don't know any free control's right now, but Telerik and Syncfusion have HubTile control You can't get access to real Windows