本文介绍了自定义silverlight中空组合框的异常消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

大家好,



我的应用程序中有combobox Incidenttype(组合框的标签)我正在进行验证,就好像有人没有在组合框,它会抛出IncidentType输入格式不正确的异常。



我想在事件类型中将Exception消息更改为Please Selcet值。

以下是我的代码。



Xaml



< toolkit:datafield isrequired =真正的label =事件类型verticalalignment =中心xmlns:toolkit =#unknown>

< simstagcombobox verticalalignment =中心horizo​​ntalalignment =左身高=25宽=220tagtypeid =9selectedvalue ={Binding IncidentType,Mode = TwoWay}>



代码:

公开属性IncidentType作为Guid

获取

返回_guid1

结束获取

设置(值为Guid)

_guid1 = value

结束集

结束财产



请提供一些非常紧急的解决方案。

Hi all,

I have combobox Incidenttype(label of combobox) in my application in which i am doing the validation like if someone has not chosen anything in the combobox,it will throw exception that IncidentType Input is not in correct format.

I want to change the Exception message to Please Selcet value in Incident type.
Below is my code .

Xaml

<toolkit:datafield isrequired="True" label="Incident Type" verticalalignment="Center" xmlns:toolkit="#unknown">
<simstagcombobox verticalalignment="Center" horizontalalignment="Left" height="25" width="220" tagtypeid="9" selectedvalue="{Binding IncidentType, Mode=TwoWay }">

Code:
Public Property IncidentType As Guid
Get
Return _guid1
End Get
Set(value As Guid)
_guid1 = value
End Set
End Property

Please provide some solution it very urgent.

推荐答案


这篇关于自定义silverlight中空组合框的异常消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 22:32