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?
...
How do I bind a view model property to the ListBox.SelectedItem property?
I have created a simple MVVM demo to try to figure this one out. My view model has these properties:
private ObservableCollection<DisneyCharacter> p_DisneyCharacters;
public ObservableCollection<DisneyCharacter> DisneyCharacters
{
get { return p_DisneyCharact...
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.
...
Hello, i am fairly new to implementing 3d interfaces..and i was trying to make a data carousal (i already made a cube and a house and some other nice little stuff).. The whole implementation is made in C# code behind..with just a little code written in XAML
my problem is when i implement my data window..in a 2d design it looks perfect....
I am trying to make a WPF Application containing a treeview, whose data will be populated from the database. Since I am new to all this, I tried using the simple tutorial that can be found at http://dev102.blogspot.com/2007/12/how-to-use-hierarchical-datatemplate-in.html
I tried following the steps exactly, but all I am getting is just ...
Hi,
Im having a grid in whre the user can specify an image to be shown, and its alignment. If the user chooses a small image and aligns it bottom -right, i want to provide the user with an option to assign a background color to fill in the rest, eg. pink/black/white. When the user now chooeses a small image the background is always white...
I am trying to populate a datagrid (or gridview) as a child elment of a treeview from the database. I am able to get data from the DB in the tree, however, it doesnt seem to work for the datagrid. Here is my xaml code:
<Window x:Class="AttemptUsingHirarchichalData.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presenta...
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"
...
I have a Window with two controls: control1 is a control that has a bunch of buttons that execute RoutedCommands; the second control is a TabControl that is bound to a list of documents. The TabControl ContentTemplate is a user control, control2, that has a ListView. I would like to bind the DataContext of control1 to the ListView of con...
In Windows 7 (and Vista) is WPF used for the taskbar, the widgets, explorer or for anything else of the OS ?
...
I'm very confused by the MSDN samples. And all the samples I find generally revolve around text items in a StackPanel or something similarly simple.
Given an array of numbers as the ItemsSource -
ItemsSource = { 25 , 50 , 75 }
the ItemsControl should procuce only this:
<PolyLine Points="0,25 1,50 2,75" />
As shown, each item...
Is it possible to create your own widgets in XAML?
...
Hello, is it possible to display a Modal Window from a WPF User Control, that is a child of an ElementHost, and set the owner/parent of the Modal Window to the containing Form control?
I'm guessing you can't do this, as the Owner property takes an instance of Window, where as I want to set it to the parent of the Element Host control, w...
I'm setting up a program that has three different windows. I'm just using ..
Window1 win1 = new Window1();
win1.show();
...for each of the extra windows. The problem is that each window opens up a new tab on the taskbar. Is there anyway that I can still have my three windows with only one related item on the taskbar?
If possible, I...
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...
Hi
I have a treeview control and all the nodes populated from xml. The tree has 5 elements in the first level and each contains several elements in level 2. My requirmrnt is only first element should be expanded when the startup of my application. I have written the method like this
public void SelectAndExpand(ItemsControl ParentContain...
I'd like to get an event for any expansion of a treeviewitem in my treeview.
The reason for this, a bit unrelated to the original question:
I am creating a tree that relates closely to an xml file tree, but I am allowing an include element in the xml so the tree can go across multiple files. I'd like to set the itemssource property of...
I have an image in a C# WPF app whose build action is set to 'Resource'. It's just a file in the source directory, it hasn't been added to the app's resource collection through the drag/drop properties dialog. I'm trying to write it as a stream, but I can't open it despite trying quite a few variations of dots, slashes, namespaces and se...