Advanced Forum Search Results
-
Thanks for the reply Reeta,
I like the look of your solution, however I have no idea how to implement it.
Would you mind being more specific with your example? I have a Silverlight xaml page with a <Combobox x:Name="MyComboBox" /> and a xaml.cs code page.
Appreciate your help!
-Duke
-
Thanks very much for your answer Ling; worked very well
That being said I'm new to Silverlight, and was a bit confused with your code, looking for an Init event. I changed your code to make it more clear:
<ComboBox x:Name="MyComboBox"/>
in xaml.cs:
private void PopulateMyComboBox()
{
...
-
If I set the SelectedItem or Index when the I initialize the page, the item is not visible in the dropdown list. The user has to scroll to see it.
What is the fix for this?
Thanks,
-Duke
-
Figured it out...
Create the resource:
<!-- Page Background Color -->
<SolidColorBrush x:Key="PageBackgroundBrush" Color="#FFFDFDFD" />
Then you can use it throughout your styles:<Setter Property="Background" Value="{StaticResource PageBackgroundBrush}"/>
-
Here's my workaround:
Set the width of the DatePicker to only show the calendar image (i set mine to 24)
Add a TextBlock inside a Border for the "read-only" DateSelected text
Add a SelectedDateChanged event handler to populate the TextBlock
-Duke
-
How do I create a Background variable that I can use throughout my Application.Resources styles?
For example:<Setter Property="Background" Value=MyBackgroundColor />
Thanks,
-Duke