Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

Defender NF

@Defender NF
About
Posts
22
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Drag two columns in Datagrid
    D Defender NF

    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.

    WPF csharp wpf question

  • Get RadioButtons from RadioButtonGroups and vice versa
    D Defender NF

    Thank you all for The Assistance Cheers

    WPF csharp wpf collaboration

  • Get RadioButtons from RadioButtonGroups and vice versa
    D Defender NF

    Mark, 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.

    WPF csharp wpf collaboration

  • Get RadioButtons from RadioButtonGroups and vice versa
    D Defender NF

    Yes that whats i mean, how can i get all radiobuttons of a panel/window with the same groupname?

    WPF csharp wpf collaboration

  • Get RadioButtons from RadioButtonGroups and vice versa
    D Defender NF

    Hey, 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

    WPF csharp wpf collaboration

  • Get RadioButtons from RadioButtonGroups and vice versa
    D Defender NF

    Hey, 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

    WPF csharp wpf collaboration

  • change datagridrow color after add it
    D Defender NF

    ok 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

    .NET (Core and Framework) question

  • change datagridrow color after add it
    D Defender NF

    Thanks 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.

    .NET (Core and Framework) question

  • change datagridrow color after add it
    D Defender NF

    Okay, 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.

    .NET (Core and Framework) question

  • change datagridrow color after add it
    D Defender NF

    Ah 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

    .NET (Core and Framework) question

  • change datagridrow color after add it
    D Defender NF

    hello 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

    .NET (Core and Framework) question

  • control z-order without z-index?
    D Defender NF

    thanks a lot.

    .NET (Core and Framework) question database help tutorial

  • control z-order without z-index?
    D Defender NF

    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?

    .NET (Core and Framework) question database help tutorial

  • Initialize Textblock after changing Inlines [modified]
    D Defender NF

    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

    .NET (Core and Framework) question help

  • Highlight only Searched keywords in a Datagrid
    D Defender NF

    yes 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

    .NET (Core and Framework) question csharp dotnet wpf tutorial

  • Highlight only Searched keywords in a Datagrid
    D Defender NF

    Hi 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

    .NET (Core and Framework) question csharp dotnet wpf tutorial

  • Highlight only Searched keywords in a Datagrid
    D Defender NF

    Hi 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.

    .NET (Core and Framework) question csharp dotnet wpf tutorial

  • DataView.Select Syntax
    D Defender NF

    there 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); ?

    .NET (Core and Framework) question

  • DataView.Select Syntax
    D Defender NF

    Hello 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

    .NET (Core and Framework) question

  • communication between 2 windows
    D Defender NF

    Thank you all regards

    .NET (Core and Framework) question help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups