when building a desktop app in wpf can you read documentation of problems and safely subsititute 'app.config' when people's answer's refer to 'web.config'?
if so are there any glaring GOTCHAS you have to look out for?
tnx
...
In my company we have in mind a redesign of the user interface of an application and we would like to make it ... let say "fancy". We have in mind a simple story board but I doubt between WPF, XNA or DirectX. I prefer WPF so I'd need to know if it support the following capabilities and how difficult to implement are they:
Transparency:...
I'm trying to draw a line with soft edges, regardless of the slope.
Here's the code I have so far:
<Line HorizontalAlignment="Stretch" VerticalAlignment="Center"
Stretch="Uniform" StrokeThickness="5" X1="0" Y1="0" X2="1" Y2="0">
<Shape.Stroke>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<...
Hi,
I thought this may be straightforward question but did not find any definitive answer while searching net or SO.
I have created scrollbar style (using standard scroll bard template - Blend 2)
I am not sure how to apply this style "MyScrollStyle" to a ListBox Template .
I saw on ListBox template they have Scroll Viewer --> whic...
I've been profiling my application and finding that a lot of the delays are due to the WPF initializations. I've found an article on WPF optimization saying that building a logical tree top-down will have better performance than if it were built bottom-up. The example in the article is in C#. I'm wondering, when the UI is done in XAML, h...
In a WPF application, I want to build a "Find in Files" output pane, in which I can stream large quantity of text, without re-allocating memory at each line, like the TextBox would do.
The WPF TextBox has a single Text property which stores a contiguous string. Each time, I want to add content, I need to do textBox.Text += "New Text", ...
So I am working through my first WPF project and I am liking what I see so far. There was more of learning curve than what I anticipated, but nevertheless WPF is pretty cool. However, I am struggling a little bit with the data binding concepts. One specific question I have is how do I make my data binding declarations refactor safe? ...
I've just spent a very frustrating afternoon trolling Google looking for a commercial-grade WPF SplitButton control that will work in a toolbar. A SplitButton is one where you can click on the main part of the button to take a default action, or click on a little triangle on the right to get a drop-down menu of alternate actions).
I fou...
I want to write a C# application which can record a video capture of one of its WPF controls.
Is there a solution in .Net to record video from a control, or is there some library I could use?
My goal is to write a SketchCast application. The use case is the following:
launch SketchCast app and press record button,
write ink into a...
Hi
I have a collection of string.
I want to create an image out of each of the strings using a converter.
I tried binding the collection to a ContentPresenter, but I don't know what do to when binding to a collection since I don't know how many items are in the collection.
I don't want to put it in a container such as listbox, I want...
I have a ListControl that is populated with an ObservableCollection. I've also got a "Add new item" text box on the usercontrol as well. When I enter text into the textbox and click "Add" the item goes through the appropriate logic and adds to my ObservableCollection, which my ListControl reflects immediately. So far, so good.
HOWEVER. ...
Hi,
I want to set the control binding property "updatesource=Explicit" in cs file (dynamically) not in UI end. Please help me how can i do this?
...
I have a mediaelement tag in my wpf-window. It's playing a simple animation, similar to the windows xp copy file dialog.
The animation has an ugly pink background #FF00FF, that I want to be transparent. I've tried setting the color in the OpacityMask attribute, but the color remains. Any ideas on how I can remove the color from the vide...
I have a WPF app that uses Flash10c.ocx developed on a 32 bit machine. I didn't have to register the ocx on my dev machine, I just installed the latest flash, added a reference and started coding. When testing on a 64 bit system I get ye old "Class not registered" which I think mean I need to regsvr the ocx. Is it Ok to just copy the ...
How to determine whether a particular process is a WPF application running or not?
In Snoop, the author uses this code below to check this condition ~
foreach (ProcessModule module in process.Modules)
{
if (module.ModuleName.Contains("PresentationFramework.dll") ||
module.ModuleName.Contains("PresentationFramework.ni.dll")...
I am trying to get access to a textbox (textBoxAnswer) in the code behind of my WPF Page. The trouble is, because it is part of a DataTemplate, it is not auto-generated as a private member of the class, like it would be if I wasn't using the ContentPresenter + DataTemplate. (I am using the DataTemplate because I need to use DataTriggers,...
I've an WPF application where tried to implement MVVM pattern and Prism 2. I have a Usercontrol which has subscribed to an event fired from another Usercontrol. I would like to toggle visibility of few child elements in the subscribing control. Events are fired properly, even I am successfully able to bind data to some elements. How do I...
I want to navigate in my window with the arrow key. It works so far but if I reach the end of my window, focus wraps to the first main menu item. But I want that focus stops at the last control in my window.
private void Window_PreviewKeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Down)
{
elem.MoveFocus(FocusNaviga...
Please take a look at the following snippet:
<EventTrigger RoutedEvent="Image.MouseUp">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetName="TranslateTransform"
Storyboard.TargetProperty="X"
From="1" To="0" Duration="0:0:0.15"
/>
<DoubleAni...
Hello,
I am having some serious trouble creating a WPF TreeView with an Object databinding.
The application is config file editor. I have defined an Object structure which can be serialized to the correct XML format.
The problem I am having is formatting the object instance in the TreeView showing the correct hierarchy. The TreeView w...