Hi,
I'm scrolling the label using TranslateTransform. But, By default width of label, it scrolls nicely. But if change the wording of the label which become longer text, It scroll very fast. Bcos I set the Duration to 10 secs. Is there any formula to change the duration time according to the length of the label?
...
I have a WPF program built in C#, and part of it's function is populating two ListBox controls. At the Window_Loaded event the program calls the Update() function in order to populate the ListBoxes, but it only executes part of the function. And if I call the function after an append has been made to the file, the function will even cras...
In WPF due to the intricacies on how the interface is updated I sometimes have to perform actions after a short delay.
Currently I'm doing this simply by:
var dt = new DispatcherTimer(DispatcherPriority.Send);
dt.Tick += (s, e) =>
{
dt.Stop();
//DoStuff
};
dt.Interval = ...
I'm using WPF with entityFramework.
I want the EF's generated objects to notify when property changed.
Should I enter to the generated code and implement the INotifyPropertyChanged?
maybe with partial class ?!
what's the best practice when EF is in the picture ?
...
problem is when i set my windowstyle to none and change resizemode to no resize, and run it, the height and width is bigger at runtime
...
MVVM doesn't allow code behind and so event handling.
So what's the MVVM way to be notifyed that a cell been changed ?
...
I have some XML that I need to show. It would be perfect if I could use WebBrowser to display xml just like IE does. It has syntax highlighting and nodes can collapse.
This works:
WebBrowser browser = (WebBrowser)this.GetTemplateChild("PART_Browser");
browser.NavigateToString("<html>hello</html>");
However this doesn't:
WebBrowser b...
I want to make simple content page with silverlight with next requirments:
Page must contains:
top space for banners(html)
center - silverlight component. and he will stretch to fitt page.
bottom space for banners(html)
Looks quite easy but i faced problem with internet explorer 8.
Silverlight component have small size and doesnot st...
i have a setup like
<ribbon:RibbonGallery>
<ribbon:RibbonGallery.Resources>
<Style TargetType="ribbon:RibbonGalleryItem">
<Setter Property="Width" Value="24" />
<Setter Property="Padding" Value="0" />
</Style>
<Style TargetType="Rectangle">
<Setter Property="Width" Value="1...
I have DataTemplate, written in XAML
<DataTemplate x:Key="AnalogTemplate" x:Name="AnalogTemplate" >
<TextBox Text="{Binding parameter}" Background="Black"/>
</DataTemplate>
And I have some DataGrid
How to apply DataTemplate "AnalogTemplate" to the one specified column in DataGrid programma...
Hi,
I'm working on a c# wpf app in which I want a grid or rectangle to show the contents of a window in my application. It should be like a monitor which constantly shows what happens in the other window (video is being played in in it).
Is there a good way to capture the screen or some other option?
Thanks
...
I create the following WPF control a dot and a description label: * North Star
<UserControl x:Class="StopPoint.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/...
I have editable combobox where not always the preferred item is in the drop-down list.
I would like to have the possibility of manually entering text in the textbox which is propagated to the string bound to SelectedValue.
Right now the string bound to SelectedValue is only updated if the entered value is on of the ones in the ComboBo...
Okay, so I had a really, really hard time formulating my title because I couldn't come up with a short phrase that would justify what I was trying to say in a clear way. Sorry about that.
But, to the question: I asked a week or so ago about whether to use C# or Adobe Air for some quite simple applications, and I've not made my final dec...
inside TestEntryView.xaml.cs
public partial class TestEntryView : UserControl
{
public ObservableCollection<TestFieldView> Fields {get;set;}
...
}
where TestFieldView is a UserControl.
<UserControl x:Class="STS2Editor.View.TestEntryView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns...
In Blend, as soon as you insert a control (like Button) and start dragging it onto Window/Grid/whatever you get hard-coded margins and width/height.
Thus designer that I work with ends up creating beautiful static pictures that, on my side, fall apart as soon as one data-bound string is longer than the sample ones. Or if font size gets ...
Hi all,
I've video player with two button: Play and Pause.
I want to use only one button. when user clicks on Play, the button appearance will changed to Pause and vice versa.
What is the better approach to achieve that task without using cs code behind?
I've tried to use DataTrigger to my IsPlaying property, but with no much success....
I created the following view
<ListView.View>
<GridView>
<GridViewColumn Header="Tester"
DisplayMemberBinding="{Binding User}" />
<GridViewColumn Header="Executed On"
DisplayMemberBinding="{Binding ExecutionDate}" />
...
I know how to host a flash activex in wpf, but there a issue to that.
After I reinstall my os , my app failed to laod a flash file,
but after I opened the flash file with web browser and restart my app,
my app worked again. is there some configuration I have to do ?
...
Guys,
I am trying to programmatically scroll a ScrollViewer. But my UI hangs as soon as the event fires. If I take out while loop, this problem is gone, but then I do not get the behavior I want. Could you please help me out to solve this problem?
I am using WPF 4.0
Here is the code for your reference:
<Page
xmlns="http://schemas...