|
|
Browse by Tags
All Tags » .net 3.5 » WPF (RSS)
-
Have you tried out .NET 3.5 SP1... If not, try it now. Its got loads of new features for WPF. In fact rather than a service pack, its more of a new release .. So whats new.. improved deployment, new controls (supports creation of datagrid), improved performance, DirectX integration, HLSL shaders, and many new features. For the complete details, take a look at Tims post Links to the executables: Visual Studio 2008 Service Pack 1 (Beta) .NET Framework 3.5 Service Pack 1 (Beta) Visual Studio 2008 Express Editions SP1 (Beta) Visual Studio 2008 Team Foundation Server 2008 SP1 (Beta) Read More...
|
-
If you are creating apps which have mdi's (multiple document interfaces) you should definitely take a look at Karls post on MDI task switching. Its an elegant solution and the post explains it nicely ... and yeah you do have the code ...:) .. Take a look Share this post Read More...
|
-
On the forums I saw this interesting problem where there was a need to round the corners of a stackpanel inside a border with cornerradius set... The top is what you get and the bottom image is what you want. The simplest thing to do here is to set the padding on the border so that the stackpanel doesnt bleed around the corners. But when that doesnt meet your requirements you will need to set the clip property on the child in the OnRender function so that you get the correct clipping. The code for the above is attached .(thanks to Ifeanyi) Share this post Read More...
|
-
I got a couple of queries from the readers asking if I could provide a slightly non-trivial sample of using automation. So I created a split button user control which looks something like this If there are no items then you get a checkable button. The items are created in a popup and are generated on demand. This makes the automation a bit interesting. As you can see the control supports 3 patterns – · Invoke (for the button) · ExpandCollapse (for the drop down) · Toggle (for the checkable option) – This is just for demo purposes You will need to specify this in the GetPattern function which overrides the one in the base AutomationPeer. The other function that you might want to override is GetChildrenCore in case of popups. The default behavior is to go through the visual tree and get the children. However, popups are in a separate visual tree. The sample overrides the function since the items are displayed as part of a popup J Also for each of the patterns, it is necessary that we implement Read More...
|
-
Earlier on I had written an app, BlogPadm which was fulltrust and the writer used Google Data API to write the content to Blogger.com. However, when you create an xbap version of it, a problem arises in that you cannot make WebRequests outside site of origin and hence, the xbap version of the above failed to take off. The workaround is to create a webservice at the site of origin so that the calls are forwarded. However, the focus of this app was to test cookies. So I hosted a blog server and had the blogwriter at the site of origin. So the flow is something like this: http://MainSite/Login.aspx à http://blogsite/blogwriter.xbap à http://blogsite/postentry.aspx The communication between the asp pages and the xbap is through cookies. Code for this application is attached. Note that this project makes use of servers and hence, the app won’t run on execution since the server code is now on the local machine. The Blog engine used is the BlogEngine.net which is an open source blog server. The Read More...
|
-
The drag drop entry that I had posted has been used by a lot of you guys out there and I have received a lot of suggestions/bugs. I also got a few ready made fixes from you... Thank You :) ... So I finally got down to incorporating all these changes and got the new library up ... One frequent problem was the adorner flickering and this was a result of the adorner being deleted and created ... so thats fixed. There are also some fixes, code moving around and the usual stuff. Hope you find the new library useful :) Library attached Share this post Read More...
|
-
This is a pretty nifty tool by Saveen .. The project is on codeplex: http://www.codeplex.com/VisioExportToXAML The results look amazing: (Visio rendering v/s Xaml render) Share this post Read More...
|
-
Earlier on, I had written a post on maximizing a borderless (WindowStyle=None) window but without covering the taskbar. This solution works well but was not that nice to look at implementation wise :) ... However, theres a simplere solution to achieve the same. I get quite a few queries about the previous post, so I thought it would be a good idea to post this simple solution.. < Window Width = " {DynamicResource {x:Static SystemParameters.MaximizedPrimaryScreenWidthKey}} " Height = " {DynamicResource {x:Static SystemParameters.MaximizedPrimaryScreenHeightKey}} " WindowStartupLocation = " CenterScreen " WindowStyle = " None " /> SystemParameters to the rescue... for the code behind version, win.Height = SystemParameters .MaximizedPrimaryScreenHeight; win.Width = SystemParameters .MaximizedPrimaryScreenWidth; win.Top = 0;win.Left = 0; Share this post Read More...
|
-
The WPF platform is powerful but relatively new. We realize that some things are lacking and we are in listening mode. If you feel that we need to improve or add something, send me a comment. We'll make sure you are heard. :) Share this post Read More...
|
-
A month ago, I was browsing through different blogs and came across Denis Vuyka's blog post on connecting objects on the canvas... Nice post... Being an avid fan of mind maps, that was the natural extension to the library that he created. Check it out There are 3 types of objects which are basically the same... they contain rich content... Right clicking on the objects opens up an editable Richtextbox... In case you paste in Links, you can click them (Ctrl + Click) ... This opens the link in a new browser window. Maps can be saved/opened. Notice that saving a file also creates a folder with multiple streams. Ideally, everything would be zipped into a single file., I have left this upto you guys :) ... The reason for these multiple streams is the presence of images in Richtextboxes. A simple XamlWriter.Save saves only the image links and not the image. As such, the richtextboxes are saved in the xamlpackage format and picked up on opening the file.... Source code is attached so that you Read More...
|
-
Finally, the Reader SDK is out ... From the windowsclient site "These Syndicated Client Experiences applications exploit the push capabilities of RSS in a model where each application retains full control over the presentation of the content. The Sync Framework and sync service take care of syncing, caching, subscription management and the safe caching of authentication credentials. These services are designed to help publishers focus on what matters to them most: providing differentiated content experiences with very rich content, branding, skinning and custom user interface elements for an optimal end-to-end user experience" You can now create rich applications like the below very easily... :) ...you can download the msdnreader here "Included in this SDK: Visual Studio and Expression projects Sample Generic Reader (complete end to end sample, full source code) MSDN Reader (application, feed and full sample source code) Reader Quick Start wizard Photos: a simple sample demonstrating a Read More...
|
-
I got a few queries after releasing XamlPadX v3 regarding creating addins for the tool. So here is a small post on it. :) Create a customControlLibrary project. Add a reference to the AddInView dll present in the XamlPadX folder which is located in the program files folder. Also add a reference to the 3.5 System.Addin dll. Now in the xaml file change the UserControl Tag into AddInAddInView < f:AddInAddInView x:Class = " customaddin.UserControl1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:f = " http://foo " Height = " 200 " Width = " 200 " > < Grid > < Rectangle Fill = " red " Height = " 100 " Width = " 100 " /> </ Grid > </ f:AddInAddInView > the namespace is exposed as http://foo/ in the AddInView.dll :) Now for the code behind [ AddIn ( "MyAddin" , Description= "This is my addin" , Publisher= "MS" , Version= "1.0.0.0" )] public partial class UserControl1 : AddInViews. Read More...
|
-
So I finally got some time to upgrade XamlPadX... One of the things that I really wanted to add was the plugin support and here you have it. So now users can create their own addins which will plug into xamlpadX. Addin developers can use 3 functionalities of XamlPadX: void ChangeAppBackground( String str); String textBoxContents { get ; set ; } //this is the content in the xaml textbox int TextBoxCaretIndex //this is the caret index in the xaml textbox The color pallette is now included as an addin - so on installation we already have one plugin ready. All selected addins are included in the menu. To create a new addin, all you need is to create a control which extends AddInAddInView shown below ColorPallette : AddInViews. AddInAddInView You could override the SendSignal call which is made by XamlPadX on first displaying the addin... Bear in mind that the addins will work only with .NET 3.5 installed...Even if you dont have it, we catch the exception but allow running the app. The addin Read More...
|
-
As the title says, you can now have a poster of all the namespaces in .NET 3.5.. Its nice to have it near your desk :) Click on the image to go to the poster.. Share this post Read More...
|
-
I recently came across a Hyperbolic tree implementation on codeplex using WPF and thought that a nice usage of it could be in writing a mind map creating application.... I tweaked some of the original code and got a tree with editable nodes... Its been laying around for sometime, so I thought it best to put it out there so that you folks can continue its development. Though its not functional in the true sense, it does provide the basic functionality like saving and opening (albeit to the same file)... Currently only the text is serialized... The project (VS 2008) is attached Note that the usage of the Hyperbolic tree and its code is under the Codeplex License terms Share this post Read More...
|
|
|
|