..
http://www.vr-online.ru/blog/osvaivaem-wpf-vmeste-chast3-ispolzuem-resursy-i-kisti-brushes-6778
:
5. WPF.
: WPF.
: WPF VS 2013 C#.
: 4 .
. WPF
, . . , .
WPF .
: , !!!
4. , .
, . .
, , , . .1. .
1. .
, , , . , Background , . Transparent. :
, , , Background Transparent. , , . .2.
|
|
Ads by Radio CanyonAd Options
2. .
, , : Margin, Backgroud, BorderBrush. , . .
, , . . :
, , TargetType Button. , . 3 Settera, Setter . , Setter Margin 4px. , , Setter Property, , Value. , Margin=4px, Background=Transparent BorderBrush=Transparent. . Xaml :
, , , Margin, Background, BorderBrush. , .
, , , . , , ? . Style, , :
, .
, , . , TargetType .
, , , . , , , . , , , Backgrounda . Xaml :
|
|
linearPanelBrush. , , . Setter , , . Background, . , , , Style . :
Ok
. .3. . , , , .
3. .
Setterax (Triggers). , ,
, . , .
Duration. , . Opacity , . 0, . , AutoReverse false, .
, . , , , .