|
<Window x:Class="TestEnumRadioButton.TestEnumRadioButtonWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:TestEnumRadioButton"
SizeToContent="WidthAndHeight"
MaxHeight="300"
MaxWidth="575"
Title="Test EnumRadioButton">
<StackPanel Orientation="Horizontal">
<GroupBox Header="Characters" Margin="8">
<StackPanel Orientation="Vertical">
<local:EnumRadioButton EnumBinding="{Binding Path=SelectedCharacter}" EnumValue="JonnyQuest" Margin="4">
Jonny Quest
</local:EnumRadioButton>
<local:EnumRadioButton EnumBinding="{Binding Path=SelectedCharacter}" EnumValue="Hadji" Margin="4">
Hadji, Jonny's friend
</local:EnumRadioButton>
<local:EnumRadioButton EnumBinding="{Binding Path=SelectedCharacter}" EnumValue="Bandit" Margin="4">
Bandit, Jonny's dog
</local:EnumRadioButton>
<local:EnumRadioButton EnumBinding="{Binding Path=SelectedCharacter}" EnumValue="RaceBannon" Margin="4">
Roger 'Race' Bannon
</local:EnumRadioButton>
<local:EnumRadioButton EnumBinding="{Binding Path=SelectedCharacter}" EnumValue="DoctorBentonQuest" Margin="4">
Dr. Benton Quest
</local:EnumRadioButton>
<Button Click="Next_Click" Margin="8">Select next character</Button>
</StackPanel>
</GroupBox>
<TextBox Name="Results" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" Width="Auto" Margin="8"></TextBox>
</StackPanel>
</Window>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm a C#/WPF developer, but I'm still maintaining a mountain of C++/MFC code. In my day job, I'm a mild-mannered engineer (unless I haven't had my coffee), helping make control software for large, high speed
ink jet printing systems. After hours, I'm a bloodthirsty mercenary, selling my skills to the highest bidder. Yes, that sentence pretty much defines the extent of my marketing ability.
In my spare time
(whazzat?) I run (slowly), bike (the kind you pedal), lift weights (not very big ones), and try to remember where I left my reading glasses.