Пример #1
0
 private static void Foreground_Changed(DependencyObject obj)
 {
     foreach (var child in Gui_.AllVisualChildren(obj).OfType <TextBlock>())
     {
         child.Foreground = GetForeground(obj);
     }
 }
Пример #2
0
 private static void VerticalContentAlignment_Changed(DependencyObject obj)
 {
     foreach (var child in Gui_.AllVisualChildren(obj).OfType <Control>())
     {
         child.VerticalContentAlignment = GetVerticalContentAlignment(obj);
     }
 }