Advanced Forum Search Results
-
Even I'm facing the same problem. Any idea why this is happening?
-
Hi Morten,
Do you know any similar hack for chrome?
Best,
Harish.
-
Hai,
I'm trying to develop a context menu control inherited from ItemsControl. I've put the ItemsPresenter inside a Popup in the control template. I've used a custom attached property named ContextMenu which takes a context menu control object. I've handled the right click event and everything. The context menu works fine if ...
-
I'm developing a custom silverlight control derived from headered items control. I have a popup in the control template which i want to close if i click elsewhere in the browser. I've used HtmlPage.Document.AttachEvent("onclick",OnClick); and i've coded the OnClick event in the control. This event gets triggered only if ...
-
Hi,
I'm developing a custom control derived from HeaderedItemsControl.
I've used a popup (in the control template) which gets displayed when the header is clicked. The items of the control are presented within the popup. I want the popup to be closed when I click elsewhere in the browser.
I tried overriding the LostFocus event for the ...
-
Hi,public static new readonly DependencyProperty ForegroundProperty =DependencyProperty.Register("Foreground", typeof(Brush), typeof(DoubleTextBox), new PropertyMetadata(new SolidColorBrush(Colors.Black), new PropertyChangedCallback(OnForegroundChanged))); public new Brush Foreground
{
get
{
return ...
-
Yes i have used all the thing you specified.But Then also only this foreground property is not getting changed while background property is getting changed.
Actually this property itself is not called when i change the style using breakpoint.
Give me a solution
-
When properties are set for a custom control
only this setter <setter Property="Background" Value="White"> works
but in the same style <setter Property="Foreground Value="Red"> this setter doesnot works.But this program compiles well
please provide me the reasons why a setter property ...
-
Hai lingbing,
I've a dependency property called Orientation in my menu control. I want to set the Orientation property of that stack panel when Orientation DP is set in the control.
I solved the problem now. I got reference to the stack panel using VisualTreeHelper. However, thanks for replying lingbing.
Regards.
-
I'm developing a custom menu control which inherits from ItemsControl. In the default template, I have a StackPanel in ItemsPanelTemplate.
I want to know if there is a way to get the reference to that StackPanel from OnApplyTemplate. GetTemplateChild() method doesn't find the StackPanel.
Can anyone help me. Please.