microsoft-metro

Change background color of the tile programatically?

一世执手 提交于 2019-12-12 04:31:55
问题 I understand the background is actually an image (WideLogo.png/SmallLogo.png) and specified in the app manifest file. But is it possible to swap these with a new set of images programatically? Based on the information displayed on the tile, I want to change the background color of the tile. 回答1: You cannot edit the app manifest to change the default color. However, you can render an image with the appropriate background color and content then set it as tile. For more details on how to achieve

Open extern SQLite-Database in a Windows 8 Metro-App?

大城市里の小女人 提交于 2019-12-12 03:43:22
问题 I use the "Sqlite for Windows Runtime" and sqlite-net (just as described at http://timheuer.com/blog/archive/2012/08/07/updated-how-to-using-sqlite-from-windows-store-apps.aspx) to develop a Windows 8 Metro-App, just . If I want to open a Database at the Program-Directory is no problem: var dbPath = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "db.sqlite"); using (var db = new SQLite.SQLiteConnection(dbPath)) { ... } But when I want to use an extern Path like this:

Expression blend Animating multiple objects

孤街醉人 提交于 2019-12-12 03:33:40
问题 i am trying to create an animation in Expression blend for a Windows Store App. I want the animation to represent rainfall. The animations consists of 2 pictures and im trying to have 3 scenarions. 1) Lite rainfall: animate with a cloud and 1 drop as in picture 1. This works fine 2) Medium rainfall: Here i want to use the same cloud but add 1 more drop 3) Heavy rain: here i want to use the same cloud but add a third drop My problem is when i trye to create the two last scenarios it effects

XAML - How do I create a DoubleAnimationUsingKeyFrames dynamically and play the storyboard with VB?

杀马特。学长 韩版系。学妹 提交于 2019-12-12 02:22:09
问题 I have 3 polygons that I am trying to "light up" (changing opacity) based on dynamically code. For instance, I have a long string of random numbers (021200112). I'm trying to create a dynamic storyboard with keyframes. I'm testing it with a single polygon and I am getting a target error. Your help is appreciated!!! The polygons are created in the XAML (named Poly1, Poly2, Poly3). Here is my error when it tries to play the storyboard: WinRT information: Cannot resolve TargetProperty 1 on

Is “Assigned Access” [Windows 8.1 feature] possible in Windows 8 app?

点点圈 提交于 2019-12-12 01:51:26
问题 I want to create an app which will be deployed on tablets as a kiosk in a mall. I searched around for creating app with some restriction like it will be always open, only authenticated uses can close with swipe gesture or Alt+F4. I got one solution but it's related to Win 8.1 and I can't wait till that. So what I want is the app will be always on. Normal users will use the app, they can't close it. App can be close by only authenticated users with password. Anybody have any ideas to do these

MetroFramework in VB 2013, certain controls don't appear on form

帅比萌擦擦* 提交于 2019-12-12 01:48:51
问题 I installed the MetroFramework in VB 2013 via NuGet and I have it working partially. Some of the controls will not appear on the form: MetroTile, MetroTextBox, MetroTabControl, MetroStyleManager, MetroCheckBox, MetroLabel, MetroProgressBar, MetroScrollBar, MetroRadioButton, MetroProgressSpinner, MetroButton If I drag and drop a control onto the Form, its control will not appear... a gray box appears at the bottom of the design view. Then that control I attempted to put on the Form appears in

Why do I receive this error: The remote server returned an error: (417) Expectation Failed

别说谁变了你拦得住时间么 提交于 2019-12-12 01:37:03
问题 A friend show me this sample code to implement HTTP POST in C# and did work out in a WINFORM App: http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/ And implemented in a METRO APP: // this is what we are sending string post_data = "user=user@example.com&pass=example123"; // this is where we will send it string uri = "http://app.proceso.com.mx/win8/login"; // create a request HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri); request.Method =

How to set attributes without overriding the Mahapps theme?

拜拜、爱过 提交于 2019-12-12 00:27:10
问题 I'm using Mahapps for a GUI, however I want to set some attributes different than visual ones such as margins and verticalAlignment , so I added this to the UserControl.resources section <Style x:Key="{x:Type TextBox}" TargetType="TextBox" BasedOn="{StaticResource ResourceKey={x:Type TextBox}}"> <Setter Property="Margin" Value="2"/> <Setter Property="VerticalAlignment" Value="Center"/> </Style> However it overrides all the visual styles attributes of the TextBoxes, how can I just add those

Windows8 Push Notifications in Metro Application using HTML5 [closed]

徘徊边缘 提交于 2019-12-12 00:21:29
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have a metro application in which am trying to display notifications whenever my service get updated.I tried to read Metro App push

updating tiles in Win 8 Metro app

爱⌒轻易说出口 提交于 2019-12-11 23:29:40
问题 Hi in my metro app i have set the wide logo in appxmainfest file and then in page on button click i have written this code XmlDocument tileXml = TileUpdateManager.GetTemplateContent(TileTemplateType.TileWideText03); var textElement = tileXml.GetElementsByTagName("text")[0].AppendChild(tileXml.CreateTextNode("Hey This my Text Updated on Tile")); var tn = new TileNotification(tileXml); TileUpdateManager.CreateTileUpdaterForApplication().Update(tn); but at the last line it give me error. The