I always thought that the target framework option would make the compilation fail. Do you have example code?
Discussions
-
-
If the current Block is a Paragraph, you could check it's Inlines property for any Hyperlink objects.
I don't think FlowDocument is designed to be that interactive.
-
lol I think you meant the "wtv" format. I haven't noticed that issue, but I don't think I've checked for thumbnails on recorded shows before I've watched them.
-
WPF: Listbox with DrawingBrush background resizes with window, Path contents do not.
Aug 28, 2009 at 3:12 PMBas said:spivonious said:*snip*Hmm, that stretches the contents all the way along the height of the listbox. That's kind of it, but not entirely. I need something that says "make it 10% of the height of the listbox" or someting.
I'll see if there's some sort of transform I can use directly on the templates. Or stretch in combination with a margin?
Stretch with a margin would work.
If you take the Path out of the ListBox, does it resize properly? I haven't done much with geometries.
-
WPF: Listbox with DrawingBrush background resizes with window, Path contents do not.
Aug 28, 2009 at 11:15 AMI believe that you want to set HorizontalContentAlignment to "Stretch" on the ListBox. Either that or VerticalContentAlignment.
By default, the ListBox only makes its items as big as they need to be.
-
Not familiar with SQL reports, but could you use LINQ? You could test whether the ID was in the array in the where clause. If it's all on the DB side, then I'm pretty sure you'd have to build your own where clause from the IDs in the array.
-
That would be a neat feature. I don't think it's possible right now.
-
W3bbo said:spivonious said:*snip*
C#'s using for aliasing sort-of works, but doesn't allow you to bring in static members as some kind of "global" member. If I find myself using static members (or enumeration members) often I have to use a one-character alias, which works fine enough:
using N = System.Globalisaton.NumberStyles
In a way, I think it's superior to having global members since readbility is only slightly infringed and its non-ambiguous.
Yet another difference between C# and VB then. In VB I can type "Imports System.Math" and simply type "PI" instead of "Math.PI".
-
Wait...doesn't the C# using statement take care of that? Or do you still have to prefix the static members?
-
Since it goes away for a while after a reboot, are you doing any sort of caching? Maybe the cache is getting corrupted somehow and setting some columns to null.