Horizontal Stackpanel in WPF
Stackpanel is a useful layout control in WPF. If you have a set of elements need to sit side by side each other, this is your best option. For example, in my advgen contact manager, in the right hand side, there is a set of buttons. Thus, I placed a stack panel. However, by the default, the controls inside the panel will flow in vertical direct, you need to set Orientation="Horizontal"
E.g.
<StackPanel FlowDirection="LeftToRight" Orientation="Horizontal">
Styles in WPF
I have some styling in my WPF opensource project, AdvGen Contact Manager. That is similar with css, just state the class name like :
<Grid
Grid.Column="1"
Name="ContentPanel"
Style="{StaticResource BluePanel}">
UIAlertView Button Click in IOS
if you only have an ok button for alert view, that is easy.
However, if you have more than an "OK" button, you need to implement your controller as UIAlertViewDelegate
For example:
@interface TipRecordListViewController : UITableViewController < uialertviewdelegate >
You need to implement clickedButtonAtIndex
E.g.
Code
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ |
The buttonIndex will tell you which button is clicked
Software Subscription
Source:Open Clip ArtUsing Under Public Domain Attribution
Adobe stopped to sell their software, it goes all Subscription base business model. Even Microsoft sounds more keen to sell Office 365 Subscription than their Office 2013. I believe that is a future trend. The users can apply a subscription fee which is relative cheaper than a one-off fee to own the software. Moreover, the users always can get the latest software with the subscription. That sounds cool. But the users need to renew their subscription annually or monthly. Well, even we buy the software, we need to buy a upgrad version every few years.
Using Paypal as our payment gateway
Source:Open Clip ArtUsing Under Public Domain Attribution
Paypal is my preference for online gateway. A number of people asked me why do I directly use the payment from a local bank. The customers can put the credit card details directly into my website and the transaction fee can be lower than paypal. There are a number of good reasons to use paypal. Firstly, Paypal has a large number of user base. There are a large of people just need to enter paypal user name and password to process the payment. They do not need to any credit card details and address at all. That is very easy friendly. Secondly, it supports a various payment method across world. The most useful method is bank transfer. Paypal can do the bank transfer in the most of countries. For example, I am selling software in Australia, my customer in Hong Kong can transfer the money to me from their bank account. Thirdly, that is about the trust. Paypal won't give us any customers' details rather than email address. The customers won't be worry about the sellers to misuse their personal information. Lastly, Paypal is widely using. A number of third party can be available. We do not need to do any custom development. For us, Paypal is the best option!



