windows-8.1

ObservationCollection that implements ISupportIncrementalLoading within ViewModel inside PCL using MVVM architecture for WinRT & WP8/WinPRT support

邮差的信 提交于 2020-01-12 03:39:08
问题 I have my ViewModels inside a PCL, because I'm developing a Windows 8.1 and Windows Phone app in parallel. I have a list of things inside my ViewModel as an ObservableCollection. I have a GridView inside a Page inside a Windows 8.1 project. I wish to incrementally load items from my list of things in my ViewModel. Normally I would implement ISupportIncrementalLoading inside a custom subclass of ObservableCollection, however, given that my ViewModel is inside a PCL, ISupportIncrementalLoading

how to get today's modified folders in a directory using batch file

前提是你 提交于 2020-01-11 13:48:28
问题 I have a folder " Projects " and it contains multiple folders for different projects in it, I want to back-up that folder which has some modifications today( it can be single project or can be more than one). set ProjectFolder=D:\Projects for %%o IN (%ProjectFolder%/*.*) DO ( echo %%o set Project1Folder=%%o xcopy "%Project1Folder%\*.*" "%NetworkFolder%\%Project1Folder%\backup_%CurrentDate%\" /s/h/e/k/f/c ) And how to pass foldername (modified project) to be be copied in a loop. Note :- trying

List and connect to Bluetooth devices

夙愿已清 提交于 2020-01-11 12:10:09
问题 I'm tryiing to make my Windows tablet app communicate with an other device via Bluetooth. First I want to scan for devices, then i want to connect to the choosen device. I've made a simple test app: Blank front page and added a button and a listboxto it. Then I've tried the following code witch I've forund else where here on SO: ListBox1.Items.Clear(); var devices = await DeviceInformation.FindAllAsync(RfcommDeviceService.GetDeviceSelector(RfcommServiceId.SerialPort)); foreach (var device in

Halt / stop a ScrollViewer from scrolling when using a FlipView

风流意气都作罢 提交于 2020-01-07 06:43:40
问题 Moving on from this question where I wanted to fire an event when a FlipView changed even if manipulations wren't complete. I have VerticalSnapPointsType set to SnapPointsType.MandatorySingle and once the event, from the initial question, fires, I'd like to halt scrolling. Currently the event fires every time the FlipView is changed but right when the animation stops, the user can flip again, even if I set IsHitTestVisible to false. If I CancelDirectManipulations() I get the desired effect

Halt / stop a ScrollViewer from scrolling when using a FlipView

痴心易碎 提交于 2020-01-07 06:43:13
问题 Moving on from this question where I wanted to fire an event when a FlipView changed even if manipulations wren't complete. I have VerticalSnapPointsType set to SnapPointsType.MandatorySingle and once the event, from the initial question, fires, I'd like to halt scrolling. Currently the event fires every time the FlipView is changed but right when the animation stops, the user can flip again, even if I set IsHitTestVisible to false. If I CancelDirectManipulations() I get the desired effect

Tables I create that start with “dotNetChat_” disappear after restarting MySQL

二次信任 提交于 2020-01-06 23:47:36
问题 In light of new information, I have created a new question here that better explains the problem that I aim to fix. I am trying to create a collection of tables in MySQL that all start with the prefrix dotNetChat_ . Originally I had these tables set up in another server and everything was working fine despite the fact that they are configured with the same my.ini file. Whenever I first create these tables, they appear normally, but after restarting MySQL, they "disappear", and try to load the

Adcontrol does not show ads with pub center App id and Unit id

拜拜、爱过 提交于 2020-01-06 20:25:11
问题 I have an Adcontrol which works fine with test values given by Msdn but does not shows ads with actual values.(Windows Store App) 回答1: This could be a perfectly normal behaviour if there is no ad to display. You can suscribe to the ErrorOccured event of the AdControl and check the Error property to confirm that by seeing a "No fill" message. 来源: https://stackoverflow.com/questions/34148828/adcontrol-does-not-show-ads-with-pub-center-app-id-and-unit-id

Use RelayCommand with not only buttons

佐手、 提交于 2020-01-06 17:59:51
问题 I am using MVVM Light in my project and I am wondering if there is any way to use RelayCommand with all controls (ListView or Grid, for example). Here is my current code: private void Item_Tapped(object sender, TappedRoutedEventArgs e) { var currentItem = (TechItem)GridControl.SelectedItem; if(currentItem != null) Frame.Navigate(typeof(TechItem), currentItem); } I want to move this code to Model and use RelayCommand, but the ListView, Grid and other controls don't have Command and

Custom Size in Windows 8.1 Simulator

自作多情 提交于 2020-01-06 15:56:26
问题 I have been searching this over the web for 2 days now and I am still unable to get my hands on something helpful. I have to run my windows 8.1 app on large device (i-e 80 inches) having 4k(3840 X 2160) resolution. The max resolution I have on the windows simulator is 2560 x 1440 (i-e 27 inches). Is there any way that I can add custom screen size/resolution to windows simulator? or is there any other option available where I can test my app on 4k resolution? PS: I don't have a 4k device with

How to retrieve Ethernet adapter name in Windows 8.1 batch script

亡梦爱人 提交于 2020-01-06 14:11:25
问题 I'm looking to pull the Ethernet adapter name out of ipconfig to use in a batch script which will create a static ip to that adapter name using netsh. Ethernet adapter Ethernet0: Connection-specific DNS Suffix . : foo.bar.com IPv4 Address. . . . . . . . . . . : 10.0.0.123 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 10.0.0.456 What I am trying to do is pull out Ethernet0 and use that in the following netsh command (net_city and net_lab are inputted by