WPF
- WPF depprop z jinych vlaken cteni/zapis: http://www.insystusa.com/Blog/2009/04/27/ThreadSafeDependencyProperties.aspx
- Properties a Binding na ne http://www.hanselman.com/blog/LearningWPFWithBabySmashConfigurationWithDataBinding.aspx
XAML
Obrázky v ručně čteném XAMLu jako Resource, a v kódu nastavit Application.ResourceAssembly na assembly která resource obsahuje.
ActualWidth je nulový
That this is due to the fact that the measure and arrange pass has not executed yet. However, rather than force another layout pass (expensive), you can just wait until your control has loaded before accessing the ActualXxx properties:
public MyWindow() { Loaded += delegate { // access ActualWidth and ActualHeight here }; }
programovani/wpf.txt · Poslední úprava: 26.03.2015 16:55 autor: vm