Hi
I need to move a multiple textboxes with a mouse cursor.
I decided that I do it that way.
If a textbox is clicked (and Control button is pressed) textbox is added to list of selected items. Then when button is still pressed and when mouse moves I do an operation of moving controls. However my code doesn't work well. Textboxes are movi...
I have an items control on my window and when its double clicked I want to open a second window. My problem is that if the items control is wrapped in a scroll viewer the new window comes up behind the main window instead of in front of it. If comment out the scroll viewer in this code the window opens in front as intended.
Whats go...
I can not bind the EditingCommand to the elementname Bla , how can I fix that?
<StackPanel Orientation="Vertical">
<ToggleButton Content="bold" IsChecked="{Binding IsTextBold}" Command="EditingCommands.ToggleBold" CommandTarget="{Binding ElementName=Bla}" />
<DataGrid
ScrollViewer.C...
I am learning WPF animation, and I created a simple demo app with a pretty straightforward animation. I have divided the main grid into three rows; a Buttons Row at the top, and two content rows that for the remainder of the screen, one red and one blue. Complete XAML is below.
There are two buttons, Show Red and Show Blue. When each bu...
I am using Soft7 2.0 from DA (unsigned theme) and I'm using the UxStyle service to load it.
Most applications adjust their UI just fine, but not WPF apps.
How can I make WPF apps also use the Soft7 UI? I'm not looking to force a certain theme on WPF, I just want it to use the current Windows theme.
I'm running Windows 7 x64.
...
Hi
I wanted to change default textbox context menu, so I created my own menu and them I assigned it like that
texbox.ContextMenu = myContextMenu
However I don't know how to restore default textbox menu (in a runtime). I need myContextMenu to show only when I click textbox with right mouse button (while holding Control button). In othe...
Hi All,
I am attempting to create a Tab Control Style that basically looks like buttons at the top that are centered and content panel below that displays the tabitem content.
I have am kind of new to templates but what I have so far works very well except one thing. I want to be able to set the default forground color for text element...
MS officially released MS Ribbon for WPF. This release doesn't support theming, it comes with a default blue theme, Office 2010 look&feel. Office 2010 has a button that allows users to hide/unhide the ribbon, but the released version of ribbon doesn't has one. Is it implemented ? How can I add one?
Thanks,
Tudor
...
I sell a WPF (.net 3.5SP1) based time tracking application, this application has no tablet/pen/ink related features what so ever.
I have a compatibility problem with Wacom tablets, on computers with a Wacom tablet my application may freeze, crush or, in the latest case - override the user's tablet settings (but not on every computer wit...
I consider this a pretty simple request, but I can't seem to find a conclusive answer in my searches. How can I determine the bounds of a particular visual element in my window, relative to some other parent element?
I've tried using LayoutInformation.GetLayoutSlot but this just seems to return a Rect at 0,0 and doesn't reflect the actu...
I'm working on a word processor-type app using the WPF RichTextBox. I'm using the SelectionChanged event to figure out what the font, font weight, style, etc. is of the current selection in the RTB using the following code:
private void richTextBox_SelectionChanged(object sender, RoutedEventArgs e)
{
TextSelection selection...
The summary of my problem: I had created a UserControl where I bound my dependency property "Scheme" to the Color property of a GradientStop, and it worked perfectly. Now, after converting my UserControl to a custom control, this binding no longer works, and I don't know why.
EDIT:
Replication of Custom Control Problem: http://www.mega...
This has me pulling my hair out. We have a workflow, hosted as a WCF service, which makes a call to another WCF service which then calls a stored procedure. Store procedure calls a merge, then iterates through a cursor that calls another sproc. The cursor count is the same as the source count in the merge. If the source count is high...
If I'm enumerating windows in Application.Current.Windows, how can I tell, for any two windows, which one is "closer" (i.e. has greater z-index)?
Or, to say the same in other words, how can I sort those windows by z-index?
...
i have two richtextboxes one below the other in my application.when the user start selection in one richtextbox and continue to the other richtextbox selection should automatically move to the second richtextbox.is there any way to do this type of selection.
thanks in advance,
dhyanesh
...
Is there a way to stretch a WPF Calendar control horizontally? The control will let me set HorizontalAlignment="Stretch", but that has the same effect as setting the property to "Center". It changes the width of the control, but the displayed calendar remains the same size in the center of the control. I'd like to stretch the displayed c...
Ok, so my previous question did not produce any useful answers, so I'll try to come from a different direction.
My application has, potentially, several windows. Given a point in screen coordinates, I need to find which window it "falls" onto - i.e. find the Window that is foremost of all windows containing said point.
If they were Vis...
I have a wrap panel full of rectangles, when you mouse over a rectangle it grows in size (using a storyboard animation) to simulate being magnified.
That all works fine, the problem is that if you mouse over the last rectangle in a row the magnification causes it to jump to the next line (because it grew too big to fit on the current l...
I would like to be able to make an application that uses open layers directly on my WPF application. I found that I can create a browser object and have that invoke JavaScript, but I don't need a full browser. Is there some scripting object that I can use and bypass the browser object all together?
...
I already tried for whole day, getting mad.
I have a ListView, with ListView.View as GridView.
Default, the mouseOver is working, ListViewItem get highlighted when I mouseover, and get selected when I click it. But after I modified the ControlTemplate, I get the template I want, but the highlight and select is gone.
I use trigger, but...