平滑调整大小和淡化WP应用程序

时间:2015-12-15 23:23:14

标签: c# windows-phone-8.1 resize fade

我想问你应该怎么做才能平滑地调整(矩形)和淡入淡出(网格)进出?我正在使用C#,Visual Studio 2015。

1 个答案:

答案 0 :(得分:2)

制作某种循环并添加

myRectangle.FillRectangle(brush, new Rectangle(0,0,200,300));

其中alpha从0变为255,因此alpha值为128将为您提供50%的不实际效果。

然后你可以应用画笔

 def callback(self):
        if 'code' not in request.args:
            return None, None, None, None
        oauth_session = self.service.get_auth_session(
                data={'code': request.args['code'],
                      'grant_type': 'authorization_code',
                      'redirect_uri': self.get_callback_url()})
        me = oauth_session.get('me?fields=id,email,first_name,last_name').json()
        return (
            me['id'],
            me.get('email'),
            me.get('first_name'),
            me.get('last_name')
        )