Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ContentPresenter HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- UseLayoutRounding="True"
- Content="{Binding Icon}"
- Margin="0,0,3,0"
- Visibility="{Binding Icon,
- Converter={StaticResource NullToVisibilityConverter}}">
- <ContentPresenter.Resources>
- <DataTemplate DataType="{x:Type tui:IconViewModel}">
- <tuicc:IconContentControl Width="{Binding Width}"
- Height="{Binding Height}"
- Margin="{Binding Margin}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- IconContainer="{Binding IconContainer, Mode=OneTime}"
- IconKey="{Binding Key}"
- Stretch="{Binding Stretch}"
- StrokeThickness="{Binding Thickness}">
- <tuicc:IconContentControl.Foreground>
- <MultiBinding Converter="{StaticResource ColorToSolidColorBrushWithInversionOnMouseOverConverter}">
- <Binding Path="Foreground"/>
- <Binding Path="Hover" />
- <Binding Path="IsMouseOver" RelativeSource="{RelativeSource AncestorType={x:Type Button}}"/>
- </MultiBinding>
- </tuicc:IconContentControl.Foreground>
- </tuicc:IconContentControl>
- </DataTemplate>
- </ContentPresenter.Resources>
- </ContentPresenter>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement