Hello guys, I've got a problem with my program.
Here is the link: http://dl.dropbox.com/u/2734432/TabbedInterface.7z
Once you have opened both tabs, you'll start losing the references to other collections of the current item in the view. That is because these IDs are nullable and once you switch over to the other tab they'll become nul...
The WPF ListBox doesn't have a DoubleClick event, at least not as far as I can tell. Is there a workaround for this issue that would let me double-click on an item to have an event handler do something with it? Thanks for your help.
...
In the following template, the button is displayed with Normal image when the application is started, but when the mouse is over, the button doesn't get changed to mouse over image.
Appreciate your help!!! I want some solution without major changes in the design.
<Style TargetType="{x:Type local:ButtonControl}">
<Setter Prope...
Guys, I have a basic WPF application. Contains App.xaml as always and a Mainwindow.xaml.
I've created also some pages like page1/2/3. I want to load for example page1.xaml in mainwindow.xaml. Is this possible? And also want to close it so the content of mainwindow.xaml will stay in there.
I dont want this to be a navigation application ...
When the user starts typing in a combobox, auto-complete kicks in and shows the closest match. What I want to do is have the drop-down become visible as well, as if the user clicked the down arrow. Can this be done and if yes, how?
...
I have the following class:
public class LooklessControl : Control
{
public List<int> IntList { get; private set; }
public int CurrentInt { get; private set; }
private int _index = 0;
static LooklessControl()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(LooklessControl), new FrameworkPropertyMetadata(t...
I found code to use a breadcrumb instead of the navigation buttons for my pages. This code works perfect with setting a page as the startup. My problem is that I need to have a window with a frame control as the startup and this is causing the breadcrumb to not show at all. I seem to be missing something with my styling. The types us...
I have a form with TextBox and two Buttons. One button has IsDefault property set to true, and IsCancel set to true for other button. TextBox is CommandTarget for both buttons. When I'm pressing Enter or ESC keys on TextBox, it works as I'm pressing on corresponding button.
I want to remove buttons from the form. They should not be vis...
I'm using WPF with .NET 3.0.
I have a relatively simple DataTemplate defined as the CellTemplate for a GridView. I expect the DataTemplate's VisualTree property to contain a FrameworkElementFactory, but the property is null when I try to access it from the GridViewColumnHeader.Click event. Why is the VisualTree null? I need to access...
I have a list of ToggleButtons being used as the ItemTemplate in a ListBox similar to this answer using the MultiSelect mode of the Listbox. However I need to make sure at least one item is always selected.
I can get the proper behavior from the ListBox by just adding an item back into the ListBox's SelectedItems collection on the List...
With the code below, the control flickers whenever the image is changed for MouseOver/MousePressed? I am using Storyboard and Double animation.The image display for the button borderis very smooth with WPF Triggers but not with Storyboard. Can anyone help me to fix this issue?
<Style TargetType="{x:Type local:ButtonControl}">
...
Hi
i have a simple question. Ofcourse it has many answers but i cannt choose right keywords to google.
How i can bind a subclass to my wpf control?
for example:
It's my class.
public class SiteFieldInfo<T>
{
public string Name { get; set; }
public T Value { get; set; }
public List<string> PositiveXPathE...
Hello,
I have a quadratic bezier curve and I need the Y coordinate of a point on the bezier curve for a given X coordinate. I know that in pure maths this can be easily done, but I'm wondering is there's a simple / another way for this in C# / WPF? Is it possible to get the single points used by C# / WPF for drawing the bezier curve and...
I have a relativly simple question that I can't seem to figure out. I have downloaded some theme files in an XAML format off the internet and I would like to use them as my themes in my WPF application. How do you do this? All help is appreciated!
...
Hi, I'm pretty new to WPF and i'm trying to load a XAML window and pass a variable to this XAML in its constructor or so, because i need it to load some items from this passed variable.
Could anyone point me to the direction of how to go about this please?
How does one start up a XAML window and give it a variable please?
Thanks in ad...
With WPF4 you can have non-blurry text by adding TextOptions.TextFormattingMode="Display" and TextOptions.TextRenderingMode="Aliased" to your xaml:
<Window
TextOptions.TextFormattingMode="Display"
TextOptions.TextRenderingMode="Aliased">
This works fine for me except for when I draw text with DrawingContext.DrawText like this:
...
I've created this template, which uses a style applied to the ContentPresenter so that I can bind the data object's Column property to Grid.Column, allowing the items to determine for themselves which column of the Grid they go into:
<DataTemplate DataType="{x:Type local:MyObject}">
<ItemsControl ItemsSource="{Binding Items}">
<It...
My stackpanels have gaps between each item (TextBlocks). You can see through to whatever is behind on the background Canvas. I don't want gaps.
I tried setting the margin of both the stackpanel and textblocks to zero. Didn't fix it.
Creating the same thing in Blend shows no gaps (AFAIK).
Here you can see the object behind mouse/moose s...
Hi
I working on "layoutToolkit:Accordion" and wanna change AccordionItem's template (like a custom button with many visual graphic effects).But after that, AccordionItem lost Pre-template and became button.How can I Change Template AccordionItem's?
<layoutToolkit:AccordionItem Header="like" >
<layoutToolkit:AccordionIt...
Hi
I'm new in WPF so I try to create a WPF UserControl. My problem is about the style of the user control I've Created. On a design time I got this error message
Can only base on a Style with target type that is base type 'RichTextBox'.
at System.Windows.Style.Seal() at
System.Windows.StyleHelper.UpdateStyleCache(FrameworkElement...