This question is locked. New answers and comments are not allowed.
Hi,
I've tried to follow along with the sample application for WP7 that comes with the installation and things were going well until I tried to dynamically set the styles on the PickerBox Content itself.
I basically used the example to create a full-screen popup with 3 color swatches on it and use the same code for the selection (to deselect the other togglebuttons). In my ApplicationBarInfo_ButtonClick I wanted to
Seems I can't do this. I've tried everything I can think of including:
No matter what I do I can't seem to actually set that property with any effect.
Is this possible at runtime?
TIA,
KK
I've tried to follow along with the sample application for WP7 that comes with the installation and things were going well until I tried to dynamically set the styles on the PickerBox Content itself.
I basically used the example to create a full-screen popup with 3 color swatches on it and use the same code for the selection (to deselect the other togglebuttons). In my ApplicationBarInfo_ButtonClick I wanted to
- Discover which was the currently checked togglebutton
- Create SolidColorBrush mySwatchColorBrush = new SolidColorBrush( toggleButton.Background.Color )
- Set myRadPickerBox.Background = mySwatchColorBrush
Seems I can't do this. I've tried everything I can think of including:
- Create a style and assign it to PickerBoxStyle as the default and then change to different styles at runtime...no go
- Use the SetValue function....nothing
No matter what I do I can't seem to actually set that property with any effect.
Is this possible at runtime?
TIA,
KK