I'm trying to set the Value of the Slider to 1.0 but when in debugger, I can see that after the assignment like:
surfaceSlider.Value = 1.0;
the value stays at the current value (0.0).
Any ideas why I can't set that dependency property?
...
I have WPF treeView which has ControlTemplate which show every node of treeView consisting of two elements : Image + Textbox. When I change TextBox treeView element not select. But I want to get Selected class in TextChanged event of TextBox. How can I get class to which current textBox Bound in code behind.
...
Hello All,
I am attempting to work out the algorithm associated with sizing of the WPF Scrollbar thumb element.
The thumb element can be sized using the Scrollbar.ViewportSize property, but it in turn is related to the Scrollbar.Minimum and Scrollbar.Maximum values.
What I have discovered so far is:
For a Minimum and Maximum of 0 ...
Hello.
I'm being used to create Dependency Properties for my custom controls.
But i'm really tired of defining static fields, populating them in the constructors, coding the standard properties and later the events, plus casting and validating objects, all despite the help of copy & paste and code snippets.
So, the question is... is the...
I want to create a Save As screen as it is in Windows.
How can I do that in a WPF application?
...
I have a WrapPanel placed in a grid and fill it dynamically with ToggleButtons.
The height of the row, where the wrappanel is located in, is calculated based on the number of ToggleButtons in the WrapPanel component.
When I load my screen the items in the wrappanel aren't layouted correctly.
However when I resize my form the items are sh...
I have a ListBox with an Explicit binding set to SelectedValue.
SelectedValue="{Binding Path=Property, UpdateSourceTrigger=Explicit}"
the ItemSource of ListBox is an ObservableCollection.
When I select an item of ListBox and press 'Enter' I update the property value in this way:
BindingExpression be = listBox.GetBindingExpression(Li...
I am showing a Tool Tip when Mouse hovers on Help image.
The xaml is given below:
<Image
x:Name="HelpImage"
Width="16"
Height="16"
...
Hi,
first:
do u know why I can't get the method FromFile?
ex: I can't write Image.FromFile
second:
Do u know how I could get the Image Dimensions in c# WPF?
...
Hello Friends. I have "WPF userControl Library" project. In it I have window which has next line of code
<Image x:Name="imgInstructionIcon" Source="images/InfoIcon.png" >
and also in project I have "images" folder which contains InfoIcon.png file. But My code didn't see this file and give next error:
Error 58 The file images...
I have this sample code:
<ControlTemplate Content="{Binding .}"/>
What does the point mean here relating to the binding?
...
Is there a way to add a link to the Device Manager in a WPF application? I mean, a hyperlink that once clicked opens the Device Manager window.
Thank you very much.
...
Hi,
I don't know according to MVVM show data on control.
I have a collection of cars.
I want group their by type (eg. Sedan, Combi, Hatchback) and depends of number of types print grids.
So :
5 cars:
2 x sedan, 2 x Combi, 1 x sportcar.
So I want to print 3 grids.
How do it to be ok with MVVM.
...
In terms of communicating different messages within an app would a good idea be to create a class for each message type? Some of my messages will need a reference a model object.
For example DoThisMessageType:
Messenger.Default.Send<DoThisMessageType>(_doThisMessageType);
Messenger.Default.Register<DoThisMessageType>(this, delegate(Do...
Hi,
I am using WPF and I have Datatemplate that is i want to access into the codebihind
how i can use this...\
Thanks..
...
I need to display search results in the Grid format. But when the Search results in zero matches, i should be able to show a message "0 results found" in the second row of the Grid with first row having all the column headers.
Which control can i use in the WPF to achieve this? There are ways to do this without header row, but i need to...
Hi All,
I am looking for a starting point for the following application.
I am looking to create an application that will allow me to import multiple 3d image like furniture.
I can then drag and drop these 3d images onto a design window which looks like a room. Once dragged here, i can then position the furniture around a room and rota...
New to WPF and have Tabs and in each tab the content is presented in a curved corner panel/window/whateveryouwannacallit. I wasn't sure how to do this ( Style, ControlTemplate ) but decided to go the DataTemplate way.
So now I have this DataTemplate:
<DataTemplate x:Key="TabContentPresenter" >
<Border Margin="10"
Border...
Hi,
I have a view of my data being fed by a viewmodel, but I'm having some issues with comboboxes. The xaml looks like this:
<ComboBox Grid.Row="4" Grid.Column="1" Margin="2,2,10,2"
ItemsSource="{Binding TrialParentValues, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}"
SelectedItem="{...
Hey,
I try to built a DataGrid, and I want to bind one of the TextColums' Foreground property to a Date, so that it becomes red, if the Date is in the past.
Here the XAML:
<toolkit:DataGridTextColumn
Binding="{Binding Path=Prüfdatum, Converter={StaticResource TimestampToDateConverter}}"
Header="Prüfdatum"
Foreground="{Bind...