expression

Linq expression decimal culture

Hello, I have this piece of code: fee.SingleOrDefault(f => 100.05M >= f.Rate); In the database the Fee.Rate is a money field stored using invariant culture. But using this select gives an error because my current culture will convert "100.05" to "100,05" wihich results in; An expression of non-boolean type specified in a context whe...

Expression blend photoshop effects

Hi I'm new to using blend, I've discovered when I import my photoshop file blend takes my effects away. Can anyone tell me why blend doesn't recognize my effects? Thanks Judi ...

How do I import behaviors into Expression Blend?

I'm trying to import behaviors in to blend, can anyone help me? I'm a designer not a coder so would like to know the easy import rout for this in Blend? ...

Expression blend slide effect? (silverlight slideshow)

Hi I'm trying to create a slider effect with images an text within it, much like http://www.silverlightshow.net/items/Image-slider-control-in-Silverlight-1.1.aspx I'm a designer so would prefer to use Blend entirely rather than dip into any of the code. Would be great if there is some sort of behavior for this? I'm currently using t...

Mouse enter mouse leave? Expression blend (silverlight)

Hi I'm a designer using Expression blend. Does anyone know how to use the events tab? I'm looking at a column of input fields, such as mouse enter etc. Not sure what to put in these any ideas? Thanks Judi ...

Changing the font of the text in an SSRS Report

Hi, Im trying to change the font of the text in my SSRS Report using the SSRS Expression language. e.g.: i have a textbox in my report and i set the Value property of it using the SSRS Expression language ="hello" is there a way to make the "hello" literal an underlined string. Thanks ...

Is it possible to define a variable in expression in C++?

I have this insane homework where I have to create an expression to validate date with respect to Julian and Gregorian calendar and many other things ... The problem is that it must be all in one expression, so I can't use any ; Are there any options of defining variable in expression? Something like d < 31 && (bool leapyear = y % 4 =...

LINQ Is it possible to get a method name without a return type via LINQ expression trees?

Hi! I know it is possible to retrieve a property name or a method with a return type. But is it also possible to get a method name without a return type via LINQ expression trees? Example: string methodname = GetMethodname(x=>x.GetUser()); ---> results: "GetUser" ...

Expression blend black line error? border?

Hi I'm Trying to figure out why I get a black line down the side of my image in Blend 3. I've imported it from an illustrator file and the image is in a mask layer. <Grid x:Name="LayoutRoot" Background="White"> <Canvas x:Name="home_page_1_LAYERS_rgb" HorizontalAlignment="Left" VerticalAlignment="Top" Width="1024" Height="773.999...

United States Banking Institution Account Number Regular Expression?

I have been tasked to "verify" the length of a U.S. Banking Institution ACCOUNT NUMBER for a web app I'm developing. I cannot find anything through SOF, Google, Fed reserve etc that outlines an account number standard length that we have in the United States. For the record I believe this is futile. If someone could point me to any offi...

Microsoft Expression Studio - autoreset after start of Expression Web 3

I've got a problem with Expression Web 3. Just installed Expression Studio trial form official site plus few adds from there. Expression Web SP1 doesn't want to be install on my machine. When I run Expression Web aplication it just reset my computer. Every other tools from Expression Studio working fine. My system is Windows XP Home SP2....

SQL Expressions in Crystal Reports

I am not at all familiar with SQL expressions and was hoping to get some help I have this: "Reservations"."NY IT Services/Computer Presentation" which is a boolean How would i write this to say "If "Reservations"."NY IT Services/Computer Presentation" is a 1, then display, else do not display? I need to do this in Crystal Reports and ...

python expression for this: max_value = max(firstArray) that is not in secondArray

Hi. I wasn't sure if there was any good way of doing this. But I thought I'd give stackoverflow a try :) I have a list/array with integers, and a second array also with integers. I want to find the max value from the first list, but the value can not be in the second array. Is there any "fancy" way in python to put this down to one exp...

Evaluating parsed expression in Haskell

This is my first question on SO :) My Haskell knowledge is pretty limited, so i need a bit of help to get me started. I have this BNF grammar: num ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 int ::= num | num int var ::= A | B | C | ... | Z expr ::= var | int | - expr | +(expr , expr) | *(expr , expr) | let var be expr in...

Microsoft Web Expression 3.0 syntax coloring.

Is there any way to import Visual Studio 2008 color schemes into Expression Web 3.0? I can change the font and the size of the font, I can also change pretty much every aspect of the coloring from the menu Tools->Page Editor Options... but is there a way to IMPORT settings from VS 2008, I don't want to set everything manually. ...

Bit Curious to understand Expression Tree in .NET

I have read several articles and several stackoverflow.com posts about expression tree. It is beating my brain to understand. Questions: 1) Like DOM (Document Object Model), it is an in-memory representation of logic? 2) Somebody explained it is a mechanism to translate an executable code into data, using it we can produce a data str...

Silverlight Encoder Templates, is it possible to change the background colour?

Hi, Is it possible to change the default background colour of black in Silverlight Encoder Templates? We have a website that requires a white background, instead of the default black bars for aspect ratio video. I'm using Expression Studio 3. Any help would be appreciated. Rich ...

.net propertychange notification handlers - strings vs. expressions

Using WPF has made me a fan of INotifyPropertyChanged. I like to use a helper that takes an expression and returns the name as a string (see example code below). In lots of applications I see by very proficient programmers, however, I see code that handles the strings raw (see 2nd example below). By proficient I mean MVP types who know h...

Intermediate results using expression templates

Hi, in C++ Template Metaprogramming : Concepts, Tools, and Techniques from Boost and Beyond ... One drawback of expression templates is that they tend to encourage writing large, complicated expressions, because evaluation is only delayed until the assignment operator is invoked. If a programmer wants to reuse some intermediate res...

This is useful but I'm not sure why it works

protected override Boolean IsValid(String propertyValue) { return !String.IsNullOrEmpty(propertyValue) && propertyValue.Trim().Length > 0; } This C# validation method does exactly what I want, but I wasn't aware that you could use expression short-circuiting like this. When propertyValue is null, doesn't execution still need to ev...