windows-8.1

Create a theme in Windows 8.1

浪尽此生 提交于 2020-01-02 19:55:03
问题 In Windows 8, you were able to create your own themes for your application (here's a tutorial). In Windows 8.1 Applications, themes are handled differently: you can change them at run-time and set a theme for a specific control in your XAML (if you don't want to apply the theme to the whole Application). For instance: <Grid x:Name="MainGrid" RequestedTheme="Dark"> However, I could not find a way to create my own themes. The property RequestedTheme takes an enumeration (its type is

Check if user added new music on Windows Phone 8.1

六月ゝ 毕业季﹏ 提交于 2020-01-02 05:46:09
问题 I'm trying to find out if a user added new music to the Music folder on the phone since app was last used. I try to do this by checking the DateModified of the Music folder (which updates correctly on the computer when adding new music to the phone): async void GetModifiedDate () { BasicProperties props = await KnownFolders.MusicLibrary.GetBasicPropertiesAsync(); Debug.WriteLine("DATEMODIFIED: " + props.DateModified.ToString()); } Unfortunately this returns: DATEMODIFIED: 1/1/1601 1:00:00 AM

Adjust the size of a XAML Grid.Background Image

我与影子孤独终老i 提交于 2020-01-01 09:43:45
问题 I have a simple piece of XAML that lays out a group of tiles, each with a background image icon. <Grid.Background> <ImageBrush Stretch="None" ImageSource="{Binding ImageSource}" AlignmentY="Center" AlignmentX="Center"/> </Grid.Background> This works fine, except the background image fills the square perfectly. I'm sure XAML thinks this is fine, but actually it needs to be about half the size to match spec. I tried several things including adding a border to the grid (which truncates the

Can't load WinRT Component unless I reference the project

*爱你&永不变心* 提交于 2019-12-31 22:42:10
问题 I'm running into an odd problem. I created a Windows Runtime Component (for Windows Store) that makes some legacy C/C++ code available to .NET via some C# wrapper classes. I wrote a test harness Store App (hereafter referred to as "test1") that references the WRC project (both projects in the same solution). It calls into the component and everything works fine. Next I take the following output files from the WRC project: MyWrtComponent.dll MyWrtComponent.exp MyWrtComponent.pdb MyWrtComponent

SQL Developer with JDK (64 bit) cannot find JVM

邮差的信 提交于 2019-12-31 08:47:14
问题 I just wasted one morning trying to get SQL developer to work on my current setup: OS: Windows 8.1 virtual machine running on mac via Parallels. No oracle client or instant client installed No Java installed The reproducible steps are I downloaded SQL Developer for Windows with JDK (all 64-bit) and unzipped it to C:/Program Files/. I double clicked on C:/Program Files/sqldeveloper/sqldeveloper.exe I get the following message: Unable to launch the Java Virtual Machine Located at path: C:

SQL Developer with JDK (64 bit) cannot find JVM

亡梦爱人 提交于 2019-12-31 08:46:05
问题 I just wasted one morning trying to get SQL developer to work on my current setup: OS: Windows 8.1 virtual machine running on mac via Parallels. No oracle client or instant client installed No Java installed The reproducible steps are I downloaded SQL Developer for Windows with JDK (all 64-bit) and unzipped it to C:/Program Files/. I double clicked on C:/Program Files/sqldeveloper/sqldeveloper.exe I get the following message: Unable to launch the Java Virtual Machine Located at path: C:

Universal App Windows Phone Orientation

不羁的心 提交于 2019-12-31 04:20:28
问题 Recently I was developing a Universal app for both the Windows Phone and Windows Store. In that app, I was trying to fix the Orientation of the App to Landscape. But in WinRT based apps of Windows Phone 8.1, I failed to find any Orientation option. In the Silverlight apps, we can fix the Orientations as we want. But is there any way to fix the Orientation to Landscape mode in the Universal Apps? It will be very helpful if someone help me in this regard. Thanks in advance. :) 回答1: Under WinRT

DisplayMemberPath gives an error when I try to use it to display the value of my dictionary in a Combo Box

本秂侑毒 提交于 2019-12-31 03:45:10
问题 Here is my Combo Box <ComboBox Height="40" VerticalAlignment="Stretch" x:Name="comboBox1" Grid.Column="1" FontSize="25"> </ComboBox> Here is my C# code var source = new Dictionary<string, double>(); source.Add("Item1", 0.4); source.Add("Item2", 0.3); source.Add("Item3", 0.1); source.Add("Item4", 0.1); var formateDSource = new Dictionary<string, string>(); foreach (var item in source) { formateDSource.Add(string.Format("[{0}, {1}]", item.Key, item.Value), item.Key); } comboBox1.ItemsSource =

How do I turn off windows 8.1 gestures and setting charm bar on my touch Screen

空扰寡人 提交于 2019-12-30 12:25:11
问题 I Have an Touch screen Dell and Windows 8.1 Single language installed, When I move my finger from Right edge towards the middle, Windows 8 will bring up setting charm bar OR when i move my finger from middle top edge towards down windows 8 hide my application and bring up start menu. This is a problem because I'am developing a Kiosk Application on WPF, and i can't let user see setting or close Kiosk application. I tried to disabled that, but couldn't, the easy solution would be to run on

How do I turn off windows 8.1 gestures and setting charm bar on my touch Screen

帅比萌擦擦* 提交于 2019-12-30 12:24:04
问题 I Have an Touch screen Dell and Windows 8.1 Single language installed, When I move my finger from Right edge towards the middle, Windows 8 will bring up setting charm bar OR when i move my finger from middle top edge towards down windows 8 hide my application and bring up start menu. This is a problem because I'am developing a Kiosk Application on WPF, and i can't let user see setting or close Kiosk application. I tried to disabled that, but couldn't, the easy solution would be to run on