In silverlight Date picker visibility changed while scrolling screen - silverlight-4.0

In silverlight Datepicker, I have set a property for changing Datepicker visibility. When creating new rows Datepickers are in visible state, but while scrolling its property changing automatically(become disabled state)

Related

Dojo Horizontal Slider - A tooltip to hover over the slider handle with current slider value?

I have just started with Dojo widgets. Recently, I did this Dijit Horizontal Slider Sample,and I have been wondering how to make a tooltip follow the slider handle with the current slider value as the tooltip content.
I have tried the same but am facing two issues:
One, the tooltip appears at the end of the slider rather than constantly hovering on the slider handle.
Two, the tooltip displays a value only when I stop sliding rather than changing seamlessly.
How to overcome these?
If you want the tooltip to move with the slider, you have to find a way to open it from the slider handle, not from the entire horizontal slider widget. I do not know if the actual slider you move with the mouse is it's own widget or not. From the declarative sample online the HTML for the handle looks like this
<div data-dojo-attach-point="sliderHandle,focusNode" class="dijitSliderImageHandle dijitSliderImageHandleH" data-dojo-attach-event="press:_onHandleClick" role="slider" aria-valuemin="-10" aria-valuemax="10" tabindex="0" aria-valuenow="4" style="position: absolute;"></div>
So you can try something like the following, if you can get a reference to the sliderHandle object.
/*
* Create the tooltip dialog that you want to show (I use tooltip dialog,
* but you can do the same with basic tooltip)
*/
var myTooltipDialogbase = new ttdialog({
id: 'myTooltipDialogBase',
style: "width: 275px;"
});
Then in your event handler (in this example right mouse click) you open the popup
/**
* On right mouse click, opens the tooltip dialog
*/
on(sliderHandle, 'contextmenu', function (event) {
popup.open({
parent: sliderHandle,
popup: myTooltipDialogbase,
around: sliderHandle.domNode
});
});
EDIT:
For your second question, you can use the slider property onChange() to do something each time the value of the slider changes. You must set intermediateChanges=true so onChange is called when sliding. In your case, in onChange(), if you can get a reference to the tooltip, then change the value of one of the tooltip objects for every value change of the slider.

Disable user interaction to current page

In my Xamarin forms application I want to disable the user interaction to current page when displaying a custom popup. How can I block user interaction to the toolbar also. User cannot touch the toolbar when showing the default alert box using the following method
DisplayAlert(...);
But i am using a custom popup. Please help me.
this.Content.IsEnabled = false;
It would turn off touch for all the content.
The most MVVM way would be to bind the IsEnabled property to a boolean value in your viewModel. On showing the popup you could toggle the value to false and then revert on dismissing the popup:
var label = new Label();
label.setBinding<ViewModel>(Label.IsEnabledProperty, vm=>vm.IsEnabledToggle);

docking and changing width replaces docked forms

I'm currently working on a Windows Forms Application that is essentially a bunch of forms laid on top of each other. Right now, I have this...
MainForm - MDI Parent
ChildForm - Dock set to 'Fill' in MainForm
Sidebar1 - Dock set to 'Left' in MainForm
Sidebar2 - Dock set to 'Right' in MainForm - able to be resized
ChildChildform - Dock set to 'fill' in MainForm, overtop of Childform
So here's my issue - since Sidebar2 is able to be resized widthwise, I figured it would work fine to throw a button on that does the resize for me - push a button, it slides in, push a button, it slides out - kind of like a slide out on screen keyboard. However, when I slide this out while ChildChildForm is up, ChildChildform dissappears and it goes back to displaying Childform.
My best guess is that since ChildForm and Sidebar1 are both set to MDIParent = MainForm, it's displaying on ChildForm First, since ChildChildForm is set to MDIParent = Mainform, but it's the second one...
Anyone have any tips on how to roll the sidebar in to the topmost form if that topmost form is an MDIChild?

NSMatrix of buttons and Bind issue

This is my situation:
a NSMatrix (in radio mode) that contains 4 buttons
An object with properties "top","left","right","bottom" and the relative objectController.
each button has state bind to one of the objectController key (top,left,right,bottom).
Radio mode makes me sure that only one button at once has state = on, my problem is that when i select a button the object property chained to the objcet controller goes to 1, but the previous one selected (now with state = off) doesn't go to 0 (the buttons view works correctly and only 1 button is active at time).
How can i obtain a on/off effect also on the bind object?
Instead of binding each button, you should bind the selectedIndex binding of the NSMatrix itself to a property in your model.
You'll need to change the way you store the selected edge in your code by using a single property:
typedef enum {
TopEdge = 0,
RightEdge,
BottomEdge,
LeftEdge
} Edge;
#property Edge currentEdge;
This will allow you to keep track of the currently selected index.

ListView Selection Rectangle in VB.NET

How can I temporarily disable listview selection rectangle, so when someone clicks the listview and holds the button down & moves the mouse, the rectangle is not shown? And how do I enable it again after that? (VB.NET)
You can set the enabled property to false, then back to true again to enable the selections. It will display a a gray background when it is disabled.