Click here to Skip to main content
15,888,803 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF User Controls - Interacting With Other Controls Pin
Kevin Marois19-Apr-13 13:21
professionalKevin Marois19-Apr-13 13:21 
GeneralRe: WPF User Controls - Interacting With Other Controls Pin
Mycroft Holmes19-Apr-13 13:26
professionalMycroft Holmes19-Apr-13 13:26 
GeneralRe: WPF User Controls - Interacting With Other Controls Pin
_Maxxx_7-May-13 20:09
professional_Maxxx_7-May-13 20:09 
GeneralRe: WPF User Controls - Interacting With Other Controls Pin
SledgeHammer0124-Apr-13 8:48
SledgeHammer0124-Apr-13 8:48 
GeneralRe: WPF User Controls - Interacting With Other Controls Pin
Mycroft Holmes24-Apr-13 12:25
professionalMycroft Holmes24-Apr-13 12:25 
GeneralRe: WPF User Controls - Interacting With Other Controls Pin
Kevin Marois25-Apr-13 10:54
professionalKevin Marois25-Apr-13 10:54 
GeneralRe: WPF User Controls - Interacting With Other Controls Pin
_Maxxx_7-May-13 20:20
professional_Maxxx_7-May-13 20:20 
QuestionData binding validation Pin
columbos1492715-Apr-13 22:13
columbos1492715-Apr-13 22:13 
Hello,
I have a tab control with two tabs in it,in each tab i have text boxes, the data of the text boxes is being validated using the IDataErrorInfo interface.
If there is an invalid data i am rendering a red ellipsis and a tool tip box using this XAML code:
XML
<!--The template which renders a TextBox when it contains invalid data.-->
<ControlTemplate x:Key="TextBoxErrorTemplate">
  <DockPanel>
    <Ellipse DockPanel.Dock="Right"  Margin="2,0" ToolTip="Contains invalid data" Width="10" Height="10" >
      <Ellipse.Fill>
        <LinearGradientBrush>
          <GradientStop Color="#11FF1111" Offset="0" />
          <GradientStop Color="#FFFF0000" Offset="1" />
        </LinearGradientBrush>
      </Ellipse.Fill>
    </Ellipse>
<!--This placeholder occupies where the TextBox will appear.-->
    <AdornedElementPlaceholder />
  </DockPanel>
</ControlTemplate>


Text box XAML:
XML
<!--ID text box-->
<TextBox.Text>
   <Binding Path="ID" UpdateSourceTrigger="PropertyChanged">                                             <Binding.ValidationRules>                                                <DataErrorValidationRule/>                                            </Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>



The problem is when i go to another tab and then come back again the red Ellipses are disappear.

Help any one?

Thanks
AnswerRe: Data binding validation Pin
Nupur S. Tiwari16-Apr-13 19:36
Nupur S. Tiwari16-Apr-13 19:36 
GeneralRe: Data binding validation Pin
columbos1492720-Apr-13 2:18
columbos1492720-Apr-13 2:18 
QuestionExtending wpf print dialog Pin
Andreas X15-Apr-13 20:15
professionalAndreas X15-Apr-13 20:15 
AnswerRe: Extending wpf print dialog Pin
Kenneth Haugland17-Apr-13 21:00
mvaKenneth Haugland17-Apr-13 21:00 
GeneralRe: Extending wpf print dialog Pin
Andreas X17-Apr-13 22:38
professionalAndreas X17-Apr-13 22:38 
GeneralRe: Extending wpf print dialog Pin
Kenneth Haugland17-Apr-13 23:14
mvaKenneth Haugland17-Apr-13 23:14 
GeneralRe: Extending wpf print dialog Pin
Andreas X18-Apr-13 0:27
professionalAndreas X18-Apr-13 0:27 
QuestionThe best way to display live log output to a WPF windows. Pin
Daudaka15-Apr-13 5:25
Daudaka15-Apr-13 5:25 
AnswerRe: The best way to display live log output to a WPF windows. Pin
Mycroft Holmes15-Apr-13 12:47
professionalMycroft Holmes15-Apr-13 12:47 
AnswerRe: The best way to display live log output to a WPF windows. Pin
Andreas X15-Apr-13 21:34
professionalAndreas X15-Apr-13 21:34 
QuestionButton sizes become small in a stackpanel Pin
Vimalsoft(Pty) Ltd13-Apr-13 22:52
professionalVimalsoft(Pty) Ltd13-Apr-13 22:52 
AnswerRe: Button sizes become small in a stackpanel Pin
Abhishek Sur20-Apr-13 1:46
professionalAbhishek Sur20-Apr-13 1:46 
GeneralRe: Button sizes become small in a stackpanel Pin
Vimalsoft(Pty) Ltd21-Apr-13 3:08
professionalVimalsoft(Pty) Ltd21-Apr-13 3:08 
GeneralRe: Button sizes become small in a stackpanel Pin
Abhishek Sur21-Apr-13 11:20
professionalAbhishek Sur21-Apr-13 11:20 
GeneralRe: Button sizes become small in a stackpanel Pin
Vimalsoft(Pty) Ltd22-Apr-13 1:27
professionalVimalsoft(Pty) Ltd22-Apr-13 1:27 
Questionlistview with many textboxes Pin
vaishali thaker11-Apr-13 22:50
vaishali thaker11-Apr-13 22:50 
AnswerRe: listview with many textboxes Pin
Abhinav S12-Apr-13 0:01
Abhinav S12-Apr-13 0:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.