.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

WPF effects similar to Blur

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :WPF
Could someone help me with the new HLSL effects in WPF? Basically I need an HLSL Glow effect, to replace the BitmapEffect one.

I could figure out by myself that the PaddingTop, PaddingLeft, etc. properties let you create effects, which "overflow" the Visual bounding box (BTW, why not a simple Padding property, as everywhere else in WPF?)

Creating a glow effect needs some blurring for the soft edges.  But here I don't have a clue how to perform that efficiently and in a parameterized fashion.

I thought I would have a look at the two effects shipped with WPF: DropShadow and Blur. Both are doing exactly what I need, that is they have a blur built-in. Moreover they are very flexible and can be configured for radius, [box - gaussian], and [fast - quality]. But looking inside .NET I discovered that they don't seem to actually use a pixel shader as we are supposed to... They do some fancy calls to the MIL composition engine, which I don't understand.

I honestly hope we could build a Blur effect similar to the one shipped by MS. If they used some internals we don't have access to I would be very disappointed.

Can somebody here help me?

View Complete Post

More Related Resource Links

GridView Parent Child View with JQuery Effects

I was just checked how to add some more cool effects to the GridView control using JQuery. In this post I will display parent-child data in the GridView control with some help of the wonderful JQuery library.

Let's first populate the GridView control.

Aero Glass: Create Special Effects With The Desktop Window Manager


In this article we introduce the Desktop Window Manager, the new interface that manages how windows are rendered on the Windows Vista desktop.

Ron Fosner

MSDN Magazine April 2007

implementing a search similar to what you have in google when you type in a word


Dear all;

I have a textbox and what I would like to implement is basically a situation similar to what you have in google when you type in a word. In otherwords,

in the textbox when you type in J, it should generate a list of names that starts with O in alphabetical order, then next when you type in o, so that now you have Jo, it should generate a list of names instead that now starts with Jo in alphabetical order, then again when you type in h, it should generate a list of names that starts with Joh and so on. A sample code could be helpful. Thank you. No Javascript of Jquery please. All help will be greatly appreciated.

Contact Selector - Form tab index is lost after selector resolves names on blur


I'm working with an InfoPath2007 form developed to be filled-out through the browser on a SharePoint 2007 site, and I'm testing using Internet Explorer 7.  It's a straight-forward form, with a number of text fields and two Contact Selector controls.

The issue I'm encountering is with the Contact Selector control, where if the actor only enters a partial name into the text-field and then TABs away from the control the form will perform its auto-postback to look-up and resolve the partial name (showing the name resolution dialog is necessary), and afterward the actor's cursor is focused on the next field in the form.  The actor can type text into the focused field, but any subsequent pressing of the TAB key returns the actor's focus to the browser's ADDRESS bar, which is incorrect as it should proceed to the next field in the form.  I understand that the Contact Selector needs to perform its postback to perform the name resolution (so that there is no way through the InfoPath form designer to disable postbacks for the control), but why does the browser not know how to continue the TAB order of the fields on the form even when a field has focus?

Google or similar type of Calendar web part on MOSS site



I would like to know how to use Google calendar or similar type of calendar web part on MOSS site.

my requirement is as below

 The Calendar component should display the current month with the current day highlighted.  Days with events will be bold.  The component will have a link to view all events [by current month? / for next 30 days].

Multiple Applications with Similar UIs


My company is getting ready to update several applications. Two of the applications share some common functionality. One of them is a WinForms project for in-house and the other is public facing for our customers. Both of the apps support event entry (an "event" is one of our business objects) in the exact same way.

The event entry process is very complex, with lots of validation, enabling and disabling, visibility toggling, etc. Initially, the apps were developed at different times without knowing that this shared functionality would occur which lead to a lot of code duplication and a synchronization nightmare.

Going forward, I would like to choose a model that fixes this problem. I would like to have a common class (or classes) that handle ALL of the logic in one place. For the most part, we've had the UI handle the "simple" validation (required fields, valid values, etc.) and how to display the form (visibility, enabling, etc.). We then had the "complex" validation handled by our business logic layer. Personally, I thought that the display handling should have been performed at the BLL since the changing of one property affected the display of others, but that seems like it would have required me to "hook" it into the UI (e.g., UI provides reference to its controls to BLL or BLL says whatever co

AppDomain.Unload effects Unable to evaluate expression because the code is optimized or a native fra

Hello, I create a custom AppDomain.Create().  I registered the Unhandled Exception Event from my custom AppDomain. In the Unhandled Exception Event i try to Unload my AppDomain with AppDomain.Unload. But this effects a "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack." Have anyone a idea what i can do against this behaviour. greetints

Would you use clustering to find documents similar to this one?

Hi, I am taking a BI Developer course and enrolled at a school where the teacher knows nothing about data mining. So I designed a project for myself and am trying to surmount the curve without the benefit of a mentor. Please have patience with me. I have a database full of documents where the entire text resides in a single field (nvarchar(max)) I want to find documents that are similar to the one I pick. I am not sure what approach I should take to get there..         1) create clusters for the entire database and then see what cluster my document is in OR                 2) some-how train a model on the single document and then let the DM engine go find the matches.   I have tried approach 1, but the similarity between the documents is not very high (at least in the few of thousands I looked at) I do not see how to do approach 2, unless I cluster with a test set size of 1, and that doesnt seem right.   Is clustering even the way to go?   Thanks, struggling in Austin

How to create an activity that allows multiple exit paths similar to FlowSwitch and FlowDecision

There have been several threads around this type of request but none have provided a definitive outcome for my requirements:I am looking to emulate the FlowSwitch or FlowDecision in a custom activity so as to simplify end user workflow authoring in a rehosted environment.Currenty I am limited to linking my custom activity to a FlowSwitch or FlowDecision to allow for simple logic to be visually composed. This creates additional complexity that I am trying to avoid.I understand that these are sealed types and even the abstract FlowNode base class of these types does not have any overridable types by design as WF 4.0 favours composition over inheritance.What options do I have to accomplish my objective?If activity composition is the response to my question then could I kindly request that some samples or links to samples are provided?

How to create a custom webpart - similar to page viewer webpart but one that will be able to get a p

we want to pass a link to moview items from a list, the page viewer seems god to display the movies but it doesn't support connections....?

Text in code windows became very blur

I do remember what I did but text in code windows became very blur. Another screens such as option, solution explorer are still very clear. How to fix it? I tried to reset to reset all setting but no luck.I do remember what I did but text in code windows became very blur.Another screens such as option, solution explorer are still very clear.How to fix it?I tried to reset to reset all setting but no luck.

JQuery(Effects problem) With Master Page

HI friends, My project is old one it is bulit in VS2005 now i want to add the features of JQuery I m new to JQuery.I started working with simple hide and show functionality on div . It works fine with simple aspx page but  it does not work with MASTER PAGE when I apply hide and show functionality with toggle('slow'),slideup('slow'),slidedown('fast')  etc effects . I have set the property of div as runat server. Any help appreciated Regards, Chandrakant            

SharePoint AAM - Help - Publish Sharepoint with UAG to Internet and Intranet with Similar Url

I am trying to Publish Sharepoint with UAG to Internet and the desired url is https://abc.contoso.com and the internal people want to access with http://abc.contoso.com. I have my AAM in Sharepoint similar to this, which i read from Sharepoint UAG msdn documentation. The Internet people access the site using https to reach UAG which inturn request http to Sharepoint server. with the above AAM setup, the internal people will not be able to access the site using http://abc.contoso.com as there is no AAM mapping for it. i am not able to add AAM mapping as it says internal URL already in the collection. Can you please help how to make this setup , thanks Joe

Looking for controls similar to reCupture

Hi Guys, Could anyone give me advise, what can I use to stop automatic/spam registration. I know about google recupture control, is anything else? similar? reCupture does not work for me because it has two words and my client finds it to hard. 

How to create an activity that allows multiple exit paths similar to FlowSwitch and FlowDecision

Hi, I saw replies about create an multi path activity and it's container and they are guid me alot but i can not setup link between two activities in my container with System.Windows.Shapes.Line . can any one help me . can any one send me a sample code please . thanks

Drop Shadow Effects For Beginners

It is very easy to create drop shadow in the expression blend. In this post I will show you how you can use the expression blend 4 to create the drop shadow of the object.DropShadowEffect is a pixel shader effect that applies a shadow behind an object. The shadow is positioned at a specified distance from the object and at a specified angle.The output of this exercise will be as shown in the Image 1.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend