MVVM- How can I bind to a textbox's SelectionStart and SelectionLength properties?
What would be the best way to do this? ...
What would be the best way to do this? ...
i would like to run some code onload of a form in wpf. is it possible to do this? im not able to find where to write code for form onload judging by the responses below it seems like what i am asking is not something that is typically done? i mean in vb.net winforms its super easy you just go to the onload event, but for some reason in ...
I'm trying to define many different states in my app (around 7 in my case) and I have defined each one of them with a "Default Transition" of zero seconds, but the animation that accompanies each state goes for 1 second. When I fire up my app I have a button than goes through the states one by one, when I go "State1" -> "State2" it look...
Hello, I wonder why my contentcontrol(headeredcontentcontrol) does not change the datatemplates when I press the previous/next button. While debugging everything seems ok means I jump forth and back the collection of wizardpages but always the first page is shown and its header text not the usercontrol is visible. What do I have forgot...
I have a collection that is binded to my Listview. I have provided options to user to "move up" "move down" the selected item in the list view. I have binded the selected item of the listview to my viewmodel, hence I get the item in the collection on which user want to do the operation. I have attached "move up" "move down" commands in...
WPF - Animate ListBox.ScrollViewer.HorizontalOffset Has anybody got a complete solution to animating the listboxitem position on some event Cheers Nick ...
It seems to be possible in this project... After they use pd = new ProgressDialog();, the new window appears. How did they do that? ...
I searched online and found codes here that doesn't work. ...
Hi all, I am really getting mad since 2 days with a stupid problem. I already have asked the question here but seem like my question in lost where nobody will see it again. So here is my simple problem : I have a project containing a CustomControl (a library project), this custom control code is inherited from the Window control. So it...
I have a listview which has its datasource changed after update of a search textbox. When I enter search criteria that only returns one row, I am unable to trigger the OnSelectionChanged event The listbox works as expected at any other time. I have tried changing SelectedItem and SelectedIndex in Code, Clicking aimlessly on the ListVie...
Odyssey outlook bar has three themes. How can I change theme for it in XAML? ...
I know this is a very subjective question but as text rendering in WPF is still an issue I have to make the best out of it. In WPF Application text tend to become blurry that is no secret. Also there are countless website about this topic and how you get around this problem. But I wonder ... text blurriness seems to affect some fonts mo...
I want to create a design using Stackpanel in XAML pad in WPF and then embed images on it using .cx file. But I am getting some error using Styles. <Style x:Key="TopPanelDesign" TargetType="{x:Type StackPanel}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type StackPan...
I want to access a scrollviewer from another thread. Please tell me how to do detach it from the Main Thread so that I can change the Offsets of the scrollviewer. Thanks ...
I have UserControl named MyUserControl, and another UserControl named MyContainer. I want MyUserControl to have padding 10 if it is placed inside MyContainer and 15 otherwise. Shortly, I want <MyContainer> <MyUserControl> Hello </MyUserControl> </MyContainer> to look like <MyContainer> <UserControl Padding="10"> Hello ...
Hello I want to create floating child window in my application. It should be look like floating bin in internet market. Window.ShowDialog is not well because user hasnt access to main window. Window with topmost = true as well bad idea because i want to have floating window only in limited area of main window. ...
Hey. Another WPF question. In my XAML code I have a border: <Border x:Name="myBorder" Background="AliceBlue" Width="200" Height="200" BorderThickness="10" BorderBrush="Black"> </Border> and somewhere in code I increase the BorderThickness double thickness = myBorder.BorderThickness.Bottom + 2; myBorder.BorderThickness = new...
I have a Dictionary which is binded to a combobox. I have used dictionary to provide spaces in enum. public enum Option {Enter_Value, Select_Value}; Dictionary<Option,string> Options; <ComboBox x:Name="optionComboBox" SelectionChanged="optionComboBox_SelectionChanged" ...
I seem to be going round in circles. I have a WPF application that has a main ribbon window with a status bar. When you navigate to a "view" a user control is displayed as the content of the main window. The view has a ViewModel which handles retrieving data from the database and the View's datacontext is set to the ViewModel. What I ...
I'm able to change the width/height of the grid using this, so why won't it work when I use (Grid.RenderTransform).TranslateTransform.X as such: <Window.Triggers> <EventTrigger RoutedEvent="Button.Click" SourceName="button"> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetProperty="(Grid.RenderTrans...