xaml

Disable Intellisense in XAML Editor in VS2008?

Is there a way to disable Intellisense in the XAML editor in Visual Studio 2008? It is often a big performance drain while typing, and sometimes I'll sit for ten or more seconds waiting while the list automatically popups up. It appears that in Options->Text Editors->XAML, the Intellisense section is section is unavailable (grayed out)....

Is there a way to group RadioButtons generated from the ItemTemplate of an ItemsControl

<DataTemplate x:Key="Genre_DataTemplate"> <RadioButton GroupName="One" Content="{Binding... </DataTemplate> Above code is the ItemTemplate of my ItemsControl, I want all the Radiobuttons instantiated should behave as if it is in a group, I know the reason because the generated RadioButtons are not adjacent in the visualtree. ...

GridViewColumn content and VerticalAlignment

hi there, i want to display some information in a listview using the GridView. i have several GridViewColumns and everything works fine. However, want the GridViewColumns content to have a VerticalAlignment (Top in this case) but the gridvewcolumn intself doesnt offer a VerticalContentAlignment dependency property. when using DisplayM...

WPF -- Where do you draw the line between code and XAML?

I'm a long-time C#/.NET programmer but totally new to WPF and the System.Windows.Controls namespace and XAML. The more I learn about it the more I realize that you can do pretty much all of your GUI initialization and event handling glue in either XAML or in code (say C# code or VB.Net code). My question is to those who have been wo...

WPF DocumentViewer Find-function and FixedPage documents

Hi there, .Net contains a nice control called DocumentViewer. it also offers a subcontrol for finding text in the loaded document (that's at least what it is supposed to do). When inserting FixedPage's objects as document source for the DocumentViewer, the find-functionality just does not find anything. Not even single letters. I haven...

What are the BEST resources for learning WPF & .NET?

I'm a longtime C/C++ Unix guy. I recently started work in a new position that's gonna eventually require C# and WPF (and probably some LINQ). What are the best resources to quickly come up to speed on all these Microsoft technologies? Years ago I read Petzold's book and loved it because it was so complete and by the end I really felt lik...

XAML: Newline in string attribute

How can I add a line break to text when it is being set as an attribute i.e.: <TextBlock Text="Stuff on line1 \n Stuff on line2" /> Breaking it out into the exploded format isn't an option for my particular situation. What I need is someway to emulate the following: <TextBlock> <TextBlock.Text> Stuff on line1 <LineBreak/> ...

Can I specify a generic type in XAML?

In XAML I can declare a DataTemplate so that the template is used whenever a specific type is displayed. For example, this DataTemplate will use a TextBlock to display the name of a customer: <DataTemplate DataType="{x:Type my:Customer}"> <TextBlock Text="{Binding Name}" /> </DataTemplate> I'm wondering if it's possible to define ...

How to put WPF Tab Control tabs on the side

I am trying to create a Tab Control in WPF that has the tabs arranged down the right side of the control, with the text rotated 90 degrees The look is similar to those plastic tabs you can buy and use in a notebook. I have tried changing the TabStripPlacement to Right, but it just stacks the tabs up on the top right side of the control -...

Screen glint effect in WPF or Silverlight

I'm looking for a way to create an "it will look cool" effect for a full screen WPF application I'm working on - a "screen glint" effect that animates or moves across the whole screen to give off a shiny display experience. I'm thinking of creating a large rectangle with a highlighted-gradient and transparent background, which could be a...

Getting XAML of the current screen in silverlight 2

I am trying to send my dynamically created silverlight 2 page/image to a an ASP.net web service to render it as an bitmap image. I can see many examples how to get the XAML using javascript (see here) in version 1 of silverlight but I have a few differences. a) I am using silverlight 2 RC1 b) I have dynamically add controls to the pag...

Resizing XAML properties

Is there a way to have XAML properties scale along with the size of the uielements they belong to? In essence, I have a control template that I have created too large for it's use/ mainly because I want to use the same control with different sizes. The problem is that I can set the control size to Auto (in the ControlTemplate), however ...

What's the difference between StaticResource and DynamicResource in WPF?

When using resources such as brushes, templates and styles in WPF, they can be specified either as StaticResources <Rectangle Fill="{StaticResource MyBrush}" /> or as a DynamicResource <ItemsControl ItemTemplate="{DynamicResource MyItemTemplate}" /> Most of the times (always?), only one works and the other will throw exception du...

Is there really no way to follow up dataset parent relation in xaml binding?

Suppose I have a dataset with those two immortal tables: Employee & Order Emp -> ID, Name Ord -> Something, Anotherthing, EmpID And relation Rel: Ord (EmpID) -> Emp (ID) It works great in standard master/detail scenario (show employees, follow down the relation, show related orders), but what when I wan't to go the opposite way (s...

Setting style on first and last visible TabItem of TabControl

I want to set a style on the first and last TabItems in a TabControl, and have them updated as the visibility of the TabItems is changed. I can't see a way to do so with triggers. What we're after looks like this: | > > > | And the visibility of TabItems are determined by binding. I do have it working in code. On TabItem visibility...

How to add XAML storyboard animation to a full blown WPF Custom Control in an XBAP?

We are creating custom WPF controls (not user controls) for an XBAP application and we would like to add a storyboard animation to scale the control to be 110% of its original size when the mouse hovers over it. We've used Blend to create the storyboard and it compiles just fine...however, when we run, it does not animate up to 110%. I...

How to fix code-complete in Visual Studio 2008

The code-complete feature in Visual Studio is very useful, and it still works for C# and C++ code - but no longer works for XAML (XML) editing. Is there a setting somewhere that can re-enable this? My co-workers still have it working. ...

Does WPF's TextBox support spell-check dictionaries for the Netherlands?

The RichTextBox supports a spellcheck option which is very nice. (SpellCheck.IsEnabled = true) But I cannot seem to get it to another language. (I live in the Netherlands.. ;)) Does any of you have an experience with the SpellCheck option of TextBox? I know it can be change by changing the keyboard settings, but I want to change it in...

In a WPF ListView how can I prevent auto scrolling?

I have a WPF ListView which currently scrolls everytime I click on an item which is only partially visible. How can I keep the control from scrolling that item into view (instead simply selecting the partially visible one)? This behavior is very annoying when doing a drag from this control. Thanks. Added: I am looking for a solut...

WPF Databinding and cascading Converters?

hi there, i wonder if it is possible to cascade converters when using wpf databinding. e.g. something like <SomeControl Visibility="{Binding Path=SomeProperty, Converter={StaticResource firstConverter}, Converter={StaticResource secondConverter}}"/> is it possible at all or do i have to create a custom converter that combines the fu...