我花了一些时间在 SO 上的其他地方获取示例,以获取 Zxing Scanner 视图以与 ViewModel 一起使用。我能够触发扫描事件,但视觉效果已全部消失。我现在正在尝试在扫描仪视图周围添加自定义叠加层以再次添加视觉效果,但它们看起来有点疯狂。
我想要的外观是让整个屏幕显示相机视图,叠加视觉效果“叠加”在顶部。
以下课程:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="RMAGo.Features.Scanning.ScanningView"
xmlns:viewModelBase="clr-namespace:RMAGo.Framework;assembly=RMAGo"
viewModelBase:ViewModelLocator.AutoWireViewModel="true"
xmlns:zxing="clr-namespace:ZXing.Net.Mobile.Forms;assembly=ZXing.Net.Mobile.Forms"
Title="Scanning">
<zxing:ZXingDefaultOverlay
x:Name="scannerOverlay"
BottomText="Place the red line over the barcode you'd like to scan.">
<zxing:ZXingScannerView
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand"
IsScanning="{Binding IsScanning}"
IsAnalyzing="{Binding IsAnalyzing}"
Result="{Binding Result, Mode=TwoWay}"
ScanResultCommand="{Binding ScanCommand}" />
</zxing:ZXingDefaultOverlay>
</ContentPage>
Run Code Online (Sandbox Code Playgroud)
using RMAGo.Features.Common;
using RMAGo.Features.Navigation;
using RMAGo.Features.Settings;
using RMAGo.Framework;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using ZXing;
using ZXing.Mobile;
using ZXing.Net.Mobile.Forms;
namespace RMAGo.Features.Scanning …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用System.Diagnostics.Process对象通过aspx页面运行程序,说"robocopy.exe".
我的代码看起来像这样:
Process si = new Process();
si.StartInfo.UserName = "testuser";
si.StartInfo.Password = password;
si.StartInfo.FileName = "cmd.exe";
si.StartInfo.UseShellExecute = false;
si.StartInfo.Arguments = "c/ robocopy.exe";
si.Start();
string output = si.StandardOutput.ReadToEnd();
si.Close();
Label1.Text = output;
Run Code Online (Sandbox Code Playgroud)
问题是cmd.exe进程正确启动,但没有任何反应.roboxopy.exe的参数可能不会传递给cmd进程来运行!关于我可能做错什么的任何想法?
我还没有看到其他人尝试这样做。我基本上在“系列”集合中有一组数据可用于饼图,但是在图例中,而不是吐出这些货币值,我想对其进行“分类”。我以为我以前通过完成事件中的点名称的“旧式”更新来完成此工作,但是现在它似乎也在更改datalabel名称。这是我的小提琴/代码:
http://jsfiddle.net/Lyuo4f9g/1/
$(function () {
var chart;
$('#pie_chart').highcharts({
chart: {
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: null
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
showInLegend: true,
dataLabels: {
enabled: true,
defer: false,
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
style: {
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
}
}
}
},
colors: ['#77AEFF', '#94D664', '#E3DE51', '#D69567', '#D66664', '#aaaaab', '#a89375'],
legend: {
enabled: true
},
series: [{
type: 'pie',
data: [
['$64,351.70', …Run Code Online (Sandbox Code Playgroud)