![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | programatically changing the ControlTemplate of a ListBox hi, given the much cut down example below how do i programatically change the template to left aligned text in the RadioButton ? <ListBox Name="GroupSelector"> <ListBox.Resources> <Style x:Key="{x:Type ListBoxItem}" TargetType="{x:Type ListBoxItem}" > <Setter Property="Template"> <Setter.Value> <ControlTemplate> <RadioButton Name="TheListBoxRadioButtons" HorizontalContentAlignment="Center".... I have been looking into "GroupSelector.Template.TargetType" but cannot find the RadioButton object to set the HorizontalContentAlignment despite digging in deep. This is a central and generic much-used class, i need to be able to alter its properties dynamically, a new ad-hoc style is not an option. many thanks craig kelly-soens - Windows Vista WinFx XAML .Net Evangelist http://www.XpectWorld.com - for customised "super-easy to use" Windows Vista based software |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easy to get handle from listbox. How to get listbox from handle? | IMAFriend | .NET General | 0 | 03-27-2008 08:31 PM |
| Programatically changing JPG Metatags | Dzomlija | Vista music pictures video | 0 | 01-11-2008 04:38 AM |
| CustomControl and controlTemplate | Eager | Avalon | 3 | 09-28-2007 02:06 AM |
| User controls in a ControlTemplate | Griff | Avalon | 1 | 05-26-2006 04:28 AM |
| Tooltip ControlTemplate | Erno | Avalon | 1 | 02-02-2006 12:50 PM |