Skip to content

KsWare/KsWare.Presentation.ViewFramework.Common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KsWare.Presentation.ViewFramework.Common

Common classes for KsWare Presentation Framework for View

VisibilityBinding

RootBindingExtension

RootElementExtension

SharedWidth

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"/>

Design.Properties

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>

BindingProxy

<UserControl.Resources>
   <BindingProxy x:Key="DataContextProxy" Value="{Binding}"/>
</UserControl.Resources>
<Button 
    Command="{Binding Source={StaticResource DataContextProxy}, Path=Value.DoAnythingCommand}"
/>
Master Develop Kux
Build Build status Build status Build status
Test AppVeyor tests (branch) AppVeyor tests (branch) AppVeyor tests (branch)
Nuget NuGet Badge

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages