Tuesday, May 23, 2017
Hello friends, this session is about FROM WPF TO UWP,
As for Desktop applications, for the last 10 years WPF was (and still?) the best solution for windows OS. Now it is complicated, WPF is not the main player now, even that is far away from being deprecated. UWP of Win10 is the recommended platform for client side, in this session we will cover the abilities and compare those two technologies aspects from Performance to development time, via dev concept’s, patterns, devices, and more.
We will try to answer the Big question of is it possible to migrate code from...
Thursday, May 18, 2017
WPF Datepicker shows text before any date selected and that ‘Select a Date’
Now, if you working with custom template or other language or whatever,
You can do that while overwriting the Control template,
Than it founds interesting unit called PART_TextBox of type > DatePickerTextBox
Well, this control present the selected Date as a Text, and whatever you will set in this section of template will be the startup text instead of ‘Select a Date’ like ‘peek some date’
The problem is, lets say you set any date than you want to reset your Form, I mean to return this control to its original...
Thursday, March 30, 2017
Actually I am not using WPF so much those days, but as a guide at community workshop it came out and I promised to publish those conclusions out, so here we go.. and it is dedicated to you fellows ..
Here is list of goodies:
1. Here is some gold rules can boost your app without great effort.
2. Remember Xaml item is a Class instance.
3. Since WPF use smart dependency property, ask yourself if every property you just seeing on your xaml file is really necessary.
It specially critical while talking about Designer’s code or generated Xaml code.
4. Minimize the...
Monday, February 27, 2017
In this post we will jump in the real world scenario while user might drag clipboard files over our application pane and we like to copy those files and use them in our application.
A few technical details.
Your Dropping area (the place you attended to release the clipboard file)
Should looks like this:
<Grid Height="100" Width="100" Background="Red" AllowDrop="True" DragOver="Border_DragOver" Drop="Grid_Drop"/>
I have 3 different parts here,
DragOver handling, & Drop handling.
Those are mandatory.
The dragOver implementation is kind of :
private void Border_DragOver(object sender, DragEventArgs e)