Click here to Skip to main content
15,916,949 members
Home / Discussions / WPF
   

WPF

 
QuestionDynamically set properties Pin
Christian Graus15-Jun-08 9:57
protectorChristian Graus15-Jun-08 9:57 
AnswerRe: Dynamically set properties Pin
Pete O'Hanlon15-Jun-08 10:50
mvePete O'Hanlon15-Jun-08 10:50 
GeneralRe: Dynamically set properties Pin
Christian Graus15-Jun-08 11:16
protectorChristian Graus15-Jun-08 11:16 
AnswerRe: Dynamically set properties Pin
Insincere Dave15-Jun-08 12:20
Insincere Dave15-Jun-08 12:20 
GeneralRe: Dynamically set properties Pin
Christian Graus15-Jun-08 12:58
protectorChristian Graus15-Jun-08 12:58 
QuestionHorizontal TreeListView [modified] Pin
Olivier Baillard13-Jun-08 4:43
Olivier Baillard13-Jun-08 4:43 
QuestionBinding a panel to the selected item type Pin
Gian13-Jun-08 1:16
Gian13-Jun-08 1:16 
AnswerRe: Binding a panel to the selected item type Pin
Gideon Engelberth13-Jun-08 8:45
Gideon Engelberth13-Jun-08 8:45 
It sounds to me like you are describing what would normally be done with a tab control. I would start there and style the tab control to get the "tabs" to look how you want. Since TabControl inherits from ItemsControl, any trick you used for other list/tree controls should work there as well. Hopefully some sort of style would work, but if not, you could always write a new control template.

If that does not work, I would recommend your option 2. I would use radio buttons (with the template modified to not show the circles) in a stack panel and bind the Visibility of the options "pages" to the IsChecked of the radio button. Since Visibility is not a boolean, this will of course require either a converter or some clever triggers.

A little poking around and I got this as something you may be able to start from:

<TabControl TabStripPlacement="Left">
<TabControl.Resources>
<DataTemplate x:Key="TabHeaderTemplate">
<StackPanel Margin="3">
<TextBlock>Option Group</TextBlock>
<TextBlock Text="{Binding}" />
</StackPanel>
</DataTemplate>
</TabControl.Resources>

<TabItem Header="Tab Number 1"
HeaderTemplate="{StaticResource TabHeaderTemplate}">
<Button>BTN 1</Button>
</TabItem>
<TabItem Header="Tab Number 2"
HeaderTemplate="{StaticResource TabHeaderTemplate}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>

<TextBlock Grid.Row="0" Grid.Column="0">Property 1</TextBlock>
<TextBox Grid.Row="0" Grid.Column="1">ddd</TextBox>
<TextBlock Grid.Row="1" Grid.Column="0">Property 2</TextBlock>
<TextBox Grid.Row="1" Grid.Column="1">fff</TextBox>
</Grid>
</TabItem>
</TabControl>
QuestionWPF ComboBox problems Pin
coolestnerd12-Jun-08 5:38
coolestnerd12-Jun-08 5:38 
AnswerRe: WPF ComboBox problems Pin
Jammer12-Jun-08 6:13
Jammer12-Jun-08 6:13 
GeneralRe: WPF ComboBox problems Pin
coolestnerd12-Jun-08 7:21
coolestnerd12-Jun-08 7:21 
QuestionClass for Updating version of Silverlight Application Pin
am 200912-Jun-08 0:40
am 200912-Jun-08 0:40 
AnswerRe: Class for Updating version of Silverlight Application Pin
Michael Sync15-Jun-08 16:15
Michael Sync15-Jun-08 16:15 
QuestionWPF ContextMenu -&gt; open with left mouse-click??? Pin
AndyGrothe11-Jun-08 20:55
AndyGrothe11-Jun-08 20:55 
AnswerRe: WPF ContextMenu -&gt; open with left mouse-click??? Pin
AndyGrothe16-Jun-08 21:57
AndyGrothe16-Jun-08 21:57 
QuestionUnexpected WPF Behaviour with Microsoft.Win32.OpenFileDialog [modified] Pin
Mitch F.11-Jun-08 18:57
Mitch F.11-Jun-08 18:57 
AnswerRe: Unexpected WPF Behaviour with Microsoft.Win32.OpenFileDialog Pin
Pete O'Hanlon18-Jun-08 8:56
mvePete O'Hanlon18-Jun-08 8:56 
GeneralRe: Unexpected WPF Behaviour with Microsoft.Win32.OpenFileDialog Pin
Mitch F.18-Jun-08 10:15
Mitch F.18-Jun-08 10:15 
QuestionUnable to play audio from client Pin
vayanan11-Jun-08 12:38
vayanan11-Jun-08 12:38 
AnswerRe: Unable to play audio from client Pin
Jammer11-Jun-08 23:12
Jammer11-Jun-08 23:12 
AnswerRe: Unable to play audio from client Pin
Jasvinder Kumar Bali2-Sep-08 21:47
Jasvinder Kumar Bali2-Sep-08 21:47 
QuestionNeed C# Code to take Screenshot of a WPF application Pin
Arun00311-Jun-08 5:25
Arun00311-Jun-08 5:25 
AnswerRe: Need C# Code to take Screenshot of a WPF application Pin
Jammer11-Jun-08 6:19
Jammer11-Jun-08 6:19 
AnswerRe: Need C# Code to take Screenshot of a WPF application Pin
Thomas Stockwell19-Jun-08 16:16
professionalThomas Stockwell19-Jun-08 16:16 
QuestionSilverlight 2 (beta2) Article Competition Pin
Michael Sync11-Jun-08 5:00
Michael Sync11-Jun-08 5:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.