본문 바로가기

Windows27

[WPF] & 등의 이스케이프 문자 처리 https://stackoverflow.com/questions/32348307/using-in-textblock-text-wpf 2021. 5. 13.
[WPF] 나중에 참고할 링크 Prism https://github.com/PrismLibrary/Prism PrismLibrary/Prism Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications.. - PrismLibrary/Prism github.com https://github.com/Live-Charts/Live-Charts Live-Charts/Live-Charts Simple, flexible, interactive & powerful charts, maps and gauges for .Net - Live-Char.. 2021. 5. 12.
커멘드 public partial class MainWindow : Window { public static RoutedCommand AlertCommand = new RoutedCommand(); public MainWindow() { InitializeComponent(); } private void CommandBinding_Executed(object sender, ExecutedRoutedEventArgs e) { System.Windows.MessageBox.Show("Hello world"); } private void CommandBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = this.checkbox... 2021. 5. 12.
데이터 바인딩 2 데이터 바인딩 1 https://hirudev.tistory.com/25 CollectionView public partial class MainWindow : Window { private ObservableCollection people; public MainWindow() { InitializeComponent(); people = new ObservableCollection( Enumerable.Range(0,10).Select((e, ret)=> new Person { Name = string.Format("test{0}", e), Age = e }) ); var v = CollectionViewSource.GetDefaultView(people); v.Filter = x => { var per.. 2021. 5. 11.
데이터 바인딩 1 단순한 바인딩 using System.ComponentModel; using System.Runtime.CompilerServices; namespace DataBindingSample01 { public class Person : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private void SetProperty(ref T field, T value, [CallerMemberName]string propertyName = null) { field = value; var h = this.PropertyChanged; if (h != null) { h(this, new PropertyChangedE.. 2021. 5. 9.