I have an Project object it has a Name Property.
The ViewModel for project contains a ICommand called SaveCommand which persists in the database.
I have a textbox in my UI that binds to Name
<TextBox Text="{Binding Name}" LostFocus="??????" />
How do I bind my SaveCommand to the TextBox ecent LostFocus? So when the textbox loses foc...
I really love the 9-slice feature in Flash/Flex. It is a great quick way to make liquid vector layouts. Take a look at:
http://www.screencast.com/users/rfairchild/folders/Jing/media/e1493b02-e258-4283-b5e0-d72e517112ae
I am using the selected object in AI file to setup a 9-slice grid (I am not using 9s to scale corners!). I only want...
I'll just show an example
<Style TargetType="{x:Type f:WorkflowPage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<DockPanel Background="Red">
<StackPanel Style="{StaticResource Header}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
...
By Using reflector you can see that WPF UserControl is overriding AdjustBranchSource.
internal override void AdjustBranchSource(RoutedEventArgs e)
{
e.Source = this;
}
My very own problem regards inconsistency caused by that issue.
When an element is based inside a user control or outside. The Source parameter behaves differ...
Hello,
In the WPF Code
<Button Click="onClick">
<TextBlock>
<Hyperlink >Click Me!</Hyperlink>
</TextBlock>
</Button>
How do I stop the HyperLink from receiving mouse events? I don't want it to highlight, change cursor or anything.
Thanks in advance!
James
...
I've created a simple WPF User Control Library. In this project there's a single class UserControl1. I've a Canvas on this control called Canvas1. The code for this class is given below.
Class UserControl1
Public Sub Draw()
Dim t As New TextBox
t.Text = "Whatever"
t.Name = "t"
t.RenderTransform = New TranslateTransfor...
hello all,
We are currently working on porting an old VB6 application to WPF. The plan, in phase one, is to port several key forms and not all the application. Its been brought up that we might try and open some of the old VB6 form from within the WPF application (as modal forms), thus providing greater functionality then intended for t...
hi there,
when developing wpf applications i never use the graphical editor ( aka cider). only the xaml editor. as "cider" needs quite some resources when loaded i wonder if there is a way to completely disable it. This may speed up loading xaml files.
i heard that this is possible, but as google does not return what i`m looking for, i...
I have read questions and answers about this topic but I still have some question without answer.
If I create a method to convert Entity to DTO i'll run into some circular calling methods (probably caused by errors in Model), for example:
Product class has a property Supplier that point to a Supplier class that contains a List property...
Pixelmator [1] has a quite impressive GUI. So far I've just played a bit with it. If you are using a filter, which is applied to a part of a picture, the window in which the parameters of the filter can be set is connected with a rope to the concerning part of the image (see 2).
However I was wondering about two things. How do I impleme...
Is there any way to change all scrollbars so i can make them look less windows? i dont dislike windows but in this case the scrollbar just looks stupid..
...
I took this WPF-VS2008 ScreenSaver template and started to make a new screen saver. I have some experience with winForms-platform (GDI+) screen savers, so i am little bit lost with WPF.
Background-element for my screen saver is Canvas.
A DispatcherTimer tick is set to 33 msec, which is ~ 30 FPS.
Background-color is just one huge Linea...
Lets say i have a listbox with many items so that a vertical scroll comes up, but i have hidden the scroll bar with
ScrollViewer.VerticalScrollBarVisibility="Hidden"
Is there any way i can add a button that would scroll down for me? iv tryed to add
Command="ScrollBar.LineDownCommand"
to a button but that didnt have any effect.
...
I am trying to implement a "underline\fix while you type spell checker" can anyone point me to some examples.
...
I saw a code example that creates a method "Window_Loaded" which is called by XAML's "Window Loaded" event:
<Window x:Class="TestModuleLoader.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300" Loaded="Windo...
Hi,
I'd like to determine if there is an InlineUIContainer (or BlockUIContainer) at the current Caret position in a WPF RichTextBox.
Currently I have a RichTextBox as follows;
<RichTextBox SelectionChanged="RichTextBox_SelectionChanged">
<FlowDocument>
<Paragraph>
<Run>Some text before</Run>
...
I'm using WPFToolkit's Datagrid control. I can populate the datagrid, but I'm having trouble with the DataGridHyperlinkColumn. I would like it to visually display the link as the Person's name, but for the link to go to whatever UriLink's value is.
How can I do this? What am I doing wrong?
Xaml:
<dg:DataGridHyperlinkColumn Header...
The goal is to let the user to hide/show/move/resize columns and save this layout to be able to restore it when the app re-starts.
I'll tell you first how I do it. On GridView.Columns, I attach to CollectionChanged, as well as to each Column.With dependency property. When any of the events is fired, I save the order, visibility and width...
Right, this has been bugging me for a good few days now and I'm getting nowhere. I think I need ot start it again from the begining. Basically I'm doing a project at school which requires me to store and manipluate data in an Access database (Office 2007 format, accdb). I'm using WPF with VB to do this, and I'm using the datagrid from th...
Hello,
I am having fun with WPF and got a problem. I have googled and found this website that has the same problem of me but without any working solution.
The problem is that I have a button that do some processing of data (around 30 sec). I want to have the button to disable and to have log writing in a text box... the problem is that...