Powiedział, iż nie jestem odpowiedni na ojca ale ja wychowałem te dzieci od samego początku.
Gdy moja siostra Kasia zaczęła rodzić, byłem na drugim końcu województwa na zjeździe motocyklowym. Błagała, żebym nie odwoływał wyjazdu, mówiła, iż wszystko będzie dobrze, iż jeszcze jest czas.
Czasu, którego zabrakło.
Przyszły na świat trzy piękne maluchy a jej zabrakło.
Pamiętam, jak trzymałem te małe zawiniątka, które wierciły się na oddziale intensywnej terapii noworodka. Pachniałem jeszcze benzyną i skórzaną kurtką. Nie miałem planu, ani pojęcia, co robić. Ale spojrzałem na nie Zosię, Alę i Krzysia i wiedziałem: nie odejdę stąd.
Zamieniłem nocne przejażdżki na nocne karmienia. Chłopaki z warsztatu wyręczali mnie w dyżurach, żebym zdążył ode—
title: „ListBox Styles and Templates | Microsoft Docs”
ms.custom: „”
ms.date: „03/30/2017”
ms.prod: „.net-framework-4.6”
ms.reviewer: „”
ms.suite: „”
ms.technology:
– „dotnet-wpf”
ms.tgt_pltfrm: „”
ms.topic: „article”
helpviewer_keywords:
– „styles [WPF], ListBox”
– „templates [WPF], ListBox”
– „ControlTemplate [WPF], ListBox”
– „states [WPF], ListBox”
– „ListBox [WPF], styles and templates”
– „parts [WPF], ListBox”
ms.assetid: fc5764cb-c27b-495b-88d4-d969a8213ccb
caps.latest.revision: 22
author: dotnet-bot
ms.author: dotnetcontent
manager: „wpickett”
—
# ListBox Styles and Templates
This topic describes the styles and templates for the control. You can modify the default to give the control a unique appearance. For more information, see [Customizing the Appearance of an Existing Control by Creating a ControlTemplate](../../../../docs/framework/wpf/controls/customizing-the-appearance-of-an-existing-control.md).
## ListBox Parts
The control does not have any named parts.
When you create a for a , your template might contain an within a . (The displays each item in the ; the enables scrolling within the control). If the is not the direct child of the , you must give the the name, `ItemsPresenter`.
## ListBox States
The following table lists the visual states for the control.
|VisualState Name|VisualStateGroup Name|Description|
|———————-|—————————|—————–|
|Valid|ValidationStates|The control uses the class and the attached property is `false`.|
|InvalidFocused|ValidationStates|The attached property is `true` has the control has focus.|
|InvalidUnfocused|ValidationStates|The attached property is `true` has the control does not have focus.|
## ListBoxItem Parts
The control does not have any named parts.
## ListBoxItem States
The following table lists the visual states for the control.
|VisualState Name|VisualStateGroup Name|Description|
|———————-|—————————|—————–|
|Normal|CommonStates|The default state.|
|MouseOver|CommonStates|The mouse pointer is positioned over the control.|
|Disabled|CommonStates|The item is disabled.|
|Focused|FocusStates|The item has focus.|
|Unfocused|FocusStates|The item does not have focus.|
|NotSelected|SelectionStates|The item is not selected.|
|Selected|SelectionStates|The item is currently selected.|
|SelectedUnfocused|SelectionStates|The item is selected but does not have focus.|
|Valid|ValidationStates|The control uses the class and the attached property is `false`.|
|InvalidFocused|ValidationStates|The attached property is `true` has the control has focus.|
|InvalidUnfocused|ValidationStates|The attached property is `true` has the control does not have focus.|
## ListBox ControlTemplate Example
The following example shows how to define a for the and controls.
[!code-xml[ControlTemplateExamples#ListBox](../../../../samples/snippets/csharp/VS_Snippets_Wpf/ControlTemplateExamples/CS/resources/listbox.xaml#listbox)]
The preceding example uses one or more of the following resources.
[!code-xml[ControlTemplateExamples#Resources](../../../../samples/snippets/csharp/VS_Snippets_Wpf/ControlTemplateExamples/CS/resources/shared.xaml#resources)]
For the complete sample, see [Styling with ControlTemplates Sample](http://go.microsoft.com/fwlink/?LinkID=160041).
## See Also
[Control Styles and Templates](../../../../docs/framework/wpf/controls/control-styles-and-templates.md)
[Control Customization](../../../../docs/framework/wpf/controls/control-customization.md)
[Styling and Templating](../../../../docs/framework/wpf/controls/styling-and-templating.md)
[Customizing the Appearance of an Existing Control by Creating a ControlTemplate](../../../../docs/framework/wpf/controls/customizing-the-appearance-of-an-existing-control.md)



![Angina w ciąży [objawy, leczenie, wpływ na dziecko]](https://www.rodzice.pl/wp-content/uploads/2021/10/angina-w-ciazy-objawy-leczenie-wplyw-na-dziecko-1.jpg)

