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...
Anything is more compact (or otherwise better) than
<x:Array x:Key="titles" Type="System:String">
<System:String>Mr.</System:String>
<System:String>Mrs.</System:String>
<System:String>Ms.</System:String>
</x:Array>
?
...
Hi,
Im trying to display a website (http://www.google.com) in a flowdocument i got. Found a demo on the web where this guy makes a hyperlink in a flowdocument and that link points to the google webaddress. Clicking the link makes the google website open in the flowdocument. How to do this in codebehind?
i have tried the following without...
i've built my first wpf application, nothing fancy, but i wanna make it look cool by adding a setup, ive researched in the internet about some free utilites to do it, but since its a wpf app, i wat the setup to go along those lines... any idea how i can create a custom wpf setup wizard?
...
I would like to make a ListBox function like a Grid. Each time a new item is added it should look like a a new Grid Row was added (with a height of star). So if there are two items they will each take up half of the available space. At some point the Grid row will be smaller than the items MinHeight at which point the Grid will expand an...
I don't understand the class TextCompositionEventArgs.
There are members of type string named ControlText,SystemText,Text. Then there is a field TextConmposistion which itself contains the members ControlText, SystemText and Text again and additionally the fields SystemCompositionText and CompositionText.
public class TextCompositionE...
I'm starting a new project in Wpf, and am now looking into using Prism. For now I'm simply trying to set up the navigation of the application using Prism. Unfortunatelly my lack of experience with the framework makes it a bit difficult to get started..
To be more precise about my first challenge I have an application with a "navigation...
I have UserControls containing other controls. I want that if I set a Foreground color for the UserControl, all child controls automatically inherit it. I have the same problem with font style/size.
Can I set these properties somehow to auto/inherit? Is this possible to set all subcontrols without a loop?
...
Hello!
I created a WPF application that has many buttons.
Now the customer wants to change all the buttons to icons.
For example:
All the OK buttons should have the same icon, all the cancel btns and so on.
I want to put in all the buttons Style="{StaticResource ButtonStyle_OK}", Style="{StaticResource ButtonStyle_OK}" etc.
Now my qu...
I'm looking for something along these lines:
<TextBlock
Grid.Column="1"
Text="Welcome, {Binding UserName}!" />
This will of course actually display the text "{Binding UserName}" to the user rather than decode it, but I know you can do something like this with ASP.NET, so I'm hoping there's a way to get this to work in WPF.
I'...
Ok, I am having more problems with my C# WPF ListView control. Here it is in all its glory:
<Window x:Class="ebook.SearchResults" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Title="ISBNListView" Height="503" Width="1004">
<Grid>
<ListView Name="listView1" Ma...
Is there any effect in WPF I could Make an image shiny etc.?
(I want to use it for a hovered image)
A mask or something like this would be great.
...
Hi,
I'm trying to position a rectangle in an InkCanvas. I am using the following method. Unfortunately when I add the rectangle it gets displayed at (0,0). Although when I query to see the whether the left property is 0 I get a non zero values. Does anyone know why this might be?
Cheers,
Nilu
InkCanvas _parent = new InkCanvas();
pri...
We're using Views and ViewModels in this project, and as a result we're trying to have as little in the code-behind for the View as possible.
I'm trying to tie the MouseDoubleClick event for a WPFToolkit Datagrid to the same code that a button in the same view already is using.
The button is declared as the following:
<Button Content=...
I'd like to make a textbox with a button inside, something like a date picker, but not exactly. Or it can be a combobox inside the textbox, so you can switch the text box "mode".
Can you help me?
...
I'm currently introducing Prism to a new Wpf application, and am using the MVVM pattern. My initial approach of structuring the Wpf application was to add one project to hold the model classes, one to hold the viewmodel classes, etc. These might be split at a later time to avoid having different logical components in the same project. Ho...
I'm new to Prism, and I tend to just do as in the samples I see; place the Regions inside an ItemsControl. I have read that more controls can be used for defining region, but not all. However, I haven't seen an overview on what controls can be used to define Prism regions and not. Is there a rule or a list to it?
<ItemsControl x:Name="...
Following on from my other post about primary keys I am wondering if there is a performance impact in using a string value as the key in WPF comboboxes. For example
<ComboBox x:Name="TestCB" ItemsSource="{Binding Path=Products}" DisplayMemberPath="ProductName"
SelectedValuePath="ShortCode" SelectedValue="{Binding Pat...
Still picking my way through learning XAML/WPF. If someone can show me how to accomplish the following - it will go a long way to helping me develop my next project (and several similar projects down the road).
Say I have a collection of objects that defines objects to be drawn on a canvas. The objects contain all the information neces...
I am learning WPF these days, it's my desire to develop a WPF app. I am looking for ideas on what should I develop. I have ideas like PhotoBrowser, Twitter client.., but i dont know how to start with
Has anyone developed something as a part of learning, if yes then please share it here.
Thanks in advance!
...