Thanks to this question (click me!), I have the Source property of my WebBrowser binding correctly to my ViewModel.
Now I'd like to achieve two more goals:
Get the IsEnabled property of my Back and Forward buttons to correctly bind to the CanGoBack and CanGoForward properties of the WebBrowser.
Figure out how to call the GoForward() a...
I'm looking for a good WPF/XAML designer to do some contract work, but I don't know where to find one.
Where's the best place to find good XAML designers for hire?
...
Hi
One of the things I really like with WPF is the extent to which my views can be built declaratively, ie. using XAML rather than code-behind.
Now I'm really stumped by InputBindings, because their CommandParameters don't accept bindings. I imagine my case is pretty generic and straightforward, but I cannot see how I can do it without...
Is there a way in XAML to determine if the ListBox has data?
I wanna set its IsVisibile property to false if no data.
...
Ok for some reason I've set up an event trigger for window.loaded in WPF to fire the AnimationBoard storyboard but for some reason it doesn't want to load. Any ideas out there? Thanks! Below is the code:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
...
Is it possible to create your own widgets in XAML?
...
In Windows Forms the default behaviour of a TabControl is to have the tabs spill out to a scrollable area if they consume too much space (MultiLine = false).
What is the best approach to achieving this behavior in WPF?
UPDATE
I was trying to find a solution using TabControl.ItemsPanel but it seems anything I put in there gets complete...
In XAML, if you insert
<TextBlock Text="Hello World" />
You will see the words "Hello World".
If you insert
<TextBlock Text="{Binding}" />
it will trigger the data binding functionality. But what if I really wanted the display text to be "{Binding}"?"
Are there the equivalent of escape characters in XAML strings?
Or is my only s...
In one UserControl I have option buttons that are supposed to change the visibility of rectangles in another user control and I can't find out how to do this.
Can anyone give me some code example for this?
...
Currently I have use the following approach to setup change notification on any of my properties that I bind to in xaml:
class MyClass : INotifyPropertyChanged
{
string name;
public string Name
{
get { return name; }
set
{
name = value;
NotifyPropertyChanged("Name");
...
Currently in my XAML editor view I am experiencing frequent seizing episodes of around 3 seconds each. I've been able to narrow down the reason for it to custom namespaces.
By default, my page has the 2 default XMLNS declarations:
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.m...
In my presenter I have this property:
public List<string> PropertyNames { get; set; }
And I want to list out the names with a ItemsControl/DataTemplate like this:
<ItemsControl ItemsSource="{Binding PropertyNames}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Value}"/>
</DataTe...
Hey All,
So I'm integrating WPF into a Windows Forms application I've built. One of the big hurdles I'm running into is that when the Markup compiler generates the .g.cs files in the background, the InitializeComponent method is being generated incorrectly.
Here's what's generated:
System.Uri resourceLocater = new System.Uri("/MapWorks...
I want that from the PreviewTextInput handler a new control is created and focus is set to it. But even after calling Focus() on the new control, the cursor is still in the old textbox.
The handler UserControl_PreviewTextInput is registered on the UserControl which contains this textbox if this matters.
private void UserControl_Preview...
How can I prevent a WPF Expander from expanding when its header is clicked? I would like my Expander to expand or collapse only when the expand button itself is clicked.
I imagine the answer has something to do with canceling a bubbled event. If possible I would like to implement the solution in XAML while avoiding retemplating the enti...
Hi!
I have a Contact entity that exposes a navigation proeprty for child Phone entities.
Public Class Contact : Inherits EntityObject
Public Property Phones() As EntityCollection(Of Phone)
EndClass
I want to Xamly retrieve the first phone of the bound contact.
I tried the following but it doesn't work.
Note: I also tried Phon...
In XAML, how do you define a context menu for treeviewitems that are distinguished by different attributes?
...
I am using an ObjectDataProvider declared in the XAML as follows:
<UserControl.Resources>
<ObjectDataProvider x:Key="odpTheList"
ObjectType="{x:Type library:StaticClass}"
MethodName="GetListOfItems" />
</UserControl.Resources>
Basically it calls StaticClass.GetListOfItems() to get t...
I'm working on a Silverlight templated control (i.e. it derives from Control and has its look implemented as a ControlTemplate in generic.xaml) and came across the need for a ValueConverter in one of my bindings. Normally I'd just create an instance of the ValueConverter in the Resources of the control working with but I can't figure ou...
I am working on a WPF solution that has several WPF projects--en EXE and several user control DLLs. I'm building a Composite WPF app, and each of the DLLs are modules.
I have created a resource dictionary to provide common styling for all WPF visual components, which I have added to each project in the solution. It works, but it's a rea...