Skip to content

kikipoulet/OpenSilverUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenSilverUI

Simple UI Library compatible with OpenSilver - just a POC

Installation

  • Install the Nuget package "OpenSilverUI"
  • Reference OpenSilverUI in your App.xaml file
<Application ...>
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/OpenSilverUI;component/Components/OpenSilverUI.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

Usage

Buttons

<Button Content="Primary"Style="{StaticResource PrimaryButton}"  Width="100"></Button>
<Button Content="Secondary" Style="{StaticResource SecondaryButton}" Width="100"></Button>
<Button Content="Light" Style="{StaticResource LightButton}" Width="100"></Button>
<Button Content="Success" Style="{StaticResource SuccessButton}" Width="100"></Button>
<Button Content="Success Light" Style="{StaticResource SuccessLightButton}" Width="100"></Button>
<Button Content="Warning"Style="{StaticResource WarningButton}" Width="100"></Button>
<Button Content="Warning Light" Style="{StaticResource WarningLightButton}" Width="100"></Button>
<Button Content="Danger" Style="{StaticResource DangerButton}" Width="100"></Button>
<Button Content="Danger Light" Style="{StaticResource DangerLightButton}" Width="100"></Button>
                 

Switch

<CheckBox Style="{StaticResource Switch}"></CheckBox>
<CheckBox IsChecked="True" Style="{StaticResource Switch}"></CheckBox>

MessageBox

 new MessageWindow("Title", "Message").Show();

Use Style="{StaticResource MessageBoxStyle}" in a ChildWindow to make your own Window

ComboBox

<ComboBox UseNativeComboBox="False" Style="{StaticResource ComboBoxOS}"></ComboBox>

TextBox

<TextBox Style="{StaticResource TextBoxOS}"  Text="content"></TextBox>

About

UI Library compatible with OpenSilver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages