Xamarin.Plugin.Calender disable date - xamarin.forms

I am using xamarin.plugin.calendar. but I don't know the delegate method for disabling the past dates. anyone know this method for this. Kindly help me thanks in advance.

Thanks for sharing video.This phenomenon is normal , because here the contained ListView's height is default , it will not be changed by the count of its cell .
Here is a sample WorkAround : when tapping up option , you can dynamically change the height of ListView ,as follow:
listview.HeightRequest = heightSize;
By the way, heightSize need to be calculated when view showing. According to video , if every cell of listview is defauld height, you just need to get count of it. Then you can know the height of listview.
Note: If this workaround is not fit for you, maybe you should do as Bruno's suggestion that re-layouting interface.

To solve that you need to rework your code, and don't use ScrollView and Nested ListViews.
You can have a scrollview and, for example, Bindable Layouts (Stacklayout), to mimick the Listview.

Related

How to close the scroll function of a collectionview?

I do not want to the collectionView to Scroll but only want it to display as a list as its height.
But it seems there is no property to close the function.
Can anyone help?
The CollectionView is currently a preview, and lacks some of its planned functionality. In addition, the API may change as the implementation is completed.
So ,as Денис Чорный said, thought you just want it display just like a list.You can replace it with listview .
for more detail about collectview you can refer here

Focusing on last data entry on Qtreewidget

I am trying to use Qtreewidget as listview (like in C#) to display some data. As seen on the image below, while new datas displayed during the runtime, the widget doesn't focus on the last entry.That is what I want but couldn't find a method to make it focus on the last entry. In other words, I want it to be scrolled down to the last entry. Is there any way to do it or do I have to use something another to handle this ?
Thanks in advance.
Maybe this code will helps you:
QTreeWidget *mytree = new QTreeWidget(this);
...
mytree->scrollToBottom();

How to Customize ListView in QT

HI..
i am new to QT,i want to know how to customize the listview in QT i.e i want to add multiple icon in single row.. etc.. i tried lot i am not getting how to do that..
i tried with Qlistwidget, in tat i can only insert single row with one image.. i am not able to place multiple icon with desired locations..
please assist me, which control is good listview or listwidget.
and how to customize the same according to my view
if you have any sample examples. please provide me the link.
Thanks
You can implement a delegate to customize the rendering of the items in your view.
From the model/view programming docs: delegates are responsible for rendering individual items in the views.
See the pixelator sample for example usage.
Take a look at QTableView or QTableWidget. You can insert the icons in the first two columns and the text in the third column. Or any other way you like it.
I guess you can use some delegates.
Have a look at http://qt.nokia.com/doc/4.6/model-view-delegate.html
Hope it helps !

Flex Arraycollection filter

I am working in Flex.
I have an arraycollection which is used to fill a tilelist with images.
I am using filter method of arraycollection to filter out certain images from tilelist based on a selected value from combobox.
The issue is that when the images are filtered out they just vanish suddenly.
But I want to give some effect to them when they are filtered out, say slow fade effect or zoom effect. I tried removedEffect, hideEffect etc. but in vain.
Can anyone please help me out.
thanks.
You need to add effects to the TileList, you can see some examples at Using data effects
article.

buttons in a datagrid in flex

i am using a data grid in flex and i am generating data from a mysql server. However, my problem is with adding a button within the datagrid so each row has one.
i have set the columns itemRenderer to mx.controls.Button although with the buttons shown in the grid there is no label on them (even though one has been set) and the assigned click event does not trigger when hitting the button. anyone have any ideas or guidance on what i am doing wrong.
Thanks
Mark
Not to worry I have sorted it. anyone with a similar issue i suggest reading this
http://www.axelscript.com/2008/02/29/using-the-itemrenderer-with-a-datagrid-in-flex/
an excellent source.

Resources