microsoft-metro

Windows 8 metro app - animating a stack panel?

谁说我不能喝 提交于 2019-12-08 12:28:43
问题 I'm making a button that will disappear my stack panel: public void myButton (object sender, Windows.UI.Xaml.RoutedEventArgs e) { myStackPanel.Visibility = Visibility.Collapsed; } However, I would also like to perform a little animation when getting rid of that stack panel. Just a simple animation like fading from left to right. What codes should I add on my myButton? 回答1: You can use a FadeOutThemeAnimation , as described here: http://msdn.microsoft.com/en-us/library/windows/apps/xaml

Metro UI for WPF differences [closed]

会有一股神秘感。 提交于 2019-12-08 12:23:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Does exist any real difference among "Modern UI for WPF", "MahApps" and "Elysium"? What would you suggest? I can find any list of features, or comparison. Testing them all deeply would take some time, so if anyone has already through this, I'd really appreciate him to share experience. 回答1: I did similar mini

Metro interface in Android applications

做~自己de王妃 提交于 2019-12-08 11:10:45
问题 I am a beginner in Android programming. Is there somewhere a good tutorial for the development of modern interfaces in Android applications. How do metro interface in Android applications? For example: Or how to make the interface as in the Android Market application. 回答1: well, to have a multi page layout that you can swipe through, just use the ViewPager layout manager: http://developer.android.com/reference/android/support/v4/view/ViewPager.html for the tile layout a GridLayout (http:/

Exception on Extracting the Zip file in C#

天大地大妈咪最大 提交于 2019-12-08 10:11:52
问题 I am working on Extraction Code to Extract Zip file, Using C# in winrt. I am getting File from Local Drive here: StorageFile file = await KnownFolders.PicturesLibrary.GetFileAsync("dostoyevsky-poor-folk.zip"); Stream zipMemoryStream = await file.OpenStreamForReadAsync(); var folder = ApplicationData.Current.LocalFolder; // Create zip archive to access compressed files in memory stream using (ZipArchive zipArchive = new ZipArchive(zipMemoryStream, ZipArchiveMode.Read)) { // For each compressed

WinRT - Multiple WebViews inside ScrollViewer

前提是你 提交于 2019-12-08 10:02:23
问题 I have a ScrollViewer and WebViews inside. <ScrollViewer x:Name="ScrollViewer" HorizontalScrollMode="Disabled" VerticalScrollMode="Auto" VerticalScrollBarVisibility="Hidden"> <StackPanel Orientation="Vertical"> <WebView/> <WebView/> <WebView/> ... <WebView/> </StackPanel> </ScrollViewer> All of WebView's have height equals to its content (I implemented something like WrapContent for webView). Now, the thing is, that the webviews are bouncing (rubber-band effect) while scrolling and

how to set a focus of Listview item in Metro apps?

北城以北 提交于 2019-12-08 09:56:56
问题 I have a listview in my metro-app.I want to set a focus of last-item in my listview?How can I set a focus of a listview-item?Can anyone help me? Thank you. 回答1: You need to use the ListViews currentItem property: http://msdn.microsoft.com/en-us/library/windows/apps/hh700672.aspx Specifically, assign it an object with the index of the data item you want selected (from your data source), and the hasFocus and showFocus properties set: var yourListView = getYourListViewFromSomewhere();

Reading from file in a Windows RT Application [duplicate]

扶醉桌前 提交于 2019-12-08 09:07:10
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How to read a text file line by line Windows RT? I am trying to read from file line by line in C#. This is my code String filename = "apoel.txt"; System.IO.StreamReader file = new System.IO.StreamReader(filename); I followed instructions from an MSDN page and followed them exactly. The problem is I keep getting the errors The best overloaded method match for System.IO.StreamReader.StreamReader (System.IO.Stream)

SQLite with Metro - Unable to load sqlite3.dll

╄→尐↘猪︶ㄣ 提交于 2019-12-08 08:19:50
问题 I am not able to create a database using SQLite with my Metro application. Description: I continue to receive a runtime exception on a failure to load SQLite3.dll. Observation: I observed that the database directory never gets created in the app package's LocalState directory. After observing this, I literally implemented file path creation at runtime and dropped the sqlite3.dll in the intended location. Yet, I still receive an exception on failed to load SQLite3.dll. My CRUD code that

Windows 8 Audio playing in background

谁说胖子不能爱 提交于 2019-12-08 08:14:44
问题 I have read previous posts on this and documents by microsoft but cannot seem to get my app to run Sound in the background. It plays 100% but when ever the app is then suspended the music also stops. I have added "Background Tasks" declarations selecting Audio and my audio tag looks like this <audio id="musicplayr" msAudioCategory="BackgroundCapableMedia" controls="controls"><source src="song.mp3"/> </audio and finally my javascript includes the references to MediaControls var MediaControls =

windows 8 app roaming storage with custom class

懵懂的女人 提交于 2019-12-08 07:26:14
问题 I am learning programming in windows 8 with c#. I have worked through many tutorials (such as http://msdn.microsoft.com/en-us/library/windows/apps/hh986968.aspx) in the process and I am attempting to create a simple app showing data storage. All of the examples I have been able to find store only simple strings in roaming storage. Is there a way to store more complex data there? example: a List of a basic class Person with a name and age. I attempted to do it as: Saving the data: