1

Surface 2.0 アプリケーション用のタッチ対応メッセージ ボックスが必要です。標準MessageBox.Show()は、マウスをクリックして確認する必要があります。

それは私が望むものではありません。

と小さく書けましたUserControlが、既に組み込まれているものがあるのだろうか。

4

3 に答える 3

1

MessageDialogクラスを使用してダイアログを表します。

于 2012-09-16T07:46:12.767 に答える
1

1時間近く探した後、自分でやった^^

public partial class MsgBoxTouch : SurfaceWindow
    {
        public TouchBox1()
        {
            this.InitializeComponent();                

        }

        private void Button_TouchEnter(object sender, TouchEventArgs e)
        {
            this.Close();
        }


    }
}

<s:SurfaceWindow x:Class="MsgBoxTouch"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008"
    mc:Ignorable="d" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 


    WindowState="Normal" WindowStyle="None" Width="300" Height="300">

    <Grid x:Name="Layout">

        <Button Content="OK" Height="50" TouchEnter="Button_TouchEnter">

        </Button>
    </Grid>
</s:SurfaceWindow>
于 2012-09-16T11:59:01.067 に答える
0

blip-surfaceは MessageBox ユーザー コントロールを使用します。おそらくそれに似たものを使用できます。

http://code.google.com/p/blip-surface/source/browse/trunk/Blip/UI/Controls/?r=28

于 2012-09-16T07:52:30.870 に答える