Click here to Skip to main content
15,912,578 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Login in MVVM Issue Pin
Mycroft Holmes21-Apr-13 23:59
professionalMycroft Holmes21-Apr-13 23:59 
GeneralRe: WPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 0:08
KishoreUHG22-Apr-13 0:08 
AnswerRe: WPF Login in MVVM Issue Pin
Wayne Gaylard22-Apr-13 1:44
professionalWayne Gaylard22-Apr-13 1:44 
AnswerRe: WPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 2:52
KishoreUHG22-Apr-13 2:52 
GeneralRe: WPF Login in MVVM Issue Pin
Mycroft Holmes22-Apr-13 12:59
professionalMycroft Holmes22-Apr-13 12:59 
QuestionWPF Simular to tree view Pin
Saksida Bojan21-Apr-13 9:52
Saksida Bojan21-Apr-13 9:52 
AnswerRe: WPF Simular to tree view Pin
Richard MacCutchan21-Apr-13 22:39
mveRichard MacCutchan21-Apr-13 22:39 
GeneralRe: WPF Simular to tree view Pin
Saksida Bojan2-May-13 7:41
Saksida Bojan2-May-13 7:41 
QuestionWPF User Controls - Interacting With Other Controls Pin
Kevin Marois19-Apr-13 5:10
professionalKevin Marois19-Apr-13 5:10 
AnswerRe: WPF User Controls - Interacting With Other Controls Pin
Mycroft Holmes19-Apr-13 13:19
professionalMycroft Holmes19-Apr-13 13:19 
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 

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.