c# - Accessing XAML controls in WPF -
i'm using code in .xaml, created user defined control(textbox) numerictextbox:
<local:numerictextbox grid.column="1"        local:numerictextbox.mask="decimal"        local:numerictextbox.maximumvalue="55"        local:numerictextbox.minimumvalue="0"        name="abc"        grid.row="0"        text="{binding path=ipaddressproperty}" />   i want access numerictextbox in .xaml.cs , have give minimum , maximum value in .xaml.cs file,
can me out please?
this question more readable if put xaml in original post.
you need give name in xaml:
<local:numerictextbox x:name="mytextbox" />   then can reference properties name in c# code-behind:
this.mytextbox.minimumvalue = 0; this.mytextbox.maximumvalue = 255;      
Comments
Post a Comment