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...
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...
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.
...
I really need a way of loading a .ppt document in my wpf application. Can anyone give me a hint, code sample?
...
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 ...
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...
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...
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 ...
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...
Hello,
Can anyone point me to a tutorial on how to create an outlook like interface in WPF?
Thanks
...
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
{
...
Where can I find some good examples of populating the WPF datagrid with data using LINQ?
...
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"
...
<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...
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...
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 ...
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.
...
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...
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...
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....