wpf

WPF Ribbon and Plugin

Hi Everyone, I'm looking into using the Office Ribbon UI to help navigate around my application and provide different tools for the current selected tab. I need the Ribbon to be plugable. Each plugin has its own tab and using a DataTemplate displays what's needed. The main control area will have a navigation on the left and a Tab Co...

WPF - where can I find some window layout ideas/examples and resource files that will make my application look better

I enjoy working with WPF but I need a little more of "designer's touch" to my applications. I have been unable to find a good resource for WPF layout examples and color schemes along with the corresponding resource files.Are there any good resources out there to help developers make their applications really "pop". ...

Silverlight UserControl Binding

Hi I have a simple User Control Xaml: <UserControl x:Class="GraemeGorman_Controls.Navigation.NavigationItem" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Border x:Name="borderLayoutRoot"> <TextBlock x:Name="textBlockCaption" Text="{Bi...

How to disable border of WPF button when click it?

How to disable border of WPF button when I click it? I have create button like below, everything work fine except when I click on the button. <Button Background="Transparent" BorderBrush="Transparent"> <Button.Content> <StackPanel> <Image Source="xxx.png" /> <TextBlock Text="Change Password" /> ...

different image as tooltip for different rows in a datagrid in wpf

I am doing something in wpf where in a datagrid is populated. I need that for each row in the datagrid, when i point my mouse, a tooltip should be visible containing an image. And this image will be different for each row of the datagrid. How do i go about it. I have been able to do this: Image img = new Image(); BitmapImage bmp...

How to apply multiple effect on same element

How can i set mulitple effect like(shadow and blur) on same element. ...

WPF Rotate 3D sphere to arbitratry position

If I have a sphere that is being rotate by the users mouse, how could I (at any time, say via a button) apply some rotation transformation on the Camera so that a specific spot on the Sphere is facing the User? Currently I'm implementing a trackball approach that moves the camera around when the user clicks and drags, and I would like t...

WPF CheckBox not getting checked at initiation (data binding)

Hello, I've just come across this problem with my checkbox data binding. The scenario is: When I initialize the user interface (start the application), the checkboxes are unchecked, although the property they are bound to is set to true. When I click the checkbox, the property is set to false, but the checkbox is still shown as uncheck...

How can I combine MVVM and Dependency Injection in a WPF app?

Can you please give an example of how you would use (your favorite) DI framework to wire MVVM View Models for a WPF app? Will you create a strongly-connected hierarchy of View Models (like where every nested control's ViewModel is a property on a parent's ViewModel and you bind it to nested control's DataContext in XAML) or you would us...

Listing Properties / Checking if a Property is ReadOnly

Hi everyone! I'm faced with a couple of problems in VB.net: I have a series of objects, which properties I'm displaying in a grid for the user to edit. My first problem is: how do I get a list of all the properties of an object? Is it even possible? The datagrid control that I'm using accepts string values with the name of the property...

Prism - Conditional navigation

I'm using Prism for navigation in my Wpf application. I have a few modules, and each of them is registering themselves in a main menu through common commands sent using the IoC container in the bootstrapper. The menu entries are bound to common commands for navigation - which will open the correct view in some Region. All is based on rec...

UserControl (Add listview GridViewColumn from another user control)

Hi I want to add gridview column to a listview which resides in an usercontrol from another Windows screen (Parent). Example; <Canvas> <StackPanel Height="100" Width="300" Name="listViewHolder"> <ListView Name="LstView"/> </StackPanel> </Canvas> I want to use this user control in Windows how can i change the listvi...

What is the best way to reuse blocks of XAML?

I've got many user controls like this: PageManageCustomers.xaml.cs: public partial class PageManageCustomers : BasePage { ... } which inherit from: PageBase.cs: public class BasePage : UserControl, INotifyPropertyChanged { ... } Since PageBase.cs has no accompanying XAML file, I have to put the XAML that it refers to in each of...

Is it possible to use XamlReader from a XAML file to load in a block of XAML text?

I use the following DataTemplate in many controls: <pages:BasePageManageItems x:Class="TestApp.Pages.PageManageAddresses" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:pages="clr-namespace:TestHistorierung.Pages" xmlns:tk="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:x="http://schemas....

WPF: TemplateBinding to StrokeThickness of Shape does not work?

Looks like the following Ellipse in ControlTemplate does not get the BorderThickness, but why? <Window.Resources> <ControlTemplate x:Key="EllipseControlTemplate" TargetType="{x:Type TextBox}"> <Grid> <Ellipse Width="{TemplateBinding ActualWidth}" Height="{TemplateBinding ActualHe...

Where is the data for Properties.Settings.Default saved?

In my WPF application, I click on Settings.settings in the Solution Explorer and enter a StringCollection variable with a User scope: in my app.config I see that they are saved there: <userSettings> <TestSettings.Properties.Settings> <setting name="Paths" serializeAs="Xml"> <value> <ArrayOfStri...

Activity Databinding in wf 4.0

Hi there, i want to display some datatypes in a combobox. the datatypes are wrapped in the following class: public class TDataTypeBinder: INotifyPropertyChanged { private string name; public string Name { get { return name ; } set { name = value; On...

WPF - It is possible to get all UI controls with their values

It is possible in WPF to get all UI controls with their values? In example i have some window with some textboxes and in another window I want to get entered values from the first window textboxes or other input elements. In WinForms it was something like: form.Controls; ...

Adding Geometry objects data wpf

Just wondering if this is possible in wpf, Say we have a Path object p1 with geometry = g1 (same as p1.Data). Similarly if we have another Path object p2 with geometry = g2 (same as p2.Data). Now if we would like to know what is g2-g1 (same as p2.Data - p1.Data) is it possible. How about g1+g2? Please let me know if you have any suggesti...

WPF Menu disappears when nested too deeply

I'm trying to create a nested menu hierarchy from the main menu bar. For example, the main menu bar would contain a "Goto" menuitem that could be navigated as "Goto" -> "Chapter" -> "Chapter Name" -> "Subchapter name". The hierachy below "Chapter" needs to be added dynamically. When I do this, the menu disappears when it tries to di...