Advanced Forum Search Results
-
I think that might be a different issue. What do your listboxitems consist of? I had a problem with hyperlinks in my listboxitems, where the hyperlinkbutton click event was not firing (except for the selected item), nor was the selectionchanged event firing if I clicked in a hyperlinkbutton's area (however clicking in the ...
-
CleverCoder,
No need to ditch the Popup! Here is my XAML and code. Note that all you ditch is the use of "popup.IsOpen = false;" which is causing the problems.
This is my style for the entire control I made. I have bolded the XAML that will interest you:
<Style TargetType="my:DropDownControl" ...
-
yifung,
Unfortunately that doesn't seem to work either. It did something... the first column is "Name" and it blanked out the cells for all rows except the first row. However, the focus visual element was still present, which tells me that the CellStyle was not applied either. It's not a huge deal, ...
-
yifung,
I tried the workaround you suggested, but it doesn't seem to be working. Below is the code:
private void ChallengeParticipantsDG_Loaded(object sender, RoutedEventArgs e)
...
-
Thank you very much for all the information! I will try the workaround you suggested.
I did have a question: what are "the latest bits"? I think you mean the latest stuff that MS has been working on, but I just wanted to make sure I wasn't missing something, like if the latest bits are released and fix some ...
-
Yaip,
Sorry, I am unfamiliar with VB. However, you should be able to somehow use the hlbButton_Click method as the HyperlinkButton's event handler, correct? I know you can do it in C# by simply saying in the XAML of the HyperlinkButton: Click="hlbButton_Click", no "Handles" statement necessary. I ...
-
Yaip,
I think you may be able to work around this problem. Instead of relying on the item's mouse down event, hook into the HyperlinkButton's click event. In that case your method should only change slightly, with "sender" being the HyperlinkButton. Below I have put the XAML and VB, though I don't ...
-
ptoinson, I think your problem is related to the same one I had for ToggleButton, posted here. The problem has to do with animating the same property of the same element (in my case, I was changing a border's background color) for the "MouseOver", "Pressed", and "Checked" states. I think the VSM ...
-
Hello,
I am styling and templating a DataGrid and wanted to remove the FocusVisualElement. I noticed a couple things about the new default styles for Beta 2:
1. They moved the FocusVisualElement from the DataGridRow template to the DataGridCell Template
2. They are still using the flat state model for visual states, and ...
-
I think this is a problem (read "bug") with the VSM. If you are altering the same property of the same control in the "Pressed", "MouseOver", and "Checked" states then it causes a conflict and the "Checked" state does not show. The workaround is to have a duplicate ...