Common classes for KsWare Presentation Framework for View
- VisibilityBinding
- RootBindingExtension
- RootElementExtension
- SharedWidth (attached behavior)
- Design.Properties
- BindingProxy
Provides support for a shared width (attached property)
example: Both Labels will have same width (largest width of the group).
xmlns:ab="clr-namespace:KsWare.Presentation.ViewFramework.AttachedBehavior;assembly=KsWare.Presentation"
<Label Content="longest text" ab:SharedWidth.Group="swGroupA"/>
<Label Content="short" ab:SharedWidth.Group="swGroupA"/>
Provides property values for design time.
<TextBox Design.Background="Aqua" Design.Visibility="Hidden">
<Design.Properties>
<DesignProperty Name="Text" Value="Visible" />
<DesignProperty Name="BorderBrush" Value="#FFFF0000" />
<DesignProperty Name="Width" Value="10cm" />
<DesignProperty Name="BorderThickness" Value="1,2,3,4" />
</Design.Properties>
</TextBox>
<UserControl.Resources>
<BindingProxy x:Key="DataContextProxy" Value="{Binding}"/>
</UserControl.Resources>
<Button
Command="{Binding Source={StaticResource DataContextProxy}, Path=Value.DoAnythingCommand}"
/>
Master | Develop | Kux | |
---|---|---|---|
Build | |||
Test | |||
Nuget |