X
XJ
Hi Expert,
i'm doing some program for my project which using WPF, to create
my application more managible i would apply "user control" concept for
my project for each section of my workspace.
to make my workspace more flexible, all the "namespace" and "user
control" name will store into DB, once user launch my application,
base on different user setting i'm able to load for different user
control accordingly base on on the DB record.
i have 2 question now:
1. How to declare those user control "name space" thru codebehind ?
right now i only able to code my "name space" at XAML
example: xmlns:uccustom="clr-namespace:WpfApplication1"
2. How to declare the "user control" name thru codebehind?
right now i also have to declare the user control name at XAML
example: <uccustom:UserControl1 Margin="20,0,-605,-236.5"
Height="188" VerticalAlignment="Bottom"/>
* so far i only know to do the setting from XAML, but which is not
enough flexible due to setting concept.please advise , thanks
best regards
i'm doing some program for my project which using WPF, to create
my application more managible i would apply "user control" concept for
my project for each section of my workspace.
to make my workspace more flexible, all the "namespace" and "user
control" name will store into DB, once user launch my application,
base on different user setting i'm able to load for different user
control accordingly base on on the DB record.
i have 2 question now:
1. How to declare those user control "name space" thru codebehind ?
right now i only able to code my "name space" at XAML
example: xmlns:uccustom="clr-namespace:WpfApplication1"
2. How to declare the "user control" name thru codebehind?
right now i also have to declare the user control name at XAML
example: <uccustom:UserControl1 Margin="20,0,-605,-236.5"
Height="188" VerticalAlignment="Bottom"/>
* so far i only know to do the setting from XAML, but which is not
enough flexible due to setting concept.please advise , thanks
best regards