I've got a WPF app that references a WPF controls library. When I try to launch (myWindow.Show()) a window that is inside the control library, I get the following exception:
InvalidDeploymentException
Application identity not set.
The bizarre thing is that I'm not doing a click once application, so why is it complaining about this?
...
I have an app with grid with 3 columns. The grid splitter between the first and second columns works just fine. To get the splitter over to be between the second and third columns I made a column for the splitter. (So now the the third column is really the fourth.)
When I resize the other columns also shrink. I assume that is becaus...
Is it possible to interact with the source code of a local or remote page in real time through the use of the WPF browser control.
A simple example of what I mean would be where the user can click a button that will bold the selected text. Sort of like a WYSIWYG HTML editor but using the browser control.
Is there a way to interact with...
When I try to use the same list with multiple combo boxes, the selection is shared with all the combo boxes.
I want the combo box to treat the datasource as their own and selection should not be shared.
<ComboBox ItemsSource="{Binding ActiveLanguages}" DisplayMemberPath="Name" />
ActiveLanguages is a ObservableCollection and is a sin...
Hi
Our application starts several background processes and put their output into TextBoxes - each in a separate TabItem in a TabControl. I want the TextBoxes to automatically scroll to show the last output line, so in the data handling function that adds the output/error line to the text box, I also call TextBox.ScrollToEnd():
void OnSe...
I have a pretty simple 3D scene that is roughly built up like this:
<Viewport3D>
<ModelVisual3D>
<ModelVisual3D.Content>
<Model3DGroup x:Name="Group1">
<GeometryModel3D x:Name="m1">...</GeometryModel3D>
</Model3DGroup>
<Model3DGroup x:Name="Group2">
<GeometryModel3D x:Name="m2">...</Geom...
Hello, please take a look at the following line
<TextBox Text="{Binding Price}"/>
This Price property from above is a Decimal? (Nullable decimal).
I want that if user deletes the content of the textbox (i.e. enters empty string, it should automatcally update source with null (Nothing in VB).
Any ideas on how I can do it 'Xamly'?
...
How can I change the style -ONCE- for the scrollbars shown by all controls (listbox, treeview, scrollbarviewer, richtextbox, etc...)?
...
Hi,
I have a usercontrol which contains a TreeView control. I am using MVVM pattern.
I want to reuse this user control in different windows, each time binding the usercontrol to a different datacontext.
<UserControl Name="UserControl1".......>
..............
<TreeView ItemSource={Binding ...}...>
<Hi...
Here is an example case to elaborate:
I am dynamically creating a simple Bar Graph using an ItemsControl in my View and binding the items to a collection of BarViewModels (each containing percentage a value) in my BarGraphViewModel.
Each bar should have a different color. The colors should be chosen from a collection e.g. {Color1, Color...
I'm sure there is a simple answer to this but I can't seem to find it. Most examples for binding TreeView nodes are about using a ListView to show the node's details. In the scenario I am working on I've got a TreeView data bound to an Xml document using a simple MVVM pattern. As each node is selected in the TreeView I want to show a dif...
I have this markup extension
public class NullableExtension : TypeExtension {
public NullableExtension() {
}
public NullableExtension( string type )
: base(type) {
}
public NullableExtension( Type type )
: base(type) {
}
public override object ProvideValue( IServiceProvider serviceProvider ...
Hi.
I want to set the sorting of a WPF DataGridTemlpateColumn to a property of one of the child members in the row.
For instance, the DataGrid's ItemsSource is an Array of computers, each of them has a screen, each screen has a button.
I want the sorting should be {Binding Screen.Button.Name}.
How do I do that?
...
I'm using a WPF TreeView control, which I've bound to a simple tree structure based on ObservableCollections. Here's the XAML:
<TreeView Name="tree" Grid.Row="0">
<TreeView.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding Path=Children}">
<TextBlock Text="{Binding Path=Text}"/>
</Hierarc...
I have a number of usercontrols inside tabitems in a tabcontrol in a main Window. One user control per tabitem all inside a window.
After some code executes inside one of the controls (inside one of the tabitems), I want to enable/disable other tabitems.
How can I do it?
...
I have a Listbox with a UserControl as the DataTemplate. This UserControl has a button to remove that item from the list.
<ListBox x:Name="FileList" ItemsSource="{Binding Files}" >
<ListBox.ItemTemplate>
<DataTemplate>
<Views:FileItem/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
The ItemSource is ...
I have XML similar to the following
<?xml version="1.0" encoding="utf-8"?>
<foo name="FooBar" xmlns="http://mydomain/myapp/ver/myschema.xsd">
<bars v="test">
<bar bat="one"/>
<bar bat="two"/>
<bar bat="three"/>
</bars>
</foo>
How do I map this in WPF, it works if I don't set the default namespace, ho...
hi,
I would like to place a treewview usecontrol inside a button as a Popup. When I opened popup by clickin gbutton for first time, it works. I loaded some data depending on treeview selected time and closed popup. When I open the popup second time to choose another tree view item, it is not letting me to choose. Iam able to expand chi...
I have a model that updates itself in the background. Currently I'm using INotifyPropertyChanged on the Model, but I've been told thats a bad idea as the model should be UI independent.
Is there a prefered pattern for updating the ViewModel when the Model changes in the MVVM design pattern?
...
Hi,
I have a Canvas within a ScrollViewer. The Canvas have a size of 600x600 and the ScrollViewer
400x400. If i scroll to the right side, i can't see 200pxl left side of the Canvas. Therefore my area of Canvas begins at x=200 but actually the visible area at x=0. Is there any way to get so "visile area" of a control by a property or some...