AppBar icons in the Toolkit's DateTimePicker - c#

I am building my application in the Windows Phone 8 framework. I am facing the critical problem here. Initially i developed my app using the Telerik's DateTime picker but unfortunately it had some animation and looping problem so i taken the DatePicker from the ToolKit and created the custom control with this. Unfortunately i am not able to access the AppBar of the DatePicker to update it based on my requirements. Is there any option to access the Application bar of the DatePicker in the Toolkit ?. Help can be appreciated.

I had a similar problem and
this worked out great for me.

Related

uwp: how to edit a datagrid item in a form control

I've been looking through all the microsoft docs related to grids in UWP, but so far I can't see an example of a basic scenario of being able to click on an item and editing it in a form. All the examples I see are of either editing and validating inline, or using the open source version of telerik rad controls which I would much rather stay away from. Can anyone please point me to an example of how to do this? Ideally it would be something like a responsive Master-Detail page, except that the Detail form is editable.
For your requirement, you could refer Windows Community Toolkit DataGrid Sample. And it allow edit item with click.
And you could get Windows Community Toolkit sample app from windows store.

how can I get a date from the user in Windows Phone?

I should get a date from the user inside a WP 8.1 app, I need something like the DateTimePicker which I use in Windows Forms or the DatePicker of WPF environment, do you know ho to do this?
I tried to search something similar to DatePicker in windows phone but I can't find anything!
My app should get this date to generate a fiscal code, so I need to get the user's birthday.
Is there any tag to add to my xaml file?
Thanks a lot guys!
I think this will solve your problem!
<DatePicker x:Name=birthdayDatePicker Header="Birthday Date"/>
The question is what kind of WP 8.1 app you're developing? Windows Runtime or Silverlight? If the first one, then you can just use DatePicker control, because it's built in.
But, if your app uses Silverlight, then you have to import Windows Phone Toolkit first. You can do it easily: right-click on your project name in Solution Explorer, then choose Manage NuGet Packages.... Type wptoolkit in a search box and you will find Windows Phone Toolkit. Just install it. Now, go to you XAML code and add toolkit namespace:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
Now you can add DatePicker to your layout:
<toolkit:DatePicker Header="Birthday date"/>

DateTimePicker for WPF 4.0

According to this post, there's a separate DatePicker control in .net 4. I've tried it, and I don't see a good way to also let it select the time of the day.
Is there an easy way to transform DatePicker into DateTimePicker by editing XAML template? If not, what is the best way to get a DateTimePicker for WPF 4.0?
Extended WPF Toolkit sports a nice DateTimePicker with time of day.
There is also an article over on CP where someone created a control that works like the Winforms one... A WPF DateTimePicker That Works Like the One in Winforms
There isn't one without making it yourself or using a 3rd party control. However there is one within winforms if you want a quick fix that doesn't support data binding...
xmlns:window="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
<window:WindowsFormsHost >
<wf:DateTimePicker Format="Time" ></wf:DateTimePicker>
</window:WindowsFormsHost>
Just a time picker, but could easily be paired with a datepicker. You also need a reference to WindowsFormsIntegration and System.Windows.Forms.
Try the DateTimePicker in the extended WPF toolkit.
If you do want an DateTimePicker without external controls and also for commercial use, I've improved an existing one and share it here:
https://gist.github.com/Apflkuacha/406e755c8b42a70b7ab138e6b985bcdf
It will look like this, a field which shows the selected date&time and a popup window to select the date and time:

New DateTimePicker for WPF?

Are there newer, and better DateTimePicker out there that can resemble more of Window's default DateTimePicker for WPF C#?
Yes, I know this is not a new question.
There are WPF Toolkits and SO. But these are fairly dated (latest update I found were from the 09) and I am not able to find any newer sources. There is this Avalon Library but, no offense, it's buggy, ugly and difficult to implement (for me perhaps), also difficult to click the textboxes etc.
Are there newer, open source or commercial DateTimePicker? Do people host their DateTimePicker Form Control in WPF?
Note that what you are showing is most likely not a single control but a combination of controls. In there I see a month calendar control, a time picker and a custom control showing an analogic clock.
bout WPF controls there are tons of libraries and suites out there with anything you need including datetime and time pickers, for example Telerik, Infragistic, DevExpress etc...
The clock in the image is not part of the time control. It is just a clock.
You could have a look at the commercial controls of Telerik

using coded ui on infragistics winform controls

I've recently decided to take a look at automated UI testing using vs2010's coded UI. However, I've come across some problems, namely a FailedToPerformActionOnBlockedControlException when playing back selecting a value from a combo box.
A quick search for this exception and infragistics and coded ui seems to say that there is no formal support for infragistics winform controls using coded ui however several websites has mentioned using coded ui extensions.
Has anyone had experience with successfully making coded ui recognise infragistics controls? such as the combo box, ultragrid etc...?
My company uses our own controls that inherit from Infragistics controls. See this related question for tips which may help.
DevExpress LookUpEdit And Coded UI Tests
If you want a robust solution for automated testing of Infragistics WinForms controls, and are willing to use a different tool, have a look at Infragistics TestAdvantage, a plugin for HP QTP / IBM RFT.
Support for the CodedUITest framework is being looked at by Infragistics and a beta may be available late in Q1 of 2012. There are more details in the following post:
http://blogs.infragistics.com/forums/p/10294/323529.aspx#323529
Little update:
For Winforms there targetting to release support for CodedUI in their Netadvantage 2012 Volume 2 product.
Expected in October 2012
You can use RANOREX. It worked for most controls, for example the Ultragrid
See http://www.ranorex.com/

Categories

Resources