Thanks Rob,
How do I do this? I've tried to add this button style definition into the APP.xaml, but I dont know how to make this onfocus only...
Also, when I then try to apply this style on by button on the xaml I get "The property style was not found in type button"Code:<Application.Resources> <local:Datasources x:Key="AppDatasources" /> <!-- added local reference to SilverlightAccessiblity (self) Set Local:datasources --> <Style x:Name="BorderStyle" TargetType="Button"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Border BorderBrush="Fuchsia"/> </ControlTemplate> </Setter.Value> </Setter> </Style>
<Button Content="press me" Grid.Row="2" style="{StaticResource Borderstyle}">
<interactivity:Interaction.Behaviors>
<behaviors:ScrollOnFocusBehavior/>
</interactivity:Interaction.Behaviors>
</Button>
Sorry, I have limited understanding of the fundamentals here. Could you explain where and how I should be pointing the controls to a style template and how I can just affect the onfocused border.
Thanks
Bob




Reply With Quote