I have a Viewbox with a number of TextBlocks that are scaled and positioned perfectly by the ViewBox. Something like this:
<Viewbox Stretch="Uniform">
<Canvas Width="100" Height="100">
<Ellipse Width="100" Height="100" Stroke="Black"/>
<TextBlock Width="100" TextAlignment="Center" FontSize="12">Top Center</TextBlock>...
Hi everyone. The issue we’re having is we have a wpf richtextbox, and we’re pasting images into it, but we want to be able to limit the physical data size, not the display size of the images being pasted in. In other words, if a user paste in an image that’s 2MB, we want to automatically shrink it down to a more manageable size. We ha...
Why the Path and Polyline have different renderings in WPF?
This is happening both in code and blend, maybe a I missing something or this
is just a anti aliasing effect.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="GeometryMonky.Window1"
x:...
I'm not very familiar with C# so far, at least not enough to feel confident when choosing ways of doing something when it comes for the first time.
What could be the best way to organize SQL Server database timer based polling from my WPF application for controls updating?
Could you please share some thoughts on this issue or, maybe, ...
Hello,
I'm developing a XAML system which at present involves an icon in the taskbar which the user has to hover over in order to open the main window. However I need to take accessibility into consideration due to legal issues and also making the system appeal to as broad a range of users as possible. In order to make the system more a...
This error ocurr when I call System.Application.Run(); in a WPF application. There is no other call to method Run(). Someone did see this?
...
Does anybody know a PDF library that can display PDF document via viewer inside Windows Presentation Foundation (WPF) application? The library should have a PDF page viewer that can display the file.
The PDF viewer should be able to open the file at specific bookmark destination. So the possible API for the library should accept parame...
I have a template for my list box item. It includes an image button. The button changes images when you hover. The problem I'm having is it's adding a weird artifact to the button when I hover. This ONLY happens though if it's in a ListBoxItem. If I put the button on the main canvas, it works fine.
Here is the image in the normal state...
I have seen that in Blend you can see which properties have been changed and use the reset option to get back to default values.
Is there any other way of finding what the default values of a control are?
JD
...
I'm trying to make a stylish progress bar, but I'm having a problem with its vertical version. A picture is worth a thousand words:
Everything I've attempted so far has resulted in Wrong. How do I achieve Right? I'd prefer a XAML only solution unless it's slow or causes flickering when the progress bar is updated many times per second...
I need to get datetime from SQL table but I have two problems:
I need to refer to string from selected cell of DataGrid. I've tried "bksDataGrid.CurrentCell.Item" but that doesn't work.
Not really problem, but the cmd will return SQL datetime as object. Is it possible to convert it to .NET DateTime?
object obj = new object();
...
A WPF TextPointer can point to a text element or to a position in the text of a Run.
For example, if you have
<Paragraph><Run>Hello</Run><Paragraph>
and
TextPointer p = document.ContentStart.GetNextInsertionPosition(LocalDirection.Forward);
p will point between "H" and "e".
So far so good.
However, this increments a reference cou...
Hi,
Here is the situation:
I have a dataset bound to a WPF window. The dataset implements the IDataErrorInfo, so when a value is changed in the window, a validation occurs for the specific property changed.
During validation, I may find out there is another control in the window I need to validate.
I know only the field name in the Da...
I have been looking into MVVM recently and I seem to get the overall idea. There are a couple of niggly bits though that I do not fully understand and was hopping to get some answers here, cheers!
Is it incorrect to use one data model for the whole application. Usually if I am creating a small utility I would have all of the logical da...
Hi,
I'm creating an application that uses Microsoft's Ribbon but I'm having issues with the RibbonContextualTabGroup. When this tab appears it changes the title text specified in the ribbon properties to "E.....", is there a way round this?
Here's my code:
<r:RibbonWindow x:Class="Sample.MainWindow"
xmlns="http://schemas.micros...
Hi,
I have a Dataset and want to display the containing rows in a WPF-Contorl. The problem is, that the control is sort of a circuit diagram. Thus I created a template to show the values and placed multiple instances of it in my circuit control. Currently the XAML-code in the circuit looks like this:
<Label Content="{Binding Path=.[0]}"...
I'm sure WPF could produce a GUI replica, but is it actually made with WPF?
I've done some searching, but I'm not able to find what GUI library they used.
...
Hello all
I'm a C++/Java developer and have no idea about .net or GUIs. I need to develop a windows app for 2000/XP/Vista/7.
I think I've come to conclusion that C# is the best and the fastest way to go (please correct me if I'm wrong). What do you recommend? Which GUI approach should I learn? (Forms? Any other stuff?)
Is it the best w...
I'm mostly a C# programmer, I stopped writing Java about 10 years ago, but I try to keep up with the technology in Java by reading articles, talking with friends, etc.
I've heard about the new rich GUI framework called JavaFX, but couldn't find any resource comparing it with non-Java parallels.
Since I'm very familiar with C# and WPF, ...
I would like to create an ImagePicker control that lets users pick an image from a variety of sources.
A picture is worth a thousand words: I'm not yet cool enough to post images
<ComboBox>
<local:GoogleImage/>
<local:GoogleImage/>
<local:GoogleImage/>
<local:BingImage/>
<local:BingImage/>
</ComboBox>
Basically, I...