Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Binding="{qc:Binding '$P==Verified',P={Binding Path=Idea.Status}}"
  2. Binding="{qc:Binding '$P=="Verified"',P={Binding Path=Idea.Status}}"
  3.  
  4. Binding="{Path=Idea.Status, Converter={qc:QuickConverter '$P == 'Verified''}}"
  5.  
  6. Binding="{qc:Binding '$P=='Verified'',P={Binding Path=Idea.Status}}"
  7.  
  8. <Grid>
  9. <Button Content="Hi There !" VerticalAlignment=" Center" HorizontalAlignment="Center" IsEnabled="{qc:MultiBinding '$P0 == $P1', P0={Binding Status}, P1={Binding Verified}}"></Button>
  10. </Grid>
  11.  
  12. public String Verified { get; set; }
  13.  
  14. public partial class MainWindow : Window,INotifyPropertyChanged
  15. {
  16. public String Verified = "Verified";
  17.  
  18. private String _status = "Verified";
  19. public String Status
  20. {
  21. get
  22. {
  23. return _status;
  24. }
  25.  
  26. set
  27. {
  28. if (_status == value)
  29. {
  30. return;
  31. }
  32.  
  33. _status = value;
  34. OnPropertyChanged();
  35. }
  36. }
  37. public MainWindow()
  38. {
  39. InitializeComponent();
  40.  
  41. }
  42.  
  43. public event PropertyChangedEventHandler PropertyChanged;
  44.  
  45. protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
  46. {
  47. PropertyChangedEventHandler handler = PropertyChanged;
  48. if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement