windows-8.1

W8.1 Live SDK 5.6 - LiveAuthClient.InitializeAsync System.NullReferenceException

空扰寡人 提交于 2019-12-24 06:42:50
问题 I'm developing a Windows 8.1 App (XAML/C#) with MVVM Light. I used to keep my LiveId inside the code just for debugging, but now it's time to do the LogIn. Currently i'm stuck with this piece of code: this.authClient = new LiveAuthClient(); LiveLoginResult loginResult = await this.authClient.InitializeAsync(scopes); It keeps giving me the error: An exception of type 'System.NullReferenceException' occurred in mscorlib.dll but was not handled in user code Additional information: Object

Strange behaviour of combobox in WinRT

谁说我不能喝 提交于 2019-12-24 03:15:20
问题 Comboboxes in WinRT have a default ItemsPanel of type CarouselPanel. This gives Windows 8.1 apps an "infinite loop" when scrolling combobox items. If you don't want this behaviour, there are a lot of blog posts explaining how to "fix it". For example this: Cancel WinRT ComboBox infinte scroll effect or: http://netitude.bc3tech.net/2013/04/12/windows-8s-combobox-and-the-carouselpanel/ The problem with this solution is that you get a weird behaviour on the first item in the combobox. How to

Access Data Inside HubSection

喜欢而已 提交于 2019-12-24 03:06:23
问题 Please, help me: If I have a TextBox in a HubSection, how I can get data from it if the Grid that I have the TextBox is in a DataTemplate?, <Hub Style="{StaticResource HubStyle1}"> <Hub.Header> <!-- Some stuff here --> </Hub.Header> <HubSection Width="731" Style="{StaticResource HubSectionStyle1}"> <DataTemplate> <Grid FlowDirection="RightToLeft" Margin=" 0,10,0,0" > <TextBox Grid.Row="0" Grid.Column="1" Style="{StaticResource AddTextBlockStyle}" /> </Grid> </DataTemplate> </HubSection> </Hub

Apache not working after Windows 8.1 upgrade [closed]

佐手、 提交于 2019-12-24 02:03:31
问题 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 6 years ago . After upgrading to Windows 8.1 from Windows 8 today Apache isn't working anymore. I had this problem when upgrading last time to Windows 8 from Windows 7 and had to re-install all my server components but I don't want to do that this time as I loose all the databases I had before. Does anyone know what I can do

How to debug unhandled win32 exception in WinJS Win8 store app

旧城冷巷雨未停 提交于 2019-12-24 01:55:22
问题 I have added Microsoft Ad SDK to my WinJS app and it crashes if I navigate away from my default.html page too fast. <script src="/MSAdvertisingJS/ads/ad.js"></script> If I comment out this line it does not crash. If I navigate to the default.html page and wait 10 seconds (possibly less) then it does NOT crash. It only crashes if I land on the page and immediately navigate to another page in the app. I set the destination page to be a blank html page and it still crashes. Any ideas how I can

C# CultureInfo.CurrentCulture says en_US but my Windows settings are set to South Africa

▼魔方 西西 提交于 2019-12-24 00:48:29
问题 I changed my Region/Location in my Windows 8.1 control panel to be South Africa. When I start up my app from Visual Studio 2013 and get the CultureInfo.CurrentUICulture it still says "en-US". public CultureInfo getCurrentCulture() { if (CultureInfo.DefaultThreadCurrentUICulture != null) { return CultureInfo.DefaulThreadCurrentUICulture; } else { return CultureInfo.CurrentUICulture; } } I've also tried CultureInfo.CurrentCulture instead of CurrentUICulture, but they are behaving the same way.

RelayCommand<PasswordBox> CanExecute never runs on Windows 8.1 store but it does on WPF

蹲街弑〆低调 提交于 2019-12-24 00:45:23
问题 I'm developing a Windows 8.1 store app with C# and .NET Frameowork 4.5.1. I'm trying to pass a PasswordBox as a parameter on a button Command . I've tested the following code on WPF and it works. MainViewModel class: public class MainViewModel : ViewModelBase { private RelayCommand<PasswordBox> doLoginCommand; /// <summary> /// The <see cref="UserName" /> property's name. /// </summary> public const string UserNamePropertyName = "UserName"; private string _userName = string.Empty; ///

ImportError: No module named 'matplotlib.pyplot'; matplotlib is not a package

落爺英雄遲暮 提交于 2019-12-23 21:05:23
问题 I am trying to use matplotlib for real-time analysis from ECG-signals, but the problem starts even before. I use the PyCharm IDE, currently working with Python 3.3 and my os is Windows 8.1. For Matplotlib I downloaded matplotlib and the dependencies (numpy, six, dateutil, pyparsing, pytz) from here (the versions for Python 3.3): http://www.lfd.uci.edu/~gohlke/pythonlibs/ and installed it in the Python33 folder. Now if I try: from matplotlib.pyplot import plot, show plot(range(10)) show() or:

Windows 8 Tile Icon for WPF application?

a 夏天 提交于 2019-12-23 20:33:53
问题 guys, first time posting - I'm a newbie to Windows development and VS (Using 2013 on Windows 8.1). I've created a very simple application by the action of File->New Project/WPF application. The application works great, and does exactly what I'd like it to do. I successfully added a large (128x128) icon and got it to look great on Windows 7's taskbar and start menu by right-clicking my project in the Solution Explorer and specifying my .ico file through there. I also added the 'Icon' property

How can I bind to a custom attached property in c# from code behind in a windows store app?

人走茶凉 提交于 2019-12-23 16:13:41
问题 I have an attached property I defined. namespace Controls { public class StateManager : DependencyObject { public static string GetVisualState(DependencyObject obj) { return (string)obj.GetValue(VisualStateProperty); } public static void SetVisualState(DependencyObject obj, string value) { obj.SetValue(VisualStateProperty, value); } // Using a DependencyProperty as the backing store for VisualStateProperty. This enables animation, styling, binding, etc... public static readonly