I need to view a multipage tiff with WPF.
I currently have the following:
<FlowDocumentReader>
<FlowDocument>
<BlockUIContainer>
<Image x:Name="DocImg" Source="test1752158790.tif" />
</BlockUIContainer>
</FlowDocument>
</FlowDocumentReader>
I can only view the first page.
Is there a way ...
Hi, I am trying to figure out how can I copy DispatcherObject (in my case BitmapSource) into another thread.
Use case:
I have a WPF app that needs to show window in a new thread (the app is actually Outlook addin and we need to do this because Outlook has some hooks in the main UI thread and is stealing certain hotkeys that we need to u...
Hi !
I want to derive from System.Windows.Controls.TextBox and provide this functionality.
IsEnabledProperty.OverrideMetadata(typeof(MyTextBox), new FrameworkPropertyMetadata(
new PropertyChangedCallback(delegate(DependencyObject o, DependencyPropertyChangedEventArgs e)
{
MyTextBox tb = o as MyTe...
I have two tables
TableA (articles)
int id
int Type
string name
and
TableB (compatibles)
int linked_ID
int tableA_ID
TableA records:
id=1, Type=0, name="ArticleA"
id=2, Type=1, name="ArticleB"
id=3, Type=2, name="ArticleC"
id=4, Type=1, name="ArticleD"
TableB records:
linked_ID= 1, tableA_ID=2
linked_ID= 1, tableA_ID=3
linked_ID= 1...
Hi all,
does exist any WPF ribbon control (commercial or not) that support full re-templating? Generally they have a number of built-in graphic themes but do not allow graphic redesign from scratch. Thanks in advance!
...
I'm trying to make a bar graph Usercontrol. I'm creating each bar using a DataTemplate.
The problem is in order to compute the height of each bar, I first need to know the height of its container (the TemplatedParent). Unfortunately what I have:
Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Height, Converter={...
Ok, so I found something weird over the weekend. I have a WPF app that spawns off some threads to perform background work. Those background threads then Post work items to my Synchronization Context. This is all working fine except for one case. When my threads finish sometimes they will post an action onto the dispatcher that will open ...
Tring to animate the expanding and contracting of a WPF Expander in .Net 4.0 using PowerEase. The animation works except I have to hardcode the height or bind to the height of an object in the expander which does not give the desired height. I need to set the "To" of the expander to Auto in animation.
<Expander x:Name="MapsExpander" ...
Hello,
I want to draw some circles in another circle like this:
Is there a way to tell a RadialGradientBrush not to use gradients but just fixed colors, so I can achieve this? Thanks for any hint!
(I guess this could be easily done using a DrawingBrush, I'm just wondering whether this could also be done using a RadialGradientBrush)
...
Hello,
as the title already claims, I am searching for a WindowManager in PRISM.
I know the RegionManager, and I found a LayoutManager which looks like a very promising project. Already tried it, and liked it. Now I added a post in the forum on the bottom of the page, basically I need something similar only for windows (not only layout...
I'm working on a WPF application that is working well using the Entity Framework (3.5 SP1) for complicated table structures. The problem now is I want to get a list from the EF that includes lookups into a picklist table that has multiple picklists in it.
In SQL I would write a sub select as such:
SELECT Name, (Select typeName from P...
I've started using the XmlnsDefinition attribute to tie together some CLR namespaces into a single xmlns for convenience in XAML.
Unfortunately, it seems that this only works when using foreign assemblies. If I have a XAML file in the same assembly as the types that are in the namespace I'm referencing from XmlnsDefinition, then the com...
Good afternoon. I'm creating a custom WPF layout control that needs to omit children from the measure/arrange process if they won't fit in the available area. I'm testing with Blend.
I have tried overriding GetVisualChild(n) and VisualChildCount to try and allow the runtime to only recognize certain elements as my desired children. This...
In a MVVM WPF application.
How do you set a second windows parent from the ViewModel?
example:
view1
viewModel1
viewModel1's command calls:
var view2 = new view2
view2.Owner = <----This is the problem area. How do I get view1 as the owner here from the viewModel?
view2.Show()
EDIT:
See accepted answer below, then read the follo...
Hi everyone,
Ok, my arcSegment must always draw Circle's. For this reason I calculate the Arc's Width with the following formula:
arcXRadius = (4 * Math.Pow(height, 2) + Math.Pow(distanceArcPoints, 2)) / (8 * height);
so Arcs.Size = (arcXRadius,height)
But seems that the height is scaled down when drawn. I want to add a small Circle ...
Hello
I am trying to do follow DataBinding
Property -> DependencyProperty -> Property
But i have trouble.
For example,
We have simple class with two properties implements INotifyPropertyChanged:
public class MyClass : INotifyPropertyChanged
{
private string _num1;
public string Num1
{
get { r...
I have the following class (abreviated for simplicity). The app it multi-threaded so the Set and Get are a bit more complicated but should be ok.
namespace News.RSS
{
public class FeedEngine : DependencyObject
{
public static readonly DependencyProperty _processing = DependencyProperty.Register("Processing", typeof(bo...
If anybody wants to convert a Normal WPF project to MVVM enabled one,
what are the main points to be keep in mind while restructuring the entire application.
What are the main hurdles to accomplish the task?
...
I have search on google about the login screens which are design in WPF , as I have to using one of the best login screen for my application, Is the any good login screen avaialble so that I can see them and choose one of them, I am having no idean about the good design of the login screen. Please help me, thanks in advance
...
I was curious as to the "correct" architecture of a torrent application; with WPF as the front end?
...