We have in our application columns wich depend of each others, thats why we wanna them stay together if the user drag a column. In WPF if you drag a column u see it with low opacity at your mousecursor bevor your drop it, now we would like to see the other column too(wich depend of the draged column) moving with low opacity when the user drag the first column. Any ideas? Thanks a lot. cheers, negada.
Defender NF
Posts
-
Drag two columns in Datagrid -
Get RadioButtons from RadioButtonGroups and vice versaThank you all for The Assistance Cheers
-
Get RadioButtons from RadioButtonGroups and vice versaMark, i dont need for binding because i programm the logic in the control, anyway changing the indicator status isnt a problem.. what i need is how to find out all the radiobuttons if i have the groupname of one of them.
-
Get RadioButtons from RadioButtonGroups and vice versaYes that whats i mean, how can i get all radiobuttons of a panel/window with the same groupname?
-
Get RadioButtons from RadioButtonGroups and vice versaHey, thanks for replying, yes u understand it right, i know the code was just an example.. what i really need is how to get the radiogroup of my radiobutton, and if i get the radiogroup how can i get all its radiobuttons.. cheers
-
Get RadioButtons from RadioButtonGroups and vice versaHey, I have in my application(wpf) an Indicator for all Input Boxes, wich indicate if the box is a mandatory field or not, and changes his color if the Field is filled. Now the product team would like to have this indicator even on radiobuttons, that means the indicator of the radiobutton should know if the others radiobuttons of the same group are filled or not to change the color to the right one. We have a new requiredradiobutton control wich derive from the Original Control: RadioButton, and i have to programm the Indicator of the control something like that:
protected override void OnChecked(RoutedEventArgs e)
{
RadioButtonGroup myradiobuttonsgroup = this.GetRadioButtonGroup();
foreach(RadionButton rb in myradiobuttonsgroup)
{
if rb.IsChecked != true
rb.Indicator.Status = Status.NotFilled;
else
rb.Indicator.Status = Status.Filled;
}
}
Or Another way how i can handle that without puting the radiobuttons in a listbox or something. Thanks a lot and Cheers. Negada
-
change datagridrow color after add itok i got it, but the rowbackground goes to the old value after the header got clicked, any idea how can i get in the way of that? thanks
-
change datagridrow color after add itThanks Pete for the Assistance I already have some solutions for this based on my database.. but i dont wanna programm on all my classes/datasets/lists new property just to do this? thats why i m looking on a interface-way to resolve that, or maybe an independency function or something, i tryed for example this:
void la2\_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { if (e.Action == NotifyCollectionChangedAction.Add) { emp.NewRowAfterFiltering = true; } }
NewRowAfterFiltering is a property wich i bound to the the datatriger of the gridrow to change background, but it didnt work.
-
change datagridrow color after add itOkay, so wich property can i use for the Trigger or the Datatrigger? I mean is there something like "IsAdd" as a property? The only thing i found is "IsEditing" but i wanna the row change its background only if its a "new" row.
-
change datagridrow color after add itAh sorry. I m working on visual studio 2010 ultimate, wpf/c# my datagrid are bound to some generic lists/datasets via simple itemsource-bindings. Thanks
-
change datagridrow color after add ithello i would like to change the background of the added row in a datagrid. is there any way to get the added row and change its background? Thanks
-
control z-order without z-index?thanks a lot.
-
control z-order without z-index?Hey I have the following Scenario:
<StackPanel Width="200" Height="100" Background="Yellow" Name="BigPanel">
<Canvas Width="80" Height="80" Background="Blue" Margin="10" Name="RectanglePanel" >
<Rectangle Canvas.Left="10" Canvas.Top="1" Height="50" Width="50" Fill="Black" Name="MyRectangle">
<Rectangle.Triggers>
<EventTrigger RoutedEvent="Rectangle.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetName="MyRectangle"
Storyboard.TargetProperty="(Canvas.Left)"
From="10" To="-30" Duration="0:0:5"
RepeatBehavior="Forever" />
</Storyboard>
</BeginStoryboard></EventTrigger>
</Rectangle.Triggers>
</Rectangle>
</Canvas>
</StackPanel>The Problem is when the rectangle left the Rectanglepanel that contains him (for example in the ContainerPanel) it is still visible, how can i make the rectangle be visible only in its parentpanel=rectanglepanel? is there a property or a way for that?
-
Initialize Textblock after changing Inlines [modified]Hello everyone Since Inlines (CollectionInlines) arnt a dependencyproperty i made a TextBox with dependency Inlines, the Code:
public InlineCollection InlineCollection
{
get
{
return (InlineCollection)GetValue(InlineCollectionProperty);
}
set
{
SetValue(InlineCollectionProperty, value);
}
}public static readonly DependencyProperty InlineCollectionProperty = DependencyProperty.Register( "InlineCollection", typeof(InlineCollection), typeof(InlineTextBlock), new UIPropertyMetadata((PropertyChangedCallback)((sender, args) => { InlineTextBlock textBlock = sender as InlineTextBlock; if (textBlock != null) { textBlock.Inlines.Clear(); InlineCollection inlines = args.NewValue as InlineCollection; InlineCollection oldinlines = args.OldValue as InlineCollection; if (inlines != null) { textBlock.Inlines.AddRange(inlines.ToList()); } else textBlock.Inlines.AddRange(oldinlines.ToList()); } })));
The TextBlock has normally some text after that it gets new inlines, if the Inlines it gets are empty it should get its first(default) text again. Now the Problem: if it had a the first a text via Inlines then everything is ok coz i can get them again with the oldvalue, if it has a the first normal text with no inlines then the textblock doesnt show nothing because of: textBlock.Inlines.AddRange(oldinlines.ToList()); (no oldvalue of the Inlines) how can i set the first text at the ende if in this case? any ideas? Thanks in Advance. Cheers Def.
modified on Tuesday, April 12, 2011 9:02 AM
-
Highlight only Searched keywords in a Datagridyes thats the difficult part, thats why i m posting here in hope someone has an idea, snippet or something how i can resolve the spliting problem. Cheers
-
Highlight only Searched keywords in a DatagridHi Dave and thanks for the Answer. I dont wanna paint whole the cell but only the keyword. I will handle that with the CollectionInline but i dont know how to seperat the word into normal parts and highlighted part ( keywordpart). Cheers
-
Highlight only Searched keywords in a DatagridHi I have a datagird and a searchfunction wich shows only datagridrows contain the searched Keyword. Now i would like to highlight the Searched Keyword in the datagird, i can get acces to the row or cell contains the keyword and also highlight them(for example like this: http://blogs.microsoft.co.il/blogs/tomershamam/archive/2009/08/27/wpf-datagrid-search-and-highlight.aspx ). But how can i highlight only the keyword like google or opera-browser etc.? Thanks very much.
-
DataView.Select Syntaxthere is not another solution? since i dont know always wich datatables user is calling and this is a little bit strange query? string StatSelect = String.Format(ProductName LIKE '%{0}%'" OR ProductName LIKE '%{0}%'" OR etc....., SearchTextBox.Text); tought for something like: string StatSelect = String.Format('%' LIKE '%{0}%'", SearchTextBox.Text); ?
-
DataView.Select SyntaxHello Everyone For the DataView.Select Methode i use like this string as a DataColumn.Expression: string StatSelect = String.Format(ProductName LIKE '%{0}%'", SearchTextBox.Text); Productname is the Column where to search, but what is if i wanna search for the string in the whole table ( all columns) ? Thanks in Advance Jacko
-
communication between 2 windowsThank you all regards