Hi
I created my control which looks like that
<UserControl BorderBrush="#A9C2DE" HorizontalAlignment="Left" x:Class="WPFDiagramDesignerControl.Components.UcWBSBlock"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="86" Width="151" >
<UserControl.Resourc...
Possible Duplicate:
How do I display a files Properties dialog from C#?
Hello. Is there a way to show the exact (ie. not simulated) Properties dialog in WPF? The one in Explorer's context menu? Thanks
...
Hello,
when I bind the wpf datepicker SelectedDate I get this 2010-08-25 08:15:33.
As I do a comparison:
if (SelectedStart >= SelectedEnd)
return false;
else
return true;
I get always true. I have to compare the DATE without the TIME. But I do not want to convert to a string and parse this then as a Date. That would be sill...
how can i, in C#/WPF implement an application where i can open/close a new tab? i am thinking i will have to create a "template" user control and programmatically, create a new instance of the control (tab item) and add it into the tab control?
i am new to C#/WPF so how can i get started with this?
another thing is how can i modify o...
Hi,
I am writing an application which consists of a master "server" database (most probably sqlite) and a client side replica with client specific records (again, Sqlite). The clients may only be online occasionally or may be on slow 3G connections; I need a solution to reliably synchronise content either on demand or at scheduled inter...
Hi,
I want to define control styles in a resource dictionary and use those for theming of Silverlight 4 and WPF 4 applications with as little adaption as possible.
Thats why I need to know all differences between SL and WPF theming, so that most of the XAML will work on both platforms with little to no changes.
The only difference tha...
assuming i got this main window xmal:
<Window x:Class="MVVMTUTRIALS.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:views="clr-namespace:TestMvvm444.Views"
Title="Window1" Height="300" Width="400" Loaded="Window_Loaded">
<Grid>
<views:CustomersLi...
The following is similar to what I'm trying to accomplish. However, I get an "Invalid PropertyDescriptor value" error on the Template Setter. I suspect it's because I didn't specify a target type for the Style; however, I don't know the container type for ItemsControl.
<ItemsControl>
<ItemsControl.ItemContainerStyle>
<Sty...
Using Expression Blend ?
Let's say I got:
Public string FirstName{get;set;}
Edited : 23/8/2010
Thanks for tha answers,
But I'm Afraid people didn't understand my question.
I do know how to Bind Data in Code or in XAML
My question is if there is a way to do all that with the Expression Blend Interface without writing it directly. On...
I know how to add a control to the canvas/grid/layout- simply by calling canvas.Childern.Add(). However, when I want to embed something inside a textblock, I can't seem to find the method for it. A textblock doesn't contain a Add method or anything, so I'm at a bit of a lost.
The XAML I'm trying to turn into C# is:
<TextBlock x:Name="t...
I am working on WPF project. I create a usercontrol containing a combobox; which represent boolean value(True or false). And I register a DependencyProperty 'Value' for my usercontrol.
Whenever combobox selection was changed, I will update the 'Value' property and also when 'Value' property is update I will update combobox.
But I found t...
I have an existing application that has some parts of formatted text-blocks (standard formats such as bold, italic, unordered list, …) saved in the database. Currently these text-blocks are saved in a custom xml format. The editor is created with a WPF-RichtTextBox.
Since I have to make the editor more user-friendly and extend the appli...
I am facing problem in WPF Browser application. I followed everything showed over Internet, but couldn't figure it out. I will be very glad if you please solve the problem. May be i am missing something which is not showing in the online tutorials.
The error showing in my browser(IE) is:
"Startup URI: D:\Personal works\R&D\Desktop\WPF...
So I've read that ActualWidth may equal 0 until it is fully loaded. I added the event handler, like so, to make sure it's fully loaded: text.AddHandler(TextBlock.LoadedEvent, new RoutedEventHandler(textBlock_Loaded)); In the textBlock_Loaded event, I have TextBlock tb = sender as TextBlock; textBlockWidth = tb.ActualWidth; I need to use ...
So here is the XAML that I have:
<ItemsControl ItemsSource="{Binding Path=Groups}" ItemTemplateSelector="{Binding RelativeSource={RelativeSource AncestorType=Window}, Path=ListTemplateSelector}"/>
Here is my ListTemplateSelector class:
public class ListTemplateSelector : DataTemplateSelector {
public DataTemplate GroupTemplate { get;...
This is slightly related to the question asked here yet the answer does not apply to my case as I am not using threads:
WPF Not closing properly
I have converted one of my WinForm application to a WPF application, nothing drastic needed to be done except for change a few words to the WPF/C# 4.0 equivalents (MessageBoxButtons to Message...
I have a listbox with a datatemplate for the items.
The problem is that selecting an item doesn't work by just clicking anywhere on the item; I have to click on a specific sub-element for it to actually work.
My item has an image and a textblock.
If I hover the mouse over the image or text-block, I actually see the hover-effect.
If I ho...
Hi,
I'm working on a wpf c# app and I have a question.
I have a storyboard which at the end sets the property of a grid to Visibility.Visible.
Now on my code behind when I try to set the visibility to hidden again after the storyboard has run, the visibility won't change!
Is the storyboard still running somehow or is a storyboard set p...
Hi,
I'm working on a wpf c# app, I have a combobox which is binded to an xml value of a selected item of a list box. Here is the code for the combobox:
<ComboBox Margin="164.301,268.036,8,0" VerticalAlignment="Top" ToolTip="Cue trigger" DataContext="{Binding SelectedItem, ElementName=listBox_Copy}" SelectedValue="{Binding X...
Hi folks,
On my quest to implement a very simple 'drag' mechanism to my application (which consists of multiple canvasses nested inside a 'parent' canvas) I've come up with the following bits of code:
(Showing only the relevant bits to save space)
MainWindow.xaml
<Canvas Name="parentCanvas" Background="#FFE8CACA">
<Canvas...