This question is locked. New answers and comments are not allowed.
I'm using the Upload control and am using the Vista style as the default style for all controls. When the page with the upload control is loaded, the browse button is initially styled with the default Telerik style, not the vista style. If the user moves his mouse button over the button, then the button appearance changes to the vista theme colors and stays that way. We want to have the button use the vista theme colors when the page loads. How do we do this?
The included JPG illustrates the button as it is when the page is hit now (circled in red), and how we want the button to be (has a note next to it in red text). I've used the VisualTreeHelper to find the upload button, but can't set its state (using the VisualStateManager.GoToState method since it has none) or set its focus. The button.CaptureMouse method fails as well. No programmatic approach seems to work.
We're using version 2011.3.1220.1040.
I'm wondering if the problem stems from the control template in the UpLoad.xaml file. One of the lines is the following:
In expression blend it complains that it can't find the VistaTheme in the xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" namespace. So I'm wondering if the theme isn't resolved until the user mouses over the button at run time.
Thanks,
Mike
The included JPG illustrates the button as it is when the page is hit now (circled in red), and how we want the button to be (has a note next to it in red text). I've used the VisualTreeHelper to find the upload button, but can't set its state (using the VisualStateManager.GoToState method since it has none) or set its focus. The button.CaptureMouse method fails as well. No programmatic approach seems to work.
We're using version 2011.3.1220.1040.
I'm wondering if the problem stems from the control template in the UpLoad.xaml file. One of the lines is the following:
<telerik:VistaTheme x:Key="Theme" />
In expression blend it complains that it can't find the VistaTheme in the xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" namespace. So I'm wondering if the theme isn't resolved until the user mouses over the button at run time.
Thanks,
Mike