小编Get*_*ong的帖子

选择器xamarin形式上的文本对齐

我在将扩展的选择器上的文本与中心对齐时遇到麻烦,我会以为是这样的...

在此处输入图片说明

这是模拟器上的选择器...

在此处输入图片说明

我如何将SIZE文本放置在中间但保持行扩大,也可以通过xaml代码而不是c#代码来完成

干杯。

c# android ios xamarin.forms

6
推荐指数
2
解决办法
4905
查看次数

operator*不能应用于decimal和double c#

我目前正在制作税务程序(研究项目),该程序读取CSV文件并生成人员和帐户余额列表,我需要从一个文本框中向下舍入2个小数位,然后将其添加到另一个文本框中.我附带的代码告诉我我不能用"*"我怎么用0.1的小数乘以?如果我这样做错了让我知道,干杯!

public partial class Form1 : Form
{
    //CSV ARRAY LISTS
    List<string> fullName = new List<string>();
    List<string> accBalance = new List<string>();

    int currentItem;
    int index;
    int counter = 0;

    decimal interestBalance = 0;
    decimal result;

    decimal interestRemainder = 0;
    double round = 0.1;


 private void interestBalanceBox_TextChanged(object sender, EventArgs e)
    {
        interestRemainder = decimal.Parse(interestBalanceBox.Text);
        interestRemainder = Math.Truncate(0.1 * interestRemainder) / 100;
        interestRemainderBox.Text = interestRemainder.ToString();

    }
Run Code Online (Sandbox Code Playgroud)

我们打算代表的程序就在这里!任何帮助将非常感激.

在此输入图像描述

c# tax

3
推荐指数
1
解决办法
4071
查看次数

标签 统计

c# ×2

android ×1

ios ×1

tax ×1

xamarin.forms ×1