wpf

WPF UIElements Inline with Text "Adornments"

In WPF how can I put regular UIElements inline with text? For example a certain classification of text would replace a span of text with a dropdown containing specific options. I've used objects like Span, Bold, Hyperlink that do some light modifications to text inline, but I want to be able to do something more drastic, and custom. C...

WPF Label FontSize problem.

I have create WPF application and set style of control using style. I have found problem on some control such as Label that I have set FontSize, FontWeight, FontFamily etc. All value is working as I expect except FontSize and FontFamily that seem don't working correctly at runtime. (At design time FontSize and FontFamily is seem to chang...

3D Wall effect with WPF

I am going to implement the 3D Wall effect with WPF, could you recommend some good website where can download some 3D effect samples with WPF, then I can study it. Thanks. ...

PowerPoint and WPF

I really need a way of loading a .ppt document in my wpf application. Can anyone give me a hint, code sample? ...

Is there a mismatch between MVVM and the possibility to modify the View's component tree?

Having read all the StackOverflow entries regarding Model-View-ViewModel architecture along with most of the readily available resources on the net I have come to the conclusion that it is the de-facto standard for building SOLID Silverlight apps. I started to plan my next application using this architecture. One of the requirements for ...

Cutting holes in PathGeometry

I have a PathGeometry defining some path like this one: This is a simplified example. In reality it can have segments of any type (Line, Arc, Bezier). Now I need to cut a hole of some sort and size (square, circle, etc.) in segment joint points so the final result looks something like this: My initial idea was to combine the origi...

XML Namesapce in WPF - xmlns

The following XML namespaces references are included in at the top of every new Xaml file. //http://schemas.microsoft.com/winfx/xaml/presentation //http://schemas.microsoft.com/winfx/xaml The winfx/xaml/presentation holds references to a bunch of windows namesapces such as Windows.Navigation, Windows.Controls ect. The winfx/xaml names...

How to clone an FrameworkElementFactory object and its links?

Hello, I would like to ask you some help in creating a code the is able to clone a FrameworkElementFactory object created at runtime with the code. Dim cellTemplateFactory As New FrameworkElementFactory(GetType(NumericTextBox)) cellTemplateFactory.SetValue(NumericTextBox.TypeCodeProperty, Type.GetTypeCode(GetType(Byte))) Dim b As New ...

WPF databinding, replacing the source object

I have some UI bound to an ObservableCollection of type T where 'T' implements INotifyProperty Changed properly. The problem is i need to completely swap out the ObservableCollection at runtime since it is popluated from a SQL call. This obviously messes the whole binding up and no change notifications fire. How can i replace the s...

wpf outlook-like interface

Hello, Can anyone point me to a tutorial on how to create an outlook like interface in WPF? Thanks ...

INotifyPropertyChanged not working on ObservableCollection property

I have a class called IssuesView which implements INotifyPropertyChanged. This class holds an ObservableCollection<Issue> and exposes it as a DependencyProperty called Issues for consumption by Bindings. It is defined as below - public class IssuesView : DependencyObject, INotifyPropertyChanged { public Issues Issues { ...

What are some good WPF Datagrid usage examples?

Where can I find some good examples of populating the WPF datagrid with data using LINQ? ...

Why does this WPF button stretch across the window?

The button below always expands to be as wide as the TextBlock. I've tried StackPanel, DockPanel, Width="Auto", etc. How can I make the button expand to the size of its own text (as in HTML) and not to the size of text in its environement? <DockPanel HorizontalAlignment="Left"> <Button x:Name="ButtonFavorite" ...

Why is my WPF button not enabled when I create it at runtime?

<Window x:Class="WorkOut.ToggleButton" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:WorkOut.Code" Title="ToggleButton" Height="300" Width="300"> <Grid> <StackPanel Orientation="Vertical"> <ToolBar Height="40" VerticalAli...

Can I automatically wrap HierarchicalDataTemplate items inside of a TreeViewItem?

I have a 4-level tree structure, defined by: <HierarchicalDataTemplate DataType="{x:Type src:Level1}" ItemsSource="{Binding Path=Level2Items}"> <TextBlock Text="{Binding Path=Level1Name}"/> </HierarchicalDataTemplate> <HierarchicalDataTemplate DataType="{x:Type src:Level2}" ItemsSource="{Binding Path=Level3Items}"> <TextBlock T...

Can you swap VisualStateManager for MultiTrigger in WPF?

This really relates to creating a library that works across both WPF and Silverlight. The WPF Toolkit includes an implementation of the VisualStateManager included with Silverlight, and if the VisualStateManager can do what the MultiTrigger in WPF does, that solves my problem. I just found an article on MSDN Blogs discussing the use of ...

Is there ItemsPanelTemplate that will make the Items uniformly fill the control ?

I have a ItemsControl and I will like the items to uniformly fill the the control. Using a StackPanel as the ItemsPanelTemplate only stretches in one direction. ...

DataTemplate Data trigger works only from second time

Hi I have the following XAML: <Grid x:Name="root"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid.Resources> <DataTemplate DataType="{x:Type ViewModels:TemplateViewModel}"> <ContentControl Content="{Binding}" Grid.Row="0" x:Name="ct"> <ContentControl...

Can I have two ContentPresenter pointing to in single Content or ContentSource in the ContentTemplate?

I have created a NavigationPane just like Outlook 2007. Here when the Pane is collapsed and the side bar is clicked, Outlook used to popup the Selected NavigationItem content. I mimicked like the same using to contentpresenter in the ControlTemplete (one for the TabControl's SelectItemHost and another for the Popup). But the problem is w...

Is ASP.NET taking over as dominant .NET UI platform?

Just a year or two ago I thought that learning WPF is the best use of my free time. Now though, I'm not so sure: seems like the number of ASP.NET jobs vs. WinForms/WPF is something like 10:1. Am I the only one noticing this, or is this really an overall trend? And should all thick-client developers drop everything and begin learning ASP....