{"id":452,"date":"2007-08-15T13:08:41","date_gmt":"2007-08-15T05:08:41","guid":{"rendered":"http:\/\/fdream.net\/blog\/article\/452.aspx"},"modified":"2007-08-15T13:08:48","modified_gmt":"2007-08-15T05:08:48","slug":"Frame%e9%87%8c%e7%9a%84%e7%bd%91%e9%a1%b5%e4%b8%8d%e8%83%bd%e9%80%8f%e6%98%8e%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fdream.net\/blog\/article\/452","title":{"rendered":"Frame\u91cc\u7684\u7f51\u9875\u4e0d\u80fd\u900f\u660e\uff1f"},"content":{"rendered":"<p>\u5947\u602a\uff0cFrame\u7c7b\u6709\u4e2aOpacity\u5c5e\u6027\uff0c\u8bbe\u7f6e\u5176\u503c\u4e3a0.2\u4e00\u70b9\u53cd\u5e94\u90fd\u6ca1\u6709\uff0c\u53c8\u8c8c\u4f3c\u6ca1\u6709\u5176\u4ed6\u5c5e\u6027\u53ef\u4ee5\u8bbe\u7f6e\u900f\u660e\u5ea6\uff0c\u96be\u9053\u662fbug\uff1f\u5982\u679c\u662f\u8fd9\u6837\uff0c\u90a3\u4e48Frame\u80af\u5b9a\u662f\u4e0d\u80fd\u5b9e\u73b0\u6709\u900f\u660e\u5ea6\u53d8\u5316\u7684\u52a8\u753b\u4e86\u2026\u2026<\/p>\n<p>\u7528Google\u641c\u4e86\u4e00\u4e0b\uff0c\u627e\u5230\u8fd9\u6837\u4e24\u4e2a\u5e16\u5b50\uff1a<\/p>\n<blockquote>\n<p>The animation worked when applied on other elements in a test project I made, including a Frame element with just a solid red background.  I think it&#8217;s just a limitation of the Frame element when rendering HTML.  It uses the WebBrowser control which is just a wrapper around the MSHTML ActiveX control, I believe.<\/p>\n<p>Hmm, it might be fun to write a Web browser in WPF&#8230;<\/p>\n<\/blockquote>\n<blockquote>\n<p>Frame element is wrapping window with handle, thus it can not have animated opacity. However, you can cr&#101;ate VisualBrush over Frame and Animate it<\/p>\n<\/blockquote>\n<p>\u770b\u6765\u5bf9HTML\u9875\u9762\u662f\u771f\u7684\u6ca1\u529e\u6cd5\u4e86\uff0c\u81ea\u5df1\u53e6\u5916\u60f3\u529e\u6cd5\u5b9e\u73b0\u54af:(<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5947\u602a\uff0cFrame\u7c7b\u6709\u4e2aOpacity\u5c5e\u6027\uff0c\u8bbe\u7f6e\u5176\u503c\u4e3a0.2\u4e00\u70b9\u53cd\u5e94\u90fd\u6ca1\u6709\uff0c\u53c8\u8c8c\u4f3c\u6ca1\u6709\u5176\u4ed6\u5c5e\u6027\u53ef\u4ee5\u8bbe\u7f6e\u900f\u660e\u5ea6\uff0c\u96be\u9053\u662fbug\uff1f\u5982\u679c\u662f\u8fd9\u6837\uff0c\u90a3\u4e48Frame\u80af\u5b9a\u662f\u4e0d\u80fd\u5b9e\u73b0\u6709\u900f\u660e\u5ea6\u53d8\u5316\u7684\u52a8\u753b\u4e86\u2026\u2026 \u7528Google\u641c\u4e86\u4e00\u4e0b\uff0c\u627e\u5230\u8fd9\u6837\u4e24\u4e2a\u5e16\u5b50\uff1a The animation worked when applied on other elements in a test project I made, including a Frame element with just a solid red background. I think it&#8217;s just a limitation of the Frame element when rendering HTML. It uses the WebBrowser control which is just a wrapper around the MSHTML ActiveX control, I &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[294,293],"class_list":["post-452","post","type-post","status-publish","format-standard","hentry","category-coding","tag-Silverlight","tag-WPF"],"views":15349,"_links":{"self":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts\/452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/comments?post=452"}],"version-history":[{"count":0,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts\/452\/revisions"}],"wp:attachment":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/media?parent=452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/categories?post=452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/tags?post=452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}