小编Moh*_*eeq的帖子

在customMessageBox中显示两个文本框?

好吧,我想在下一个旁边显示两个文本框customMessageBox.所以我编写了两个文本框.如下.我命名soora,并ayath为它.但在customMessageBox,我不能同时调用两个文本框.它显示错误.如何在下一个旁边显示两个文本框customMessageBox.我只是错误,它是形式Content = soora + ayath

我的C#代码;

TextBox soora = new TextBox();
                soora.Height = 72;
                soora.Width = 150;
                soora.MaxLength = 3;

TextBox ayath = new TextBox();
                ayath.Height = 72;
                ayath.Width = 150;
                ayath.MaxLength = 3;

CustomMessageBox messageBox = new CustomMessageBox()
            {
                Title = "GO TO",
                Content = soora + ayath,
                RightButtonContent = "Go !",
            };
Run Code Online (Sandbox Code Playgroud)

c# messagebox

5
推荐指数
1
解决办法
1944
查看次数

WP8:减少数据透视表页眉大小?

我需要减少item1数据透视表页面中的标题文字.但是,我不知道怎么做.无论如何要减少这个字体大小?

XAML代码;

<phone:PivotItem Header="item1">
            <Grid/>
        </phone:PivotItem>
Run Code Online (Sandbox Code Playgroud)

xaml windows-phone-8

4
推荐指数
1
解决办法
4103
查看次数

使用 Graph API 将文件 (&gt; 4MB) 上传到 OneDrive

我正在尝试使用 Graph API 将文件上传到 OneDrive。当我上传小于 4MB 的文件时,下面的代码工作正常,但当我尝试上传大于 4MB 的文件时它显示错误。我浏览了此文档,但仍然不确定如何才能完成这项工作。

以下是我对小于 4MB 的文件的工作代码。

using (var client = new HttpClient())
{
    var url = "https://graph.microsoft.com/v1.0" + $"/drives/{driveID}/items/{folderId}:/{originalFileName}:/content";
    client.DefaultRequestHeaders.Add("Authorization", "Bearer " + GetAccessToken());

    byte[] sContents = System.IO.File.ReadAllBytes(filePath);
    var content = new ByteArrayContent(sContents);

    var response = client.PutAsync(url, content).Result.Content.ReadAsStringAsync().Result;
}
Run Code Online (Sandbox Code Playgroud)

请帮忙

c# onedrive microsoft-graph-api

4
推荐指数
2
解决办法
4446
查看次数

WP - 如何以编程方式删除hyperlinkBut​​ton中的下划线?

我在C#中开发了一个hyperlinkBut​​ton.超链接中的下划线让我感到恼火.我不知道如何删除它.帮我删除下划线,我需要在C#中回答.[这是WP8应用程序]

    HyperlinkButton hyperlinkButton = new HyperlinkButton()
    {
        Content = "Click me",
        HorizontalAlignment = HorizontalAlignment.Left,
        NavigateUri = new Uri("http://my-link-com", UriKind.Absolute)
    };
Run Code Online (Sandbox Code Playgroud)

c# windows-phone-8

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

wp8:如何在windows手机商店中提交应用更新?

我已经提交了一个应用程序(v1.0),现在我想更新我的应用程序.在这里,我感到困惑.在Windows开发人员中心,有两个选项可供选择.

ReplaceAdd New.我应该给哪一个更新我现有的应用程序?

windows-phone windows-store

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

Xamarin Forms ListView - 异常?

我有一个非常简单的 ListView,它被编程为显示具有三个属性的列表。每当我尝试将集合绑定到该列表视图时,我都会收到 InvalidCast 异常。我不知道这有什么问题!

下面是我的 XAML

<ContentPage.Content>
    <StackLayout>
        <ListView x:Name="listAttendanceTiming" HasUnevenRows="True">
            <ListView.HeaderTemplate>
                <DataTemplate>
                    <ViewCell>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>

                            <Label Text="From Time" HorizontalTextAlignment="Start" FontSize="14"
                                   Grid.Row="0" Grid.Column="0" />

                            <Label Text="To Time" HorizontalTextAlignment="Start" FontSize="14"
                                   Grid.Row="0" Grid.Column="1" />

                            <Label Text="Remarks" HorizontalTextAlignment="Start" FontSize="14"
                                   Grid.Row="0" Grid.Column="2" />

                        </Grid>
                    </ViewCell>
                </DataTemplate>
            </ListView.HeaderTemplate>
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>

                            <Label Text="{Binding FromTimeString}" HorizontalTextAlignment="Start" FontSize="14" Grid.Column="0" /> …
Run Code Online (Sandbox Code Playgroud)

listview exception xamarin xamarin.forms

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

winjs:在Windows商店应用中实施率和评论?

我创建了buttonin appbarfor Rate and Review选项.我按如下方式制作了我的javascript;

document.getElementById("rate").addEventListener("click", function () { 
"ms-windows-store:REVIEW?PFN=[my-package-name]"
}); 
Run Code Online (Sandbox Code Playgroud)

但是,它不会导航到费率和审核页面.我知道只有从商店下载应用程序,我们才能对应用进行评分和评论.但是,我需要知道我的代码是对的吗?

一旦我上传到商店,它会工作吗?

winjs windows-store-apps

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

如何从 Xamarin Forms 项目调用 Android 和 iOS 项目中可用的方法?

我的 Xamarin Forms 页面中有一个按钮。每当单击按钮时,如果设备是 Android,我需要调用 Android 项目(在 MainActivity.cs 中)中的方法,如果设备是 iPhone,我需要调用 iOS 项目(在 AppDelegate.cs 中)中的方法。

有人可以帮我我该怎么做吗?

Xamarin Forms 中的方法

private async void BtnStart_Clicked(object sender, EventArgs e)
{
    //if Android call StartBeepWork in MainActivity.cs else call StartBeepWork in AppDelegate.cs
}
Run Code Online (Sandbox Code Playgroud)

MainActivity.cs和AppDelegate.cs中的方法

public void StartBeepWork()
{
    //process
}
Run Code Online (Sandbox Code Playgroud)

c# dependencies xamarin.forms

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