Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Lester's WPF\SL Blog
Simple, Easy & Beautiful
Translate this page
Powered by
Microsoft® Translator
Common Tasks
Blog Home
Email Blog Author
RSS for posts
Atom
OK
Recent Posts
Collapsing animation in WPF
Posted
over 7 years ago
by
LesterLobo - MSFT
2
Comments
Using WPF for creating gadgets/desktop apps
Posted
over 7 years ago
by
LesterLobo - MSFT
2
Comments
Maximizing window (with WindowStyle=None) considering Taskbar
Posted
over 7 years ago
by
LesterLobo - MSFT
4
Comments
Blog - News
Content is provided "AS IS" with no warranties and confers no rights.
Tag Cloud
.NET 3.0
.net 3.5
.NET 4
Avalon
Datagrid
Microsoft
MultiTouch
MVVM
New WPF 4 features
Pages
Programming
Ribbon
Silverlight
TestAPI
Vista
VS 2010
Windows Presentation Foundation
WPF
WPF Ribbon
WPF samples
WPF tools
WPF/E
Xaml
XAML 2009 features
Xaml Toolkit
Hot Links
Adding speller in custom context menu
Getting screen relative Position
Scrolling Scrollviewer on mouseDrag at the boundaries
Alternative XamlWriter for better performance
Flickr photo gadget
Vista look to your apps
Maximizing window considering Taskbar
WPF Vista gadgets
Split Button
Math operations in XAML
Mapping mouse click on a 3D model
BitmapSource-Bitmap interop
Listening to DependencyProperty changes
WPF/E 3D(like) photo app
Changing caret color
Localizing WPF apps
Printing RichTextBox content
Xbaps - Learn the basics
Xaml FlowDoc to XPS
Xaml FlowDoc to XPS
Vista style Open/Save FileDialogs
Xaml shield
WPF Blog Writer
Filtering text with IME
Enabled hyperlinks in RichTextBox
3.5 features: Addins
Using Viewport2DVisual3D
ABCs of Threat modeling
Using HeirarchicalDataTemplates
Weather Reader user control
.NET 3.5 Namespaces poster
Xbaps using Cookies
Mindmapping Tool
Drag Drop Library
12 tips/tricks about Vista
Blogs (Other)
Tim Sneath
Rob Relyea
Charles Petzold
WPF SDK
Michael Shim
Blog - Monthly Archive List
Archives
March 2011
(1)
December 2010
(1)
October 2010
(1)
September 2010
(2)
August 2010
(6)
July 2010
(4)
June 2010
(3)
May 2010
(2)
April 2010
(2)
March 2010
(2)
February 2010
(1)
January 2010
(1)
December 2009
(5)
November 2009
(19)
October 2009
(12)
September 2009
(3)
July 2009
(2)
June 2009
(3)
May 2009
(3)
April 2009
(3)
March 2009
(3)
February 2009
(2)
January 2009
(1)
December 2008
(3)
November 2008
(2)
October 2008
(4)
September 2008
(3)
August 2008
(4)
July 2008
(2)
June 2008
(3)
May 2008
(5)
April 2008
(2)
March 2008
(3)
February 2008
(4)
January 2008
(5)
December 2007
(3)
November 2007
(3)
October 2007
(5)
September 2007
(2)
August 2007
(6)
July 2007
(4)
June 2007
(5)
May 2007
(5)
April 2007
(5)
March 2007
(7)
February 2007
(6)
January 2007
(7)
December 2006
(7)
November 2006
(5)
October 2006
(8)
September 2006
(2)
August 2006
(3)
July 2006
(6)
June 2006
(4)
May 2006
(4)
April 2006
(2)
March 2006
(4)
February 2006
(4)
January 2006
(4)
December 2005
(3)
November 2005
(4)
October 2005
(6)
September 2005
(3)
August 2005
(1)
TestAPI
CoreMVVM
XamlPadX
Xaml Compliance
August, 2006
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Lester's WPF\Silverlight Blog
Collapsing animation in WPF
Posted
over 7 years ago
by
LesterLobo - MSFT
2
Comments
its been some time since my last post.. so to get things going heres some simple animation code which collapses objects and the one above takes its place (something on the lines of tetrix :) ) .. the main part of this code is a small snippet which I came across some time ago (written by Bob Shogren) <EventTrigger RoutedEvent="Mouse.PreviewMouseDown"> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty = "Opacity" To = "0" BeginTime = "0:0:0" Duration = "0:0:2" /> <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty = "Visibility "> <DiscreteObjectKeyFrame KeyTime="0:0:2" Value="{x:Static Visibility.Collapsed}" /> </ObjectAnimationUsingKeyFrames> </Storyboard> </BeginStoryboard>...
Lester's WPF\Silverlight Blog
Using WPF for creating gadgets/desktop apps
Posted
over 7 years ago
by
LesterLobo - MSFT
2
Comments
In the June CTP we have the AllowsTransparency property made available at the Window level. This takes away lot of pain from using HwndSources. It makes life a lot easeir since all that is needed is to set the properties: AllowsTransparency="true" Background="transparent" and WindowStyle="none". As in the case of HwndSource this would remove the title bar and to provide the drag functionality we would have to use a Thumb. I tried putting these new properties to good use by creating a simple gadget ( more of a desktop app) which is just eye candy :).... So its a rotating globe... which has a circular thumb for dragging it along and the ever so useful Close button. And yeah there is no minimized button; thats by design :) couldnt resist...
Lester's WPF\Silverlight Blog
Maximizing window (with WindowStyle=None) considering Taskbar
Posted
over 7 years ago
by
LesterLobo - MSFT
4
Comments
Sainuu ... for people wondering what that is - its HI in Mongolian.. So here I am in Mongolia on my vacation and its going great... My blog will be neglected by me for the next couple of weeks..:) Ok now back to WPF.. One interesting problem that comes to mind is the Window occupying all screen space on Maximizing when the WindowStyle is set to None. So this means that even if we do have the taskbar visible the window would appear on top of that. This would not happen in the case of the normal window with the TitleBar. To get this scenario working, we would have to include a small piece of code ( by Josh Zana ) in the Window. public override void OnApplyTemplate() { System.IntPtr handle = (new WinInterop.WindowInteropHelper(this)).Handle;...
Page 1 of 1 (3 items)