Hi everybody,
I'm new to WPF so I've got a problem:
I need to create a grid. This grid should contain a column with a kind of thumbnails.
When I move mouse over a thumbnail, there should appear a panel with a big image. This panel will cover all grid.
But this will make thumbnail think that mouse already has gone.
After mouse's gone, p...
We have an application developed in WPF. i wanted to implement one functionality here. From main page, Main page has quick links to all child windows. if i open 20 windows, i wanted to see all the opened windows listed on mainpage. My main page is blank now so i can show in any way possible. Does WPF has this functionality??? please help...
I am sorry I don't know the right name of it I just keep calling it "Application Menu". It's the menu you get when you click the applications icon in the top left corner or when you right-click on the application in the task bar.
Anyway, in my WPF application I want to add items to that menu. In my old MFC C++ days this was an easy task...
I have a DataTable which is going to be bound to a DataGrid. I don't know what the columns will be in advance, however I do know the first column will be a boolean value that should be bound to a CheckBox.
Is there an easy way to create a DataGrid that will generate the unknown columns, but not show the first column? The unknown column...
I'm sure there is good explanation for this. I'm guessing it has something to do with me having a cold and missing something obvious...
I have a simple window:
<Window x:Class="WpfIdeas.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:w="...
I create RibbonWindow with Ribbon toolbar.
When I deploy my app and start it, all fonts in all nested controls dont shows.
When I insert Ribbon toolbar in simple Window class, fonts shows, but toolbar work not correctly. What I need do to solve this problem?
...
Hey people,
I want to check some childelements in my WPF-Form. In WindowsForms that was quite easy with (like):
For Each control as Textbox in Me
control.text = "hello people"
Next
How do I do that in WPF within my XAML.VB-File? I got a listbox with some childelements here which I want to analyse.
Greetz and thanks for your ideas!
...
I have a ScrollViewer and very "long" content in it.
I wrote a class that inherits from DocumentPaginator, but I don't understand how do I create a "frame" for every part of this Visual? I mean, how do I "look" at the next page of the control?
I tried this, but with no success:
public override DocumentPage GetPage(int pageNumber)
...
I've been using databinding in several simple situations with pretty good success. Usually I just use INotifyPropertyChanged to enable my codebehind to modify the GUI values on screen, rather than implement dependency properties for everything.
I am playing with an LED control to learn more about databinding in user controls, and was f...
<Grid x:Name="ContentGrid">
<Grid.Resources>
<Image x:Key="art" Source="art.png" Stretch="None" />
</Grid.Resources>
<ContentControl Content="{Binding MyImg}" />
</Grid>
public Image MyImg
{
get { return (Image)GetValue(MyImgProperty); }
set { SetValue(MyImgProperty, value); }
}
public static readonly Dependenc...
Hello,
i cant find how to set scrollbar to scroll horizontaly with mouse. Vertical scrolling works good allways, but i need to scroll my content horizontaly. My code looks like this:
<ListBox x:Name="receiptList"
Margin="5,0"
Grid.Row="1"
ItemTemplate="{StaticResource...
Hard question to describe in one line so here's the detail.
I asked a question before about showing a busy indicator in a WPF window whilst doing some long-running action. The original question is here.
I followed some advice from a comment that suggested a kind of "DoEvents" style workaround. I know this isn't ideal but I only have a ...
Hi All
I am building a real-time multi-threaded application in WPF, but i am having difficulties in updating the UI.
I have a background worker thread that contains logic which determines what trades to send into the market. When a valid trade is sent to the market, i receive status updates on these trades via events in my main applica...
If I have the following style defined:
<UserControl.Resources>
<Style TargetType="TextBlock" x:Key="ProblemStyle">
<Setter Property="FontSize" Value="40"/>
<Setter Property="FontWeight" Value="Bold"/>
</Style>
</UserControl.Resources>
Then when I have a ContentPresenter data bound to a string, in WPF I can get ...
Hello,
I don't know how it is possible but services provided by Rails are different consumed in WPF and Silverlight.
When I seek for ****.com/api/wsdl/ (it is Rails SOAP service) WPF generates all the methods, events etc.
When I seek for the same URI in Silverlight I have only:
[System.CodeDom.Compiler.GeneratedCodeAttribute("System....
I have some very simple code which just needs to play a sound with a specified volume, as follows :
var mp = new MediaPlayer();
mp.Open(uri);
mp.Volume = volume;
mp.Play();
The problem arises because this is part of a Prism module. I don't know where the executing assembly is going to be so I can't use a relative Uri or siteoforigin a...
I do not have much experiece of WPF, and I consider it as an easier way to markup/coding UI in .net.
I have install the lastest Rx release, and play it using Console application without any issue, when I used it in a simple WPF application, it seems that 'Observable' is not liked by WPF...
I have added both reference to:
System.CoreEx
...
I'd like to display search results within a WPF ItemsControl with the query terms highlighted.
The search engine I use, Lucene.Net with the Highlighter plugin, returns strings with the query terms marked up like so:
...these <Bold>results</Bold> were found to be statistically significant...
I can instruct the Highlighter plugin to us...
I Have a user Control which Contains a ScrollPanel. And I want to bind the userControl's content property to the ScrollPanel.
So my xaml would look like:
<CustomControl>
<StackPanel/>
</CustomControl>
and in my UserControl my ScrollPanel child is set to StackPanel.
...
Hi,
I want to change the just the left margin of a WPF textbox via XAML:
This code obviously does not work :
<TextBox Margin.Left ="0"/>
What would be the correct code, does anyone here know ?
Regards,
MadSeb
...