metro

How can a Metro app in Windows 8 communicate with a backend desktop app on the same machine?

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In a situation where you have the UI frontend built using the new Metro style of apps for windows 8, and would like it to communicate with a .NET application running on the desktop on the same local machine (e.g. a windows service app). What forms of interprocess communication are available between the metro app and the desktop app? Thanks to Pavel Minaev of the Visual Studio team, who has provided some initial info here in a comment, quoted: According to Martyn Lovell, there isn't any deliberate mechanism for that, and some that could be

Metro Flyouts with MVVM

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use the Flyouts from MahApps.Metro in my application. So I added this part to my MainWindow.xaml: <controls:MetroWindow.Flyouts> <controls:FlyoutsControl ItemsSource="{Binding Flyouts}"> <controls:FlyoutsControl.ItemTemplate> <DataTemplate DataType="{x:Type viewModel:SettingsViewModel}"> <view:SettingsFlyout/> </DataTemplate> </controls:FlyoutsControl.ItemTemplate> </controls:FlyoutsControl> </controls:MetroWindow.Flyouts> The ItemTemplate will contain the mappings from my viewmodels to the views. Flyouts is an

What is metro bundler in react-native?

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am learning React Native. I can't find a proper documentation for metro bundler. So, I have few questions on it. As the name suggest it creates a bundle. But where is the bundle file located ? Is this same as webpack ? What is the use of that bundle file ? 回答1: A React Native app is a compiled app that is running some Javascript. Whenever you build and run your React Native project, a packager starts up called Metro. You’ve probably seen this output in your terminal before, letting your know the packager is running. The packager does a few

Windows 8 metro javascript app binding to a table

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having trouble binding a table in my javascript metro app instead of binding with the html provided in the template it puts in a load of divs and renders the json as a string. This is what I have: <tr id="tableRow" data-win-control="WinJS.Binding.Template"> <td data-win-bind="innerText: label"></td> <td data-win-bind="innerText: value"></td> <td></td> </tr> <table> <thead> <tr> <th>col1</th> <th>col2</th> <th>col3</th> </tr> </thead> <tbody class="topContent" data-win-control="WinJS.UI.ListView" data-win-options="{ selectionMode: 'none'

Unable to resolve module `@babel/runtime/helpers/interopRequireDefault`

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When creating a new react native project using the standard react-native init MyApp and running react-native run-ios for the first time I'm seeing the following error error: bundling failed: Error: Unable to resolve module `@babel/runtime/helpers/interopRequireDefault` from `/Users/chrisedgington/Development/ReactNative/SixNationsPredictor/index.js`: Module `@babel/runtime/helpers/interopRequireDefault` does not exist in the Haste module map This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the

Detect Desktop availability from Metro application (detect ARM, detect Windows RT system)

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is a question related to Get OS-Version in WinRT Metro App C# but not its duplicate. Is there any option to detect from a Metro application whether there is the desktop feature available on the system? I understand that detection of the OS version is not supported and that is OK imo. However my metro app needs to know whether there is a Desktop available on the system it is running on. By Desktop I mean extendable desktop - desktop, where 3rd party desktop applications can be installed. As we know ARM based units will have the desktop

metro-GettingStarted

匿名 (未验证) 提交于 2019-12-02 23:59:01
使用 npm 安装Metro: npm install -- save - dev metro metro - core 或者使用 yarn : yarn add -- dev metro metro - core 运行metro 可以使用 脚手架 运行Metro,也可以通过手动编码 手动编码运行 首先引入Metro模块: const Metro = require ( 'metro' ) ; 返回的Metro对象中,有如下几个重要的方法 方法 runMetro(config) 传入参数config,将会返回一个metro-server(译者注:被Promise包裹的metro-server),你可以将它的processRequest方法作为hook链接到合适的HTTP(S)服务器上。 'use strict' ; const http = require ( 'http' ) ; const Metro = require ( 'metro' ) ; // We first load the config from the file system Metro . loadConfig ( ) . then ( config => Metro . runMetro ( config ) ) . then ( ( metroBundlerServer ) => { const

驱动开发:ctrl+space映射到win+space[转]

北慕城南 提交于 2019-12-02 06:35:27
http://bbs.pediy.com/showthread.php?p=1212615 找了个键盘过滤程序,可惜作者不再更新,有一些bug,把ctrl+空格映射到win+空格 这个优点是可以支持metro界面。缺点是按的快了会激活win键其它组合。 如果不需要metro界面下使用,则可以使用AutoHotkey,这个可任意配置。方便。(这个metro好像可用。) 大才小用: 用AutoHotkey实现WIN8下输入法切换快捷键Ctrl+Space[转] http://my.oschina.net/andyfoo/blog/204400 32位:install_x64.bat 64位:install_x64.bat 下载 http://pan.baidu.com/s/1mg5DWmc,或直接到 作者发布的下载: http://bbs.pediy.com/showthread.php?p=1212615 来源: oschina 链接: https://my.oschina.net/u/1159582/blog/204403

@codeforces - 1056G@ Take Metro

冷暖自知 提交于 2019-12-01 13:44:49
目录 @description@ @solution@ @accepted code@ @details@ @description@ 环上有 n 个点,按顺时针顺序以 1 到 n 编号。其中 1~m 号点是红色的,m+1~n 号点时蓝色的。 一开始你位于点 s,并给定一个 t。 你需要重复以下步骤,直到 t = 0: 如果你所在结点为红色,顺时针移动 t 个点;否则逆时针移动 t 个点。然后 t 减一。 求最终所在的结点编号。 Input 第一行包含两个整数 n 和 m (3≤n≤10^5, 1≤m<n),含义见上。 第二行包含两个整数 s 和 t (1≤s≤n, 1≤t≤10^12),含义见上。 Output 仅输出一个整数,表示最终所在的结点编号。 Examples Input 10 4 3 1 Output 4 Input 10 4 3 5 Output 4 @solution@ 不难想到当 x > n 时,我们等价于走 x mod n 步(n 步相当于绕一个圈子)。 于是我们可以预先走 t mod n 步,之后每一次就走 n 步(即走 n, n - 1, ..., 1 步),重复 t / n 次。 我们可以预处理每个点走 n, n - 1, ..., 1 步所到达的目的地,然后就可以倍增了。 接着考虑怎么预处理每个点走 n, n - 1, ..., 1 步所到达的目的地

React Native 0.58 正式版中文更新日志

ぃ、小莉子 提交于 2019-12-01 04:46:16
原文地址: https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md#0580 本文由简书作者 凌宇之蓝 翻译,因本人水平有限,难免翻译有误,还望各位见谅。 ##[0.58.0] 欢迎阅读2019年1月发布的React Native。此版本有许多重大变化,我们特别提请您注意: 核心组件的流程类型的现代化和加强 中断对ScrollView,CameraRollView和SwipeableRow的更改,使其在某些方法中不再绑定到组件实例 支持WebKit中的相互TLS 从/ assets之外的目录提供的资产 针对意外行为的大量崩溃修复和解决方案 感谢那些对我们的发布候选人提供反馈的人。如果您有兴趣帮助评估我们的下一个版本,请在此处查看我们的跟踪问题。 ##新增 添加对publicPath的支持以启用来自不同位置的静态资产(0b31496 by @gdborton) ####Android 现在可以使用Android系统属性设置Bundler服务器主机,以便在多个应用程序或应用程序安装中更轻松地进行调试adb shell setprop metro.host(@stepanhruda的e02a154) Native Modules现在可以使用额外的属性(userInfo